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.
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.
Read Creating and Maintaining RAID-1 Volumes.
Make sure that you have root privilege and that you have a current backup of all data.
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.
# 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.
# metaonline d10 d11d10: submirror d11 is onlined |
In this example, submirror d11 is brought back online in mirror d10.