Thank to Urban Biel on  twitter and this post  I just discovered an interesting (but not new) option for lspv command  :  -u ! (available for AIX 6.1 TL07 and  AIX 7.1 TL01), which displays the UDID and UUID of the physical device directly without scripting headaches :

  -u
            Lists all the physical volumes in the system along with the following information:

              *    Physical disk name.

              *    Physical volume identifiers (PVIDs).

              *    The volume group (if any), or label (if any), that the physical volume belongs to and that is locked with the lkdev command.

              *    The state of the volume group.

                     Active

                          When the volume group is varied on.

                     Concurrent

                          When the volume group is varied on in the concurrent mode.

                     Locked

                          When the physical volume is locked with the lkdev command.

              *    Unique device identifier (UDID).

              *    Universally Unique Identifier (UUID).

 root@lpar:/root# lspv -u

hdisk0        00f68936d157faf1                    rootvg           active      1D06670CF209SYMMETRIX03EMCfcp                                       302abcdf-d558-58fe-a102-7c3eb11460c9

hdisk1          00f68917df5f3909                 datavg         active      1D06670CF309SYMMETRIX03EMCfcp                                       c8ddd1f3-557d-689a-5e46-5bc8c037d7ca

hdisk2          00f68916dh5fabf0                 app2vg           active     1D06670CF409SYMMETRIX03EMCfcp                                       ed4a46c6-0c2f-2230-0967-5207df205184

Small reminder :

The Unique device identifier (UDID) is the unique_id attribute from the ODM CuAt ObjectClass.

 The UDID is present for PowerPath, AIX MPIO, and some other devices. 

The Universally Unique Identifier (UUID) is present for AIX MPIO devices

Please visit Urban’s post for the full story ! : https://www.ibm.com/developerworks/mydeveloperworks/blogs/paixperiences/entry/lspv_u?lang=en

Share Button
Display the UDID and UUID of a physical volume
Taggé sur :        

Laisser un commentaire