Solaris Volume Manager Administration Guide

ProcedureHow to Place a Submirror Offline and Online

The metaonline command can only be used when a submirror was taken offline by the metaoffline command. After the metaonline command runs, Solaris Volume Manager automatically begins resynchronizing the submirror with the mirror.


Note –

The metaoffline command's capabilities are similar to the capabilities offered by the metadetach command. However, the metaoffline command does not sever the logical association between the submirror and the mirror.


Before You Begin

Read Creating and Maintaining RAID-1 Volumes.

  1. Make sure that you have root privilege and that you have a current backup of all data.

  2. Use one of the following methods to place a submirror online or offline.

    • From the Enhanced Storage tool within the Solaris Management Console, open the Volumes node. Choose the mirror. Then, choose Action⇒Properties and click the Submirror tab. Follow the onscreen instructions . For more information, see the online help.

    • Use the metaoffline command to a submirror offline.


      # metaoffline mirror submirror
      

      See the metaoffline(1M) man page for more information.

    • Use the metaonline command to place a submirror online.


      # metaonline mirror submirror
      

      See the metaonline(1M) man page for more information.


Example 11–9 Placing a Submirror Offline


# metaoffline d10 d11
d10: submirror d11 is offlined

In this example, submirror d11 is taken offline from mirror d10. Reads continue to be made from the other submirror. The mirror is out of sync as soon as the first write is made. This inconsistency is corrected when the offlined submirror is brought back online.



Example 11–10 Placing a Submirror Online


# metaonline d10 d11d10: submirror d11 is onlined

In this example, submirror d11 is brought back online in mirror d10.