We have a Symmetrix VMAX array. We use Virtual Provisioning (VP).
I have a set of thin devices, which are bound to a pool and presented to host(s).
Now, for some reason I'd like to get the Storage group, in which these devices exist. Is there a way out to get this via SymCLi through some direct command(s)?
Tried symdev show on the device, but does not display SG\MV info. Tried symsg list -v | find "Device ID" but missing a track of the SG, as it only gives device info.
There is no single symcli comand to get this but you can use below one line script to get you desired result.
You can even format more if you need output in different way. This is the way I am using for myself. In case you get single comand which give Device list and Sg name for that device in better format repost here.
for i in `symcfg -sid 30 list -tdev -pool 300_03_F_1 -thin | grep 300_03_F_1 | awk '{print $1}'`; do echo $i ; symaccess -sid 30 list -type storage dev $i | grep SG ; done
mdani1
56 Posts
966
2
Posted August 6th, 2012 09:00
Hi Sree,
There is no single symcli comand to get this but you can use below one line script to get you desired result.
You can even format more if you need output in different way. This is the way I am using for myself. In case you get single comand which give Device list and Sg name for that device in better format repost here.
for i in `symcfg -sid 30 list -tdev -pool 300_03_F_1 -thin | grep 300_03_F_1 | awk '{print $1}'`; do echo $i ; symaccess -sid 30 list -type storage dev $i | grep SG ; done
Regards,
Mrinal Dani