A mirrored Solaris Volume Manager volume can be backed up without unmounting it or taking the entire mirror offline. One of the submirrors must be taken offline temporarily, thus losing mirroring, but it can be placed online and resynchronized as soon as the backup is complete, without halting the system or denying user access to the data. Using mirrors to perform online backups creates a backup that is a "snapshot" of an active file system.
A problem might occur if a program writes data onto the volume immediately before the lockfs command is run. To prevent this problem, temporarily stop all the services running on this node. Also, ensure the cluster is running without errors before performing the backup procedure.
The phys-schost# prompt reflects a global-cluster prompt. Perform this procedure on a global cluster.
This procedure provides the long forms of the Oracle Solaris Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical.
# metaset -s setname
Specifies the disk set name.
For more information, see the metaset(8) man page.
# lockfs -w mountpoint
See the lockfs(8) man page for more information.
# metastat -s setname -p
Displays the status in a format similar to the md.tab file.
See the metastat(8) man page for more information.
# metadetach -s setname mirror submirror
See the metadetach(8) man page for more information.
# lockfs -u mountpoint
# fsck /dev/md/diskset/rdsk/submirror
# metattach -s setname mirror submirror
When the metadevice or volume is placed online, it is automatically resynchronized with the mirror. See the metattach(8) man page for more information.
# metastat -s setname mirror
See Managing ZFS File Systems in Oracle Solaris 11.4 for more information.