Cloning a LVM rootvg that is enabled for DMP

Use the alt_disk_install command to clone an LVM rootvg that is enabled for DMP.

To clone an LVM rootvg that is enabled for DMP

  1. Show the DMP node names.
    # vxdmpadm native list
    PATH                      DMPNODENAME
    ==============================================
    hdisk75                   ams_wms0_491
    hdisk76                   ams_wms0_491
    hdisk80                   ams_wms0_491
    hdisk81                   ams_wms0_491
  2. Verify that the DMP node is the rootvg.
    # lspv | grep -w rootvg
    hdisk75  00c408c4dbd98818  rootvg  active
    hdisk76  00c408c4dbd98818  rootvg  active
    hdisk80  00c408c4dbd98818  rootvg  active
    hdisk81  00c408c4dbd98818  rootvg  active
  3. Show the DMP paths for the target disk.
    # vxdmpadm getsubpaths dmpnodename=emc_clariion0_137
    NAME     STATE[A]   PATH-TYPE[M] CTLR-NAME ENCLR-TYPE        ENCLR-NAME ATTRS
    =============================================================================
    hdisk59  ENABLED(A) PRIMARY      fscsi0    emc_clariion0_137 emc_clariion0 -
    hdisk62  ENABLED    SECONDARY    fscsi0    emc_clariion0_137 emc_clariion0 -
    hdisk65  ENABLED(A) PRIMARY      fscsi1    emc_clariion0_137 emc_clariion0 -
    hdisk68  ENABLED    SECONDARY    fscsi1    emc_clariion0_137 emc_clariion0 -
  4. Remove the disk from DMP control.
    # /etc/vx/bin/vxdiskunsetup -C emc_clariion0_137
    # vxdisk rm emc_clariion0_137
  5. Clone the rootvg.
    # alt_disk_install -C -P all hdisk59
    +-----------------------------------------------------------------------------+
    ATTENTION: calling new module /usr/sbin/alt_disk_copy. Please see the
    alt_disk_copy man page
    and documentation for more details.
    Executing command: {/usr/sbin/alt_disk_copy -P "all" -d "hdisk59"}
    +-----------------------------------------------------------------------------+
    Calling mkszfile to create new /image.data file.
    Checking disk sizes.
    Creating cloned rootvg volume group and associated logical volumes.
    Creating logical volume alt_hd5
    Creating logical volume alt_hd6
    Creating logical volume alt_hd8
    Creating logical volume alt_hd4
    Creating logical volume alt_hd2
    Creating logical volume alt_hd9var
    Creating logical volume alt_hd3
    Creating logical volume alt_hd1
    Creating logical volume alt_hd10opt
    Creating logical volume alt_hd11admin
    Creating logical volume alt_livedump
    Creating /alt_inst/ file system.
    /alt_inst filesystem not converted.
            Small inode extents are already enabled.
    Creating /alt_inst/admin file system.
    /alt_inst/admin filesystem not converted.
            Small inode extents are already enabled.
    Creating /alt_inst/home file system.
    /alt_inst/home filesystem not converted.
            Small inode extents are already enabled.
    Creating /alt_inst/opt file system.
    /alt_inst/opt filesystem not converted.
            Small inode extents are already enabled.
    Creating /alt_inst/tmp file system.
    /alt_inst/tmp filesystem not converted.
            Small inode extents are already enabled.
    Creating /alt_inst/usr file system.
    /alt_inst/usr filesystem not converted.
            Small inode extents are already enabled.
    Creating /alt_inst/var file system.
    /alt_inst/var filesystem not converted.
            Small inode extents are already enabled.
    Creating /alt_inst/var/adm/ras/livedump file system.
    /alt_inst/var/adm/ras/livedump filesystem not converted.
            Small inode extents are already enabled.
    Generating a list of files
    for backup and restore into the alternate file system...
    Backing-up the rootvg files and restoring them to the
    alternate file system...
    Modifying ODM on cloned disk.
    Building boot image on cloned disk.
    forced unmount of /alt_inst/var/adm/ras/livedump
    forced unmount of /alt_inst/var/adm/ras/livedump
    forced unmount of /alt_inst/var
    forced unmount of /alt_inst/var
    forced unmount of /alt_inst/usr
    forced unmount of /alt_inst/usr
    forced unmount of /alt_inst/tmp
    forced unmount of /alt_inst/tmp
    forced unmount of /alt_inst/opt
    forced unmount of /alt_inst/opt
    forced unmount of /alt_inst/home
    forced unmount of /alt_inst/home
    forced unmount of /alt_inst/admin
    forced unmount of /alt_inst/admin
    forced unmount of /alt_inst
    forced unmount of /alt_inst
    Changing logical volume names in volume group descriptor area.
    Fixing LV control blocks...
    Fixing file system superblocks...
    Bootlist is set to the boot disk: hdisk59 blv=hd5
  6. Set the boot list to include all the paths to emc_clariion0_137.
    # bootlist -m normal hdisk59 hdisk62 hdisk65 hdisk68 blv=hd5

    Verify that the boot list includes all paths and that each path shows the default boot volume hd5:

    # bootlist -m normal -o
    hdisk59 blv=hd5
    hdisk62 blv=hd5
    hdisk65 blv=hd5
    hdisk68 blv=hd5
  7. Reboot the system.
    # reboot
    Rebooting . . .
  8. Verify the DMP configuration.
    # vxdmpadm native list
    PATH                      DMPNODENAME
    ==============================================
    hdisk59                   emc_clariion0_137
    hdisk62                   emc_clariion0_137
    hdisk65                   emc_clariion0_137
    hdisk68                   emc_clariion0_137
  9. Verify the lspv output shows the path names.
    # lspv | grep -w rootvg
    hdisk59  00c408c4cc6f264e    rootvg    active
    hdisk62  00c408c4cc6f264e    rootvg    active
    hdisk65  00c408c4cc6f264e    rootvg    active
    hdisk68  00c408c4cc6f264e    rootvg    active