Friday, February 20, 2015

AIX: How to determine / identify volume UID from Storwize / SVC

How to list / identify volume ID UID from Storwize / SVC?



This command can be used to determine / list volume UID of disk located on Storwize / SVC in AIX:

for i in `lsdev -t 2145 | awk '{ print $1}'`
do
echo $i "\c"
lsattr -El $i -a unique_id | awk '{ print $2 }' | cut -c 6-37
done


or for MPIO without HAS and SDDPCM:

for i in `lsdev -t mpioosdisk | awk '{ print $1}'`
do
echo $i "\c"
lsattr -El $i -a unique_id | awk '{ print $2 }' | cut -c 6-37
done

You get volume UID which can be used to identify disk on Storwize / SVC in GUI or running command lsvdisk.

lsvdisk -filtervalue vdisk_UID=60050111111111111000000000000002


Enjoy IT!