Solstice DiskSuite 4.2.1 User's Guide

Limitations


Note -

If you use these procedures regularly, put them into a script for ease of use.


The high-level steps in this procedure are:

  1. Before beginning, run the metastat(1M) command to make sure the mirror is in the "Okay" state.

    A mirror that is in the "Maintenance" state should be repaired first.

  2. For all file systems except root (/), lock the file system from writes.


    # /usr/sbin/lockfs -w mount point
    

    Only a UFS needs to be write-locked. If the metadevice is set up as a raw device for database management software or some other specific application, running lockfs(1M) is not necessary. (You may, however, want to run the appropriate vendor-supplied utility to flush any buffers and lock access.)


    Caution - Caution -

    Write-locking root (/) causes the system to hang, so it should never be performed.


  3. Take one submirror offline from the mirror.


    # metaoffline mirror submirror
    

    In this command,

    mirror

    Is the metadevice name of the mirror. 

    submirror

    Is the metadevice name of the submirror (metadevice) being taken offline. 

    Reads will continue to be made from the other submirror. The mirror will be out of sync as soon as the first write is made. This inconsistency is corrected when the offlined submirror is brought back online in Step 6.

    There is no need to run fsck(1M) on the offlined file system.

  4. Unlock the file system and allow writes to continue.


    # /usr/sbin/lockfs -u mount point
    

    You may need to perform necessary unlocking procedures based on vendor-dependent utilities used in Step 2 above.

  5. Perform a backup of the offlined submirror. Use ufsdump(1M) or your usual backup utility.


    Note -

    To ensure a proper backup, use the raw metadevice, for example, /dev/md/rdsk/d4. Using "rdsk" allows greater than 2 Gbyte access.


  6. Place the mirror back online.


    # metaonline mirror submirror
    

    DiskSuite automatically begins resyncing the submirror with the mirror.