Adding new LUNs dynamically to a target ID

Dynamic Multi-Pathing (DMP) provides a Dynamic Reconfiguration tool to simplify the addition of new LUNs to a new or existing target ID. One or more new LUNs are mapped to the host by way of multiple HBA ports. An operating system device scan is issued for the LUNs to be recognized and added to DMP control.

Warning:

Do not run any device discovery operations outside of the Dynamic Reconfiguration tool until the device operation is completed.

In a cluster, perform the steps on all the nodes in the cluster.

To add new LUNs dynamically to a target ID

  1. Start the vxdiskadm utility:
    # vxdiskadm
  2. Select the Dynamic Reconfiguration operations option from the vxdiskadm menu.
  3. Specify the Dynamic Reconfiguration operation to be done. Output similar to the following is displayed:
    Specify Dynamic Reconfiguration Operation to be done:
    Menu: VolumeManager/Disk/DynamicReconfigurationOperations
     
     1      Add Luns
     2      Remove Luns
     3      Replace Luns
     4      Replace HBA
     
     
     ?      Display help about menu
     ??     Display help about the menuing system
     q      Exit
    

    To add a LUN, enter 1. Output similar to the following is displayed:

    Add Luns
    Menu: VolumeManager/Disk/DynamicReconfigurationOperations/AddLuns
     
    INFO: Refreshing OS device Tree
    INFO: Updating VxVM device tree
    Add LUNs from array, once done then press 'y' to continue 
    or 'q' to quit. :
    
  4. The following are sample EMC Symmetrix commands:
    # symmask -sid 822 -wwn 10000000c989e032 -dir 1c -p 0 add devs 
    02b8 -nopr
    # symmask -sid 822 -wwn 10000000c989e032 -dir 1c -p 1 add devs 
    02b8 -nopr
    # symmask -sid 822 -wwn 10000000c989e032 -dir 16c -p 0 add devs 
    02b8 -nopr
    # symmask -sid 822 -wwn 10000000c989e032 -dir 16c -p 1 add devs 
    02b8 -nopr
    # symmask -sid 822 refresh -nopr
     
    Symmetrix FA/SE directors updated with contents of SymMask 
    Database 000290300822
    
  5. When the prompt displays, add the LUNs from the array.

    Output similar to the following is displayed:

    Add LUNs from array, once done then press 'y' to continue 
    or 'q' to quit. : y
    Add Luns
    Menu: VolumeManager/Disk/DynamicReconfigurationOperations/AddLuns
     
    INFO: Refreshing OS device Tree
    INFO: Updating VxVM device tree
    INFO: Number of Paths for Lun [emc0_02b8] presented=4
    INFO: Updating VxVM device tree 
    
  6. Select y to continue to add the LUNs to DMP.

    DMP updates the operating system device tree and the VxVM device tree. The newly-discovered devices are now visible.

    ------------------------------------------------------
    Luns Added
    ------------------------------------------------------
    Enclosure=emc0 AVID=02B8
    Device=emc0_02b8 Serial=22002B8000
    PATH=hdisk49 ctlr=fscsi0 port=1c-0 [-]
    PATH=hdisk11 ctlr=fscsi0 port=16c-0 [-]
    PATH=hdisk12 ctlr=fscsi0 port=16c-1 [-]
    PATH=hdisk14 ctlr=fscsi0 port=1c-1 [-]
    ------------------------------------------------------
     
    Press <Enter> or <Return> to continue:
    
  7. Specify the dynamic reconfiguration operation to be done:
    Specify Dynamic Reconfiguration Operation to be done:
    Menu: VolumeManager/Disk/DynamicReconfigurationOperations
    
     1	Add Luns
     2	Remove Luns
     3	Replace Luns
     4	Replace HBA
    
    
     ?	Display help about menu
     ??	Display help about the menuing system
     q	Exit
    
    Select an operation to perform : q
    

    To exit the Dynamic Reconfiguration tool, enter: q

  8. Initialize the disk.
    # vxdisk -eo alldgs list | grep -w emc0_02b8
    emc0_02b8    auto:none      -            -           online invalid
    hdisk49          Mirror lun
     
    If to be used by VxVM and not already initialised, 
    run /etc/vx/bin/vxdisksetup  - i <da-name>
     
    # /etc/vx/bin/vxdisksetup -i emc0_02b8
     
    # vxdisk -eo alldgs list | grep -w emc0_02b8
    emc0_02b8    auto:cdsdisk   -            -           online              
    hdisk49          Mirror lun