Sun Microsystems
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     Index     Next Next
Chapter 9

Backing Up and Restoring a Cluster

This is a list of step-by-step instructions in this chapter.

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

How to Find File System Names 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

How to 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) 

SPARC: How to Perform Online Backups for Volumes (VERITAS Volume Manager) 

ProcedureHow to Find File System Names to Back Up

Use this procedure to determine the names of the file systems you want to back up.

  1. Display the contents of the /etc/vfstab file.

    You do not need to be superuser to run this command.
    % more /etc/vfstab

  2. 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      -

ProcedureHow 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.

  1. Become superuser on the cluster node you want to back up.

  2. 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.

  3. 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

ProcedureHow 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.

  1. Become superuser on the cluster node you want to back up.

  2. 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.

  3. Shut down the node.
    # shutdown -g0 -y -i0

  4. 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

  5. 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.

  6. Reboot the node in cluster mode.
    # init 6

Previous Previous     Contents     Index     Next Next