For mirror volumes, data can be backed up through snapshot by slice detachment during the services operation.
See
For use conditions on snapshots by detaching a slice, see "A.2.19 Creating a Snapshot by Slice Detachment."
To secure consistency of data in a detached slice, the services must be stopped temporarily when detaching the slice.
See
For securing consistency of snapshot data, see "A.2.29 Ensuring Consistency of Snapshot Data."
1) Stop the services
1a) With a shared volume used by a cluster application
Exit the cluster application.
1b) With a volume not used by a cluster application
1b-1) Stop the services using the volume.
1b-2) When the volume is used as a file system, unmount the file system. In the following example, the mount point is /mnt1.
# cd / # umount /mnt1 |
2) Detaching the slice
Detach the slice from the mirror volume. The following shows an example of detaching the slice from disk Disk1.
# sdxslice -M -c Class1 -d Disk1 -v Volume1 |
See
When using GDS Management View, see "Slice Detachment" in "5.3.2.1 Backup (by Slice Detachment)."
3) Resuming the services
3a) With a shared volume used by a cluster application
Execute the cluster application.
3b) With a volume not used by a cluster application
3b-1) When the volume is used as a file system, mount the file system. In the following example, the mount point is /mnt1.
For a ufs file system
# mount -F ufs /dev/sfdsk/Class1/dsk/Volume1 /mnt1 |
3b-2) Resume the services.
4) When the volume is used as a file system, check and repair consistency of the file system. If the file system was unmounted when the slice was detached in step 1), this step can be skipped.
For a ufs file system
# fsck -F ufs -y /dev/sfdsk/Class1/rdsk/Disk1.Volume1 |
5) Backing Up
Back up data in the detached slice. In the following examples, data is backed up to a tape medium of tape device /dev/rmt/0.
See
For details on the backup methods, see the manuals of file systems to be backed up and used commands.
When backing up data held in a raw device with the dd(1M) command
# dd if=/dev/sfdsk/Class1/rdsk/Disk1.Volume1 of=/dev/rmt/0 bs=32768 |
When backing up a ufs file system with the ufsdump(1M) command
# ufsdump 0ucf /dev/rmt/0 /dev/sfdsk/Class1/rdsk/Disk1.Volume1 |
6) Reattaching the slice
Reattach the detached slice to the mirror volume.
# sdxslice -R -c Class1 -d Disk1 -v Volume1 |
See
When using GDS Management View, see "Attach Slice" of "5.3.2.1 Backup (by Slice Detachment)."