Replacing LUNs dynamically from an existing target ID

Dynamic Multi-Pathing (DMP) provides a Dynamic Reconfiguration tool to simplify the replacement of new 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 the nodes in the cluster.

To replace 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 Replace LUNs option.

    The output displays a list of LUNs that are available for replacement. A LUN is available for replacement if there is no open on the LUN, and the state is online or nolabel.

  5. Select one or more LUNs to replace.
  6. At the prompt, confirm the LUN selection.
  7. Remove the LUN from the array/target.
  8. Return to the Dynamic Reconfiguration tool and select y to continue the removal.

    After the removal completes successfully, the Dynamic Reconfiguration tool prompts you to add a LUN.

  9. When the prompt displays, add the LUNs from the array/target.
  10. Select y to continue to add the LUNs.

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