This section describes the procedure for creating backup of a mirror volume making use of a snapshot by detaching a slice.
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 |
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 the ext4 file system
# mount -t ext4 /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 the ext4 file system
# fsck -t ext4 -y /dev/sfdsk/Class1/dsk/Disk Volume1 |
5) Backing Up
Back up data in the detached slice. In the following example, data is backed up to a tape medium of tape device /dev/st0.
See
For details on the backup methods, see the manuals of file systems to be backed up and used commands.
When backing up with the dd(1) command
# dd if=/dev/sfdsk/Class1/dsk/Disk1.Volume1 of=/dev/st0 bs=32768 |
6) Reattaching the slice
Reattach the detached slice to the mirror volume.
# sdxslice -R -c Class1 -d Disk1 -v Volume1 |