Working with disk on the VIO Server
Working with many disks on the VIO Server can be confusing and it is sometimes hard to identify the common hdisk (or hdiskpower) names for the same SAN devices. Here are a few tips on how to identify the same SAN disks across multiple VIO Servers.
List all the disk that are availabe. Not a great deal of helpful information to identify the disks in this report as all the PVIDs are set to none. Any disks that have a PVID shown may not show the true PVID, as this could be changed on the Client LPAR and if so, that does not update the VIO Server ODM with the new PVID, so I try to avoid using PVIDs on the VIOS.
# lspv -avail
NAME PVID SIZE(megabytes)
hdiskpower5 none 46035
hdiskpower6 none 46035
hdiskpower7 none 46035
hdiskpower8 none 46035
hdiskpower9 none 46035
hdiskpower10 none 46035
hdiskpower11 none 46035
List all the disk that are free and available to be mapped to a VIO Client.
# lspv -free
NAME PVID SIZE(megabytes)
hdiskpower11 none 46035
How to find the UDID or UUID for the SAN device. If the string (UDID/UUID) to the right of the ==> is that same for a device on 2 or more VIO Servers, then that device is the same SAN disk.
# oem_setup_env
# lspv -u | awk '{ print $1 " ==> " $4 }'
hdiskpower10 ==> 1D012343CC09SYMMETRIX03EMCfcp
hdiskpower11 ==> 1D012343D009SYMMETRIX03EMCfcp