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

Article:HOWTO74837  |  Created: 2012-03-26  |  Updated: 2012-03-27  |  Article URL http://www.symantec.com/docs/HOWTO74837
Article Type
How To


Environment


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

See Migrating LVM volume groups to DMP

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
    . . .
    emc_clariion0_84  auto:none  -       -        online invalid
    emc_clariion0_85  auto:none  -       -        online invalid
  2. Identify the ODM device name that corresponds to the device. The ODM device name is a truncated form of the DMP device name, since the ODM database requires a shorter name. The dmpname is an attribute of the ODM device name.

    In this example, the DMP device name is emc_clariion0_84, and the ODM device name is emc_clari0_84. The enclosure index and the array volume ID (AVID) in the enclosure based name (EBN) are retained from the DMP device name.

    You can use an ODM query such as the following to determine the ODM device name:

    # odmget -q "attribute = dmpname AND value = emc_clariion0_84" 
    CuAt
    
    CuAt:
            name = "emc_clari0_84"
            attribute = "dmpname"
            value = "emc_clariion0_84"
            type = "R"
            generic = "DU"
            rep = "s"
            nls_index = 2
    # lspv | grep emc_clari0
    emc_clari0_84       none                      None
    emc_clari0_85       none                      None
    
    # lsdev -Cc disk
    . . .
    emc_clari0_84     Available          Veritas DMP Device
    emc_clari0_85     Available          Veritas DMP Device
    
    # lsattr -El emc_clari0_84
    dmpname   emc_clariion0_84  DMP Device name            True
    pvid      none              Physical volume identifier True
    unique_id DGC%5FRAID%200%5FCK200080300687%5F600601601C101F0
    0E5CF099D7209DE11 Unique device identifier   True
  3. Create a new LVM volume group on a DMP device.

    Use the ODM device name to specify the DMP device.

    # mkvg -y newvg emc_clari0_84
    0516-1254 mkvg: Changing the PVID in the ODM.
    newvg
    
    # lspv
    emc_clari0_84       00c95c90837d5ff8      newvg	active
    emc_clari0_85       none                  None
  4. Add a DMP device to an existing LVM volume group.

    Use the ODM device name to specify the DMP device.

    # extendvg -f newvg emc_clari0_85
    0516-1254 mkvg: Changing the PVID in the ODM.
    
    # lspv
    emc_clari0_84       00c95c90837d5ff8      newvg	active
    emc_clari0_85       00c95c90837d612f      newvg	active
  5. Run the following command to trigger DMP discovery of the devices:

    # vxdisk scandisks
  6. After the discovery completes, the disks are shown as in use by LVM:

    # vxdisk list
    . . .
    emc_clariion0_84 auto:LVM        -        -    LVM
    emc_clariion0_85 auto:LVM        -        -    LVM

Legacy ID



uxrt-60_v39908223_v71682875


Article URL http://www.symantec.com/docs/HOWTO74837


Terms of use for this information are found in Legal Notices