Sun Cluster System Administration Guide for Solaris OS

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.

Steps
  1. Become superuser or assume an equivalent role 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
    

Example 9–3 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