Backing Up and Restoring a Cluster
This is a list of step-by-step instructions in this chapter.
How to Determine the Number of Tapes Needed for a Full Backup
How to Perform Online Backups for Mirrors (Solstice DiskSuite/Solaris Volume Manager)
How to Perform Online Backups for Volumes (VERITAS Volume Manager)
How to Restore Individual Files Interactively (Solstice DiskSuite/Solaris Volume Manager)
How to Restore the root (/) File System (Solstice DiskSuite/Solaris Volume Manager)
How to Restore a Non-Encapsulated root (/) File System (VERITAS Volume Manager)
How to Restore an Encapsulated root (/) File System (VERITAS Volume Manager)
Backing Up a Cluster
Table 9-1 Task Map: Backing Up Cluster Files
Task | For Instructions, Go To... |
|---|---|
Find the names of the file systems you want to back up | |
Calculate how many tapes you will need to contain a full backup | How to Determine the Number of Tapes Needed for a Full Backup |
Back up the root file system | |
Perform online backup for mirrored or plexed file systems | How to Perform Online Backups for Mirrors (Solstice DiskSuite/Solaris Volume Manager) |
How to Perform Online Backups for Volumes (VERITAS Volume Manager) |
How to Find File System Names to Back Up
Use this procedure to determine the names of the file systems you want to back up.
Display the contents of the /etc/vfstab file.
You do not need to be superuser to run this command.
% more /etc/vfstab
Look in the mount point column for the name of the file system you want to back up.
Use this name when you back up the file system.
% more /etc/vfstab
Example--Finding File System Names to Back Up
In the following example, the names of available file systems listed in the /etc/vfstab file are displayed.
% more /etc/vfstab #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # #/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes - f - /dev/fd fd - no - /proc - /proc proc - no - /dev/dsk/c1t6d0s1 - - swap - no - /dev/dsk/c1t6d0s0 /dev/rdsk/c1t6d0s0 / ufs 1 no - /dev/dsk/c1t6d0s3 /dev/rdsk/c1t6d0s3 /cache ufs 2 yes - swap - /tmp tmpfs - yes - |
How to Determine the Number of Tapes Needed for a Full Backup
Use this procedure to calculate the number of tapes you will need to back up a file system.
Become superuser on the cluster node you want to back up.
Estimate the size of the backup in bytes.
# ufsdump S filesystem
S Displays the estimated number of bytes needed to perform the backup.
filesystem Specifies the name of the file system you want to back up.
Divide the estimated size by the capacity of the tape to see how many tapes you need.
Example--Determining the Number of Tapes Needed
In the following example, the file system size of 905,881,620 bytes will easily fit on a 4 GB tape (905,881,620 ÷ 4,000,000,000).
# ufsdump S /global/phys-schost-1 905881620 |
How to Back Up the root (/) File System
Use this procedure to back up the root (/) file system of a cluster node. Be sure the cluster is running problem-free before performing the backup procedure.
Become superuser on the cluster node you want to back up.
Switch each running data service from the node to be backed up to another node in the cluster.
# scswitch -z -D disk-device-group[,...] -h node[,...]
-z Performs the switch.
-D disk-device-group Name of the disk device group to be switched.
-h node Name of the cluster node to switch the disk device group to. This node becomes the new primary.
Stop the node.
# shutdown -g0 -y -i0
At the ok prompt, reboot in non-cluster mode.
ok boot -x
Back up the root (/) file system.
If the root disk is not encapsulated, use the following command.
# ufsdump 0ucf dump-device /
If the root disk is encapsulated, use the following command.
# ufsdump 0ucf dump-device /dev/vx/rdsk/rootvol
Refer to the ufsdump(1M) man page for more information.
Reboot the node in cluster mode.
# init 6



