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

Part 2 Global File Services Local File System> Chapter 5 Backing Up and Restoring the GFS Local File System> 5.3 Backing Up and Restoring by Executing dd Command

5.3.2 Restoring by executing dd command

This section explains the procedure for restoring backup tapes described in the previous section.

Use the dd command to restore each of the partitions that were saved on the backup tape back to the disk.

When restoring with the procedure below, check first that the GFS Local File System has been unmounted:

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

# dd if=/dev/rmt/0 of=/dev/sfdsk/gfs/rdsk/vol0301 bs=1024k <- Tape 1
Tape replacement
# dd if=/dev/rmt/0 of=/dev/sfdsk/gfs/rdsk/vol0302 bs=1024k <- Tape 2
Tape replacement
# dd if=/dev/rmt/0 of=/dev/sfdsk/gfs/rdsk/vol0303 bs=1024k <- Tape 3

The dd command does not support multi-volume tapes. When restoring the file system from separate volumes of backup tape, set the bs and count parameters of the dd command by the same value as for backup. Also, specify the oseek parameter by the same value as that of iseek during backup.

Example:The following is an example for restoring a file system from separated one-gigabyte volumes of backup tape:

# dd if=/dev/rmt/0 of=/dev/sfdsk/gfs/rdsk/vol0301 bs=1024k count=1024
<- Tape 1
Tape replacement # dd if=/dev/rmt/0 of=/dev/sfdsk/gfs/rdsk/vol0301 bs=1024k count=1024 oseek=1024
<- Tape 2
Tape replacement # dd if=/dev/rmt/0 of=/dev/sfdsk/gfs/rdsk/vol0301 bs=1024k count=1024 oseek=2048
<- Tape 3
Tape replacement # dd if=/dev/rmt/0 of=/dev/sfdsk/gfs/rdsk/vol0301 bs=1024k count=1024 oseek=3072
<- Tape 4
...


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2004