Backing Up and Restoring Disks in UP-UX
A disk volume on SUPER-UX is treated as one partition of a disk in UP-UX. Therefore, to back up
or restore physical images, use the backup or restoration service provided by UP-UX.
D.1 CREATING A BACKUP TABLE
The backup service of UP-UX is performed according to the information stored in a backup table.
This requires that all of the disks accessed from SUPER-UX be registered in the backup table beforehand.
Store information on the disk partitions on UP-UX that are accessed from SUPER-UX and
information on the entire disks that accommodate the disk partitions.
Use the bkreg command for storage. The storage procedure is described below with a sample command.
The following example command stores partition information:
bkreg -a ID01_save -o .:/dev/sd/c0t3d0sa -c demand -m fdp -b "-E" -d \
tape:/dev/rSA/tape060::sx_back1,sx_back2,sx_back3
- -a option
- Specifies the tag to identify an entry stored in the backup table. In the example,
ID01_save is specified as the tag name.
- -o option
- Specifies the target to be backed up in the format
oname:odevice[:omname]. To back up a partition, specify "." in
oname, and the path name of a block-type partition in
odevice.
- -c option
- Specifies the day of the week/week of making a backup.
demand indicates that a backup should be made when the operator requests it explicitly. It is recommended to specify
demand because a physical backup needs to made infrequently.
- -m option
- Specifies the backup creation method. Be sure to specify
fdp, which indicates an entire data partition backup.
- -b option
- Specifies the option to be passed to the command that actually makes a backup. When an
entire data partition backup is to be made,
fdp(1M) is activated. See the fdp(1M) description for
details on the options that can be specified.
- -d option
- Specifies the save destination in the format
dgroup:ddevice:dchar:dmname. Specify a
device group in dgroup. The device group must be defined in
/etc/dgroup.tab. tape indicates a QIC
tape cartridge. Specify a device in ddevice. The device must be defined in
/etc/device.tab. /dev/rSA/tape060 is the device defined for system management and is linked to
/dev/rsmt/c0t6d0. Specify medium characteristics in
dchar. Specify dchar to change the characteristics defined in
/etc/device.tab. Specify volume name lists in
dmname. Specify as many lists as necessary,
separating them with commas. In the previous example, three media are assigned the label names
sx_back1, sx_back2, and sx_back3.
The following example command stores information on an entire disk:
- -a option
- See the explanation of the -a option in
Section D.1.1.
- -o option
- See the explanation of the -o option in
Section D.1.1.
In
odevice, specify the raw-type special file that represents the entire disk unit.
- -c option
- See the explanation of the -c option in
Section D.1.1.
- -m option
- Specifies the backup creation method. Be sure to specify
fdisk, which indicates an entire disk backup.
- -b option
- Specifies the option to be passed to the command that actually makes a backup. When an
entire disk backup is to be made, fdisk(1M) is activated. Refer to the
fdisk(1M) description for details on the options that can be specified.
- -d option
- See the explanation or the -d option in
Section D.1.1.
diskette specified in dgroup refers to
a floppy disk drive. /dev/rSA/diskette1 specified in
ddevice is linked to built-in floppy disk
drive /dev/rif/100. An entire disk backup can be accommodated in one floppy disk because only
disk volume names and partition size are saved.
Use the backup command to make a backup.
The backup command is executed according to
the definitions in the backup table. If any required information is missing in the backup table, store it
as described in Section D.1.
The following example command backs up a partition:
- -i option
- Specifies that processing should be performed through interactions with the operator, such as
a request for mounting a medium. -a (automatic mode) can be specified instead of
-i. If -a is specified, the operator needs to interact with backup by using
bkoper in response to a request issued using
mail.
- -o option
- Specifies the source to be backed up (a block-type special file).
- -c option
- Specify demand. demand indicates that the operation registered in the backup table with
demand should be performed.
Backing up an entire disk requires that disk format information (such as partition size) and the
partitions on the disk be saved separately.
First, save disk format information.
See
Section D.2.1
for the explanation of each option. In
the o option, specify the raw-type special file
that represents the entire disk as the source to be backed up.
Next, save all the partitions on the disk. Follow the procedure described in Section D.2.1.
Use the restore command to restore a backup. By checking the history recorded by the
backup command, the restore command identifies the medium that stores data to be restored and requests the mounting
of that medium.
The following example command restores a partition:
- -P option
- Indicates the start of data partition restoration. In the argument, specify the block-type
special file that represents the partition to be restored.
Similar to the backup procedure, the entire disk restoration procedure consists of two steps:
format information restoration and partition restoration.
Restore format information as follows:
- -A option
- Indicates the start of entire disk restoration. In the argument, specify the raw-type special file
that represents the entire source disk.
Next, restore all the partitions on the disk.
Follow the procedure described in D.3.1.