Solstice DiskSuite 4.2.1 User's Guide

How to Move SPARCstorage Array Disks Between Hosts (Command Line)

This procedure explains how to move disks containing DiskSuite objects from one SPARCstorage Array to another.

  1. Repair any devices that are in an errored state or that have been replaced by hot spares on the disks that are to be moved.

  2. Identify the state database replicas, metadevices, and hot spares on the disks that are to be moved, by using the output from the metadb and metastat -p commands.

  3. Physically move the disks to the new host, being careful to connect them in a similar fashion so that the device names are the same.

  4. Recreate the state database replicas.


    # metadb -a [-f] slice ...
    

    Be sure to use the same slice names that contained the state database replicas as identified in Step 2. You might need to use the -f option to force the creation of the state database replicas.

  5. Copy the output from the metastat -p command in Step 2 to the md.tab file.

  6. Edit the md.tab file, making the following changes:

    • Delete metadevices which you did not move.

    • Change the old metadevice names to new names.

    • Make any mirrors into one-way mirrors for the time being, selecting the smallest submirror (if appropriate).

  7. Check the syntax of the md.tab file.


    # metainit -a -n
    
  8. Recreate the moved metadevices and hot spare pools.


    # metainit -a
    
  9. Make the one-way mirrors into multi-way mirrors using the metattach(1M) command as necessary.

  10. Edit the /etc/vfstab file for file systems that are to be automatically mounted at boot. Then remount file systems on the new metadevices as necessary.