By default Veritas Volume Manager uses HP-UX legacy naming scheme instead of the agile view. Below is a procedure to change this behaviour.

  1. Display VxVM disk information and get the current naming scheme.
# vxdisk list

DEVICE       TYPE            DISK         GROUP        STATUS
c0t0d0s2     auto:LVM        -            -            LVM
c0t1d0       auto:LVM        -            -            LVM
c0t2d0       auto:cdsdisk    labdg01      labdg        online
c0t3d0       auto:cdsdisk    labdg02      labdg        online
c0t4d0       auto:cdsdisk    labdg03      labdg        online
c0t5d0       auto:none       -            -            online invalid
c0t6d0       auto:none       -            -            online invalid
c0t7d0       auto:none       -            -            online invalid
c0t8d0s2     auto:hpdisk     rootdisk01   rootdg       online
c0t9d0s2     auto:hpdisk     rootdisk02   rootdg       online

# vxddladm get namingscheme

NAMING_SCHEME       PERSISTENCE         MODE                
===============================================
OS Native           Yes                 Legacy

As shown the mode is set to legacy and the disks are shown with their legacy device names.

  1. To change this use again the vxddladm command.
# vxddladm set namingscheme=osn mode=new

The parameters used are namingscheme and mode. The available values for namingscheme are:

  • ebn: Enclosure based names.
  • osn: Operative system names.

If ebn is used neither legacy mode nor new mode can be set since hardware names provided by the disk array will be used. So osn as namingscheme is the right choice.

The mode parameter is defines which naming model will be used in the osn naming scheme. The following values can be set:

  • default
  • legacy
  • new
  1. Check the change by executing the vxdisk and vxddladm commands:
# vxdisk list

DEVICE       TYPE            DISK         GROUP        STATUS
disk4_p2     auto:LVM        -            -            LVM
disk6        auto:LVM        -            -            LVM
disk8        auto:cdsdisk    labdg01      labdg        online
disk10       auto:cdsdisk    labdg02      labdg        online
disk12       auto:cdsdisk    labdg03      labdg        online
disk14       auto:none       -            -            online invalid
disk16       auto:none       -            -            online invalid
disk18       auto:none       -            -            online invalid
disk20_p2    auto:hpdisk     rootdisk01   rootdg       online
disk22_p2    auto:hpdisk     rootdisk02   rootdg       online

# vxddladm get namingscheme

NAMING_SCHEME       PERSISTENCE         MODE                
===============================================
OS Native           Yes                 New                 

:pushpin: the naming scheme can be set back to the legacy scheme using the same procedure.

Comments