Adding DMP devices to an existing LVM volume group or creating a new LVM volume group

When the dmp_native_support is ON, you can create a new LVM volume group on an available DMP device. You can also add an available DMP device to an existing LVM volume group. After the LVM volume groups are on DMP devices, you can use any of the LVM commands to manage the volume groups.

To create a new LVM volume group on a DMP device or add a DMP device to an existing LVM volume group

  1. Choose disks that are available for use by LVM. The vxdisk list command displays disks that are not in use by VxVM with the TYPE auto:none and the STATUS Online invalid.

    # vxdisk list
    DEVICE       TYPE            DISK    GROUP    STATUS
    . . .
    xp10240_0317 auto:none       -       -        online invalid
    xp10240_0318 auto:none       -       -        online invalid
  2. Create a new LVM volume group on a DMP device.

    Use /dev/[r]disk/ as the prefix for the DMP device to obtain the complete path name.

    # pvcreate /dev/rdisk/xp10240_0317
    Physical volume "/dev/rdisk/xp10240_0317" has been 
    successfully created.
    
    # vgcreate /dev/newvg /dev/disk/xp10240_0317
    Increased the number of physical extents per physical 
    volume to 1250.
    Volume group "/dev/newvg" has been successfully created.
    Volume Group configuration for /dev/newvg has been saved 
    in /etc/lvmconf/newvg.conf
    
    # vgdisplay -v /dev/newvg | grep Name
    VG Name                     /dev/newvg
       PV Name                     /dev/disk/xp10240_0317
  3. Add a DMP device to an existing LVM volume group.

    Use /dev/[r]disk/ as the prefix for the DMP device to obtain the complete path name.

    # pvcreate /dev/rdisk/xp10240_0318
    Physical volume "/dev/rdisk/xp10240_0318" has been 
    successfully created.
    
    # vgextend newvg /dev/disk/xp10240_0318
    Volume group "newvg" has been successfully extended.
    Volume Group configuration for /dev/newvg has been saved 
    in /etc/lvmconf/newvg.conf
    
    # vgdisplay -v /dev/newvg | grep Name
    VG Name                     /dev/newvg
       PV Name                     /dev/disk/xp10240_0317
       PV Name                     /dev/disk/xp10240_0318
  4. Run the following command to trigger DMP discovery of the devices:
    # vxdisk scandisks
  5. After the discovery completes, the disks are shown as in use by LVM:
    # vxdisk list
    . . .
    xp10240_0317 auto:LVM        -            -    LVM
    xp10240_0318 auto:LVM        -            -    LVM