PRIMECLUSTER Global File Services Configuration and Administration Guide 4.2 (Solaris(TM) Operating Environment) |
Contents Index |
Appendix F Reference Manual | > F.2 Management Commands Specific to the GFS Shared File System |
sfcddr [ -f ] [ if=file ] of=special [ ibs=n ] [ obs=n ]
sfcddr -i [ if=file ] [ ibs=n ]
The sfcddr command restores to a disk GFS Shared File System backed up with dd(1M).
Before writing the data to the disk, sfcddr checks the following:
If all of the above conditions are not true, the command terminates without restoring the data. Unless an if operand is specified, the standard input is used. An of operand must be specified.
As with dd(1M), input and output block size can be specified in bytes. The alphabetic characters k, b, and w, if specified after a number, indicate 1024 bytes, 512 bytes, and 2 bytes, respectively. In addition, multiplication can be expressed by inserting an x between two numeric values.
After restoring, the sfcddr command reports the number of input/output blocks, the number of complete blocks transferred, and the number of partial blocks transferred.
The following options can be specified:
-f
Does not check to see whether the output device is the same as the device used for backing-up. Use this option if to restore backed-up data to a disk different from which the data was backed up.
-i
Displays the configuration of the partitions of the backed-up file system, the time required to create the file system, and the last mounted directory path. This option does not restore the data.
The following operands can be specified:
if=file
Input file name. The default is the standard input.
of=special
Output device name.
ibs=n
Specify the input block size in n bytes. The default is 512.
obs=n
Specify the output block size in n bytes. The default is 1024k.
The termination status is returned as follows:
0 The backed-up data has been restored correctly.
>0 An error has occurred.
f+p records in(out)
The number of complete (f) and partial (p) blocks that have been read (written)
fsck_sfcfs(1M), sfcadd(1M), sfcinfo(1M), sfcmkbkup(1M), sfcmkrstr(1M).
dd(1M), uncomprss(1) in the "Solaris X Reference Manual Collection."
# dd if=/dev/rmt/0 ibs=256k | uncompress -c | sfcddr -i
Contents Index |