PRIMECLUSTER Global File Services Configuration and Administration Guide 4.2 (Solaris(TM) Operating Environment)
|
Contents
Index
|
24.5.2 Restoring an entire file system
Use dd(1M) to restore each partition from the backup tape to the disk
Before restoring, unmount the desired GFS Shared File System on all the nodes using the file system.
- For a single partition configuration
Example: In the following example, a file system with a single partition configuration is restored.
# dd if=/dev/rmt/0 of=/dev/sfdsk/gfs/rdsk/volume1 bs=1024k
|
- For a multi-partition configuration
Example: In the following example, a file system with three partitions (log area separation + data area addition) is restored.
# dd if=/dev/rmt/0 of=/dev/sfdsk/gfs/rdsk/volume1 bs=1024k <- Tape 1
Tape change
# dd if=/dev/rmt/0 of=/dev/sfdsk/gfs/rdsk/volume2 bs=1024k <- Tape 2
Tape change
# dd if=/dev/rmt/0 of=/dev/sfdsk/gfs/rdsk/volume3 bs=1024k <- Tape 3
|
dd(1M) does not support multi-tape volumes. To restore a file system backed up as separate blocks, specify the same values for the bs and count parameters as for where specified for the backup. For oseek, specify the same value that was specified for iseek.
Example: In the following example, a file system that was backed up in 1 GB units is restored.
# dd if=/dev/rmt/0 of=/dev/sfdsk/gfs/rdsk/volume1 bs=1024k count=1024
<- Tape 1
Tape change
# dd if=/dev/rmt/0 of=/dev/sfdsk/gfs/rdsk/volume1 bs=1024k count=1024 oseek=1024
<- Tape 2
Tape change
# dd if=/dev/rmt/0 of=/dev/sfdsk/gfs/rdsk/volume1 bs=1024k count=1024 oseek=2048
<- Tape 3
Tape change
# dd if=/dev/rmt/0 of=/dev/sfdsk/gfs/rdsk/volume1 bs=1024k count=1024 oseek=3072
lt;- Tape 4
...
|
All Rights Reserved, Copyright(C) FUJITSU LIMITED 2004