PRIMECLUSTER Global File Services Configuration and Administration Guide 4.2 (Solaris(TM) Operating Environment)
Contents Index PreviousNext

Part 3 Global File Services Shared File System> Chapter 24 File System Backing-up and Restoring> 24.4 Backing Up using Standard Solaris OE commands

24.4.2 Backing up an entire file system

To back up the GFS Shared File System, use dd(1M). The following describes the backup procedure for using dd(1M).

Entire file system backups are faster than file by file backups. However, a file system backed up with this method cannot be restored on a file by file basis.

Before starting a backup, use the following procedure to check the partitionTerm information for the desired GFS Shared File System. Estimate the backup capacity required including the number of physical media required and then unmount the GFS Shared File System.

# sfcinfo /dev/sfdsk/gfs/dsk/volume1
FSID special                                     size  Type  mount
   1 /dev/sfdsk/gfs/dsk/volume1(3fa0081)        12626  META  /mnt
   1 /dev/sfdsk/gfs/dsk/volume1(3fa0081)       113992  DATA  /mnt
   1 /dev/sfdsk/gfs/dsk/volume1(3fa0081)         5120  LOG   /mnt

# dd if=/dev/sfdsk/gfs/rdsk/volume1 of=/dev/rmt/0 bs=1024k

# sfcinfo /dev/sfdsk/gfs/dsk/volume1
FSID special                                     size  Type  mount
   1 /dev/sfdsk/gfs/dsk/volume1(3fa0081)        25986  META  /mnt
   1 /dev/sfdsk/gfs/dsk/volume1(3fa0081)       105751  DATA  /mnt
   1 /dev/sfdsk/gfs/dsk/volume2(3fa0082)         5120  LOG   /mnt
   1 /dev/sfdsk/gfs/dsk/volume3(3fa0083)       131736  DATA  /mnt

# dd if=/dev/sfdsk/gfs/rdsk/volume1 of=/dev/rmt/0 bs=1024k -> Tape 1 Tape change # dd if=/dev/sfdsk/gfs/rdsk/volume2 of=/dev/rmt/0 bs=1024k -> Tape 2 Tape change # dd if=/dev/sfdsk/gfs/rdsk/volume3 of=/dev/rmt/0 bs=1024k -> Tape 3

dd(1M) does not support multi-tape volumes. If the file system is too large to fit on a single tape, it must be backed up as separate blocks. To do this, set bs (block length) and count (number of blocks) and increase iseek (input-side offset (number of blocks) by the value of count).
Example: In the following example, a partition is backed up in 1 GB units.
# dd if=/dev/sfdsk/gfs/rdsk/volume1 of=/dev/rmt/0 bs=1024k count=1024
  -> Tape 1
  Tape change
# dd if=/dev/sfdsk/gfs/rdsk/volume1 of=/dev/rmt/0 bs=1024k count=1024 iseek=1024
  -> Tape 2
  Tape change
# dd if=/dev/sfdsk/gfs/rdsk/volume1 of=/dev/rmt/0 bs=1024k count=1024 iseek=2048
  -> Tape 3
  Tape change
# dd if=/dev/sfdsk/gfs/rdsk/volume1 of=/dev/rmt/0 bs=1024k count=1024 iseek=3072
  -> Tape 4
    ...


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2004