Sun Cluster 3.1 System Administration Guide

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.

  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. Stop the node.


    # shutdown -g0 -y -i0
    

  4. At the ok prompt, reboot in non-cluster mode.


    ok boot -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
    

Example—Backing Up the root (/) File System

In the following example, the root (/) file system is backed up onto tape device /dev/rmt/0.


# ufsdump 0ucf /dev/rmt/0 /
  DUMP: Writing 63 Kilobyte records
  DUMP: Date of this level 0 dump: Tue Apr 18 18:06:15 2000
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/rdsk/c0t0d0s0 (phys-schost-1:/) to /dev/rmt/0
  DUMP: Mapping (Pass I) [regular files]
  DUMP: Mapping (Pass II) [directories]
  DUMP: Estimated 859086 blocks (419.48MB).
  DUMP: Dumping (Pass III) [directories]
  DUMP: Dumping (Pass IV) [regular files]
  DUMP: 859066 blocks (419.47MB) on 1 volume at 2495 KB/sec
  DUMP: DUMP IS DONE
  DUMP: Level 0 dump on Tue Apr 18 18:06:15 2000