Removing a storage subsystem using the CLI Maintaining Software upgrade strategy

This task provides step-by-step instructions for removing a storage subsystem.

You can replace or decommission an old storage subsystem by following the procedure below. This procedure takes you through adding the new device, migrating the data off of the old device and removing the old MDisks.

This function can also be performed by migrating all the VDisks that are using storage in this MDisk group to another MDisk group. This procedure has an advantage if you wish to consolidate the VDisks in a single or new group. However, you can only migrate a single VDisk at a time. The procedure outlined below will migrate all the data through a single command.

This procedure can also be used to remove or replace a single MDisk in a group. If an MDisk has suffered a partial failure, such as a degraded array, and you can still read the data from the disk but cannot write to it, you can follow this procedure to replace just one MDisk. In steps 1 and 3 only add or remove a single MDisk rather than a list of MDisks.

Prerequisites

All the MDisks that belong to the storage subsystem that is being decommissioned belong to a single MDisk group. You need to repeat this procedure for each MDisk group in turn before removing the old device.

Steps

Perform the following steps to remove a storage subsystem:

  1. Add the new storage subsystem to your cluster configuration.
  2. Issue the following command:
    svctask addmdisk -mdisk <colon separated mdisk
    list as determined in step 4> <mdisk_grp_name>

    Where <mdisk_grp_name> is the name of the MDisk group that contains the MDisks that are being decommisoned.
  3. You should now have an MDisk group that contains the old MDisks (those to be decommissioned) and the new MDisks (those that are replacing them). Ensure that the capacity of the new MDisks is the same or exceeds that of the old MDisks before proceeding.
  4. Force delete the old MDisks from the group. This will migrate all the data from the old MDisks to the new MDisks. Issue the following command:
    svctask rmmdisk -force -mdisk <colon separated
    mdisk list of all the old mdisks> <mdisk_grp_name>

    Depending upon the number and size of the MDisks, and the number and size of the VDisks that are using these MDisks, this operation will take some time to complete although the command will return immediately.
  5. Check progress by issuing the following command:
    svcinfo lsmigrate
  6. When all the migration tasks have completed, for example, the command in step 4 returns no output, you can safely remove the old device from the SAN.
  7. Once you have removed the old device from the SAN, re-run the svctask detectmdisk command to remove the entries for the old MDisks.
Related topics Maintaining Software upgrade strategy

(C) Copyright International Business Machines Corporation 2003, 2004