Removing a storage system using the CLI

You can remove a storage system using the command-line interface (CLI). The system supports both Fibre Channel and iSCSI-attatched external storage systems.

During this procedure, you will add a new device, migrate data off of the storage system and remove the old MDisks.

An alternative to following this procedure is to migrate all of the volumes that are using storage in this storage pool to another storage pool. Using this method, you can consolidate the volumes in a single or new group. However, you can only migrate one volume at a time. The procedure outlined below migrates all the data through a single command.

You can also use this procedure to remove or replace a single MDisk in a storage pool. If an MDisk experiences 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 replace just that MDisk.

To remove a storage system:

  1. Add the new storage system to your clustered-system configuration.
  2. Issue the following command:
    addmdisk -mdisk mdiskx:mdisky:mdiskz... mdisk_grp_name
    where mdiskx:mdisky:mdiskz... are the names of new MDisks that have a total capacity that is larger than the decommissioned MDisks and mdisk_grp_name is the name of the storage pool that contains the MDisks that you want to decommission.

    You should now have a storage pool that you want to decommission and the new MDisks.

  3. Ensure that the capacity of the new MDisks is the same or exceeds that of the old MDisks before you proceed to step 4.
  4. Issue the following command to force delete the old MDisks from the storage pool:
    rmmdisk -force -mdisk mdiskx:mdisky:mdiskz... mdisk_grp_name
    Where mdiskx:mdisky:mdiskz... are the old MDisks that you want to delete and mdisk_grp_name is the name of the storage pool that contains the MDisks that you want to delete. Depending upon the number and size of the MDisks, and the number and size of the volumes that are using these MDisks, this operation takes some time to complete, even though the command returns immediately.
  5. Check the progress of the migration process by issuing the following command:
    lsmigrate
  6. When all the migration tasks are complete, for example, the command in step 5 returns no output, verify that the MDisks are unmanaged.
  7. Access the storage system and unmap the LUNs from the ports.
    Note: You can delete the LUNs if you no longer want to preserve the data that is on the LUNs.
  8. Issue the following CLI command:
    detectmdisk
  9. Verify that there are no MDisks for the storage system that you want to decommission.
  10. If you are removing an iSCSI-attached storage system, complete these additional steps:
    1. Verify the controller ID for the storage system that you are removing by entering the following command:
      lscontroller
    2. Enter the following command:
      lsiscsistorageport
      In the results that display, check the output for the port IDs that correspond with the controller IDs that were listed when you issued the lscontroller command.
    3. Remove the iSCSI storage port IDs that correspond to the storage system that you are decommissioning by issuing the following command:
      rmiscsistorageport
  11. Remove the storage system from the SAN so that the ports can no longer access the storage system.