Monday, September 19, 2011

Commands to look around the SVC -> svcinfo

When I started SVC admin, I wanted the informational commands that would not get me into trouble
and would just show me how everything is configured. The subcommands of svcinfo fit the bill.

To look at the last commands run to change things:
svcinfo catauditlog

To  look at the SVC's error log:
svcinfo caterrlog

To look at a whether a flash copy has completed or what flash copies you have:
svcinfo lsfcmap

Managed disk groups? these are LUNs given to the SVC and placed into
sets called managed disk groups or mdiskgrp. The point of the SVC is to be able to
'carve-up' LUNS of desired sizes and then share them with clients of the svc (hosts).

what managed disk groups are on your SVC?
svcinfo lsmdiskgrp

If you want to get useful infomation of a mdiskgrp:
svcinfo lsmdiskgrp mdg1746a_7_2t

or find all mdiskgrp's that start the same naming scheme:
svcinfo lsmdiskgrp -filtervalue name="mdg*"

Need to see all the vdisks that have been carved from a mdiskgrp?
svcinfo lsvdisk -filtervalue mdisk_grp_name=<name of a mdiskgrp>

Now, for the mdiskgrp and vdisk to be useful they must be mapped to hosts.
To see what host a vdisk is mapped to run:
svcinfo lsvdiskhostmap <vdiskname>
If the vdisk is not mapped to a host then you could map it to a host or remove it.

To see what vdisks are mapped to a host run:
svcinfo lshostvdiskmap <hostname>

These svcinfo commands will give you information only and will not change anything,
so feel free to run them and get familar with  you SVC  environment.

Here is a great IBM link
http://publib.boulder.ibm.com/infocenter/svcic/v3r1m0/index.jsp?topic=%2Fcom.ibm.storage.svc.console.doc%2Fsvc_informationcomm_21pasg.html
under "Informational Commands" are all the sub-options of svcinfo

1 comment: