Moving a volume between I/O groups using the CLI

To move volumes between I/O groups non-disruptively, ensure that hosts are mapped to the volume, support non-disruptive volume move. The cached data that is held within the system must first be written to the system disk before the allocation of the volume can be changed.

Modifying the I/O group that services the volume can be done concurrently with I/O operations if the host supports non- disruptive volume move. It also requires a rescan at the host level to ensure that the multipathing driver is notified that the allocation of the preferred node has changed and the ports by which the volume is accessed has changed. This can be done in the situation where one pair of nodes becomes over used.

If there are any host mappings for the volume, the hosts must be members of the target I/O group or the migration fails.

Verify that you created paths to I/O groups on the host system. After the system successfully adds the new I/O group to the volume's access set and you moved selected volumes to another I/O group, detect the new paths to the volumes on the host. The commands and actions on the host vary depending on the type of host and the connection method used. These steps must be completed on all hosts to which the selected volumes are currently mapped.

You can also use the management GUI to move volumes between I/O groups non-disruptively. In the management GUI, select Volumes > Volumes. On the Volumes panel, select the volume that you want to move and select Actions > Move to Another I/O Group. The wizard guides you through all the steps that are necessary for moving a volume to another I/O group, including any changes to hosts that are required. Click Need Help on the associated management GUI panels for details.
Note: If the selected volume is performing quick initialization, this wizard is unavailable until quick initialization is complete.

To move a volume between I/O groups using the CLI, complete the following steps:

  1. Issue the following command: addvdiskaccess -iogrp iogrp id/name volume id/name
  2. Issue the following command: movevdisk -iogrp destination iogrp -node new preferred node volume id/name
    The system disables moving a volume if the selected volume is currently performing quick initialization. After the quick initialization completes, you can move the volume to another I/O group.
  3. Issue the appropriate commands on the hosts that are mapped to the volume to detect the new paths to the volume in the destination I/O group.
  4. After confirming that the new paths are online, remove access from the old I/O group: rmvdiskaccess -iogrp iogrp id/name volume id/name
  5. Issue the appropriate commands on the hosts that are mapped to the volume to remove the paths to the old I/O group.