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 that offered by the metadetach command. However, the metaoffline command does not sever the logical association between the submirror and the mirror.

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

  2. Read Background Information for RAID 1 Volumes.

  3. 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 Submirrors tab. Follow the instructions on screen. For more information, see the online help.

    • Use the metaoffline command to take offline a submirror.

      # metaoffline mirror submirror

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

    • Use the metaonline command to bring 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 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.

Example 11–10 Placing a Submirror Online

# metaonline d10 d11
d10: submirror d11 is onlined

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