![]() |
![]() |
| |||||||||||||||||||||||||||||||||
Chapter 9Backing Up and Restoring a ClusterThis is a list of step-by-step instructions in this chapter.
Backing Up a ClusterTable 9-1 Task Map: Backing Up Cluster Files
|
% 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 |
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 BackupUse 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.
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 SystemUse 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. |
Shut down the node.# shutdown -g0 -y -i0
Reboot the node in non-cluster mode. SPARC: ok boot -x
x86:
<<< Current Boot Parameters >>>
Boot path: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/
sd@0,0:a
Boot args:
Type b [file-name] [boot-flags] <ENTER> to boot with options
or i <ENTER> to enter boot interpreter
or <ENTER> to boot with defaults
<<< timeout in 5 seconds >>>
Select (b)oot or (i)nterpreter: b -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
Previous Contents Index Next ![]() |