PRIMECLUSTER Global Disk Services Configuration and Administration Guide 4.1 (Solaris(TM) Operating System) |
Contents
![]() ![]() |
Chapter 6 Backing Up and Restoring | > 6.3 Backing Up and Restoring Local Disks and Shared Disks |
For mirror volumes, data can be backed up through snapshot by slice detachment during the services operation.
For use conditions on snapshots by detaching a slice, see "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.
For securing consistency of snapshot data, see "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 / |
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 |
When using GDS Management View, see "Slice Detachment" in "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 |
For the GFS Local File System
# mount -F sfxfs /dev/sfdsk/Class1/dsk/Volume1 /mnt1 |
3b-2) Resume the services.
4) When the volume is used as the GFS Local File System, reconfigure the partition information for the GFS Local File System on the detached slice.
# sfxadm /dev/sfdsk/Class1/rdsk/Disk1.Volume1 |
5) 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 |
For the GFS Local File System
# fsck -F sfxfs -y /dev/sfdsk/Class1/rdsk/Disk1.Volume1 |
6) 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.
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 |
When backing up the GFS Local File System with the sfxdump(1M) command
# sfxdump 0ucf /dev/rmt/0 /dev/sfdsk/Class1/rdsk/Disk1.Volume1 |
7) Reattaching the slice
Reattach the detached slice to the mirror volume.
# sdxslice -R -c Class1 -d Disk1 -v Volume1 |
When using GDS Management View, see "Attach Slice" of "Backup (by Slice Detachment)."
Contents
![]() ![]() |