Removing LUNs dynamically from an existing target ID

Dynamic Multi-Pathing (DMP) provides a Dynamic Reconfiguration tool to simplify the removal of LUNs from an existing target ID. Each LUN is unmapped from the host. DMP issues an operating system device scan and cleans up the operating system device tree.

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 nodes in the cluster.

To remove LUNs dynamically from an existing target ID

  1. Stop all applications and volumes that are hosted on the LUNs that are to be removed.

    For LUNs using AIX LVM over DMP devices, remove the device from the LVM volume group.

    # reducevg vgname
    						pvname
  2. Start the vxdiskadm utility:
    # vxdiskadm
  3. Select the Dynamic Reconfiguration operations option from the vxdiskadm menu.
  4. Select the Remove LUNs option.
  5. Type list or press Return to display a list of LUNs that are available for removal. A LUN is available for removal if it is not in use.

    The following shows an example output:

    Select disk devices to remove: [<pattern-list>,all,list]: list
    LUN(s) available for removal:
    eva4k6k0_0
    eva4k6k0_1
    eva4k6k0_2
    eva4k6k0_3
    eva4k6k0_4
    emc0_02b8
  6. Enter the name of a LUN, a comma-separated list of LUNs, or a regular expression to specify the LUNs to remove.

    For example, enter emc0_02b8.

    Select disk devices to Remove: [<pattern-list>,all,list,
    file=<filename>,q] (default:list): emc0_02b8
  7. At the prompt, confirm the LUN selection.

    DMP removes the LUN from VxVM usage.

  8. At the following prompt, remove the LUN from the array/target.
    Remove Luns
    Menu: VolumeManager/Disk/DynamicReconfigurationOperations/RemoveLuns
     
    INFO: Removing Lun [emc0_02b8] from VxVM
    INFO: LUN [emc0_02b8] removed successfully from VxVM.
    -----------------------------------------------------
    Enclosure=emc0 AVID=02B8
    Device=emc0_02b8 Serial=22002B8000
    PATH=hdisk12 ctlr=fscsi0 port=16c-0 [-]
    PATH=hdisk14 ctlr=fscsi0 port=16c-1 [-]
    -----------------------------------------------------
    Please remove LUNs with Above details from array and press 'y' to 
    continue removal or 'q' to quit :
    
  9. The following are sample EMC Symmetrix commands:
    # symmask -sid 822 -wwn 10000000c989e032 -dir 16c -p 0 remove devs 02b8
    # symmask -sid 822 -wwn 10000000c989e032 -dir 16c -p 1 remove devs 02b8
    # symmask -sid 822 refresh -nopr
     
    Symmetrix FA/SE directors updated with contents of SymMask 
    Database 000290300822
     
    When complete, enter "y" to continue now the storage activity 
    is complete
     
    Please remove LUNs with Above details from array and 
    press 'y' to continue removal or 'q' to quit : y
    
  10. DMP completes the removal of the device from VxVM usage. Output similar to the following is displayed:
    Remove Luns
    Menu: VolumeManager/Disk/DynamicReconfigurationOperations/RemoveLuns
     
    INFO: [emc0_02b8] removed Successfully from OS device Tree.
    INFO: Refreshing OS device Tree
    INFO: Updating VxVM device tree
    ---------------------------------------------------------
    Luns Removed
    ---------------------------------------------------------
    emc0_02b8
    ---------------------------------------------------------
     
    Press <Enter> or <Return> to continue:
    
  11. 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
    
    

    To exit the Dynamic Reconfiguration tool, enter: q