This section explains the procedure of restoring the data of the system disk mirrored with GDS from the tape when the system can be booted.
1) Exit all running application programs. If higher security is required, you should make a backup of the system disk in advance. For details on the backup procedure, see "7.4.2 Backing Up [EFI]."
2) Disconnect disks other than the disk that will be the restore destination from the group to have only one disk connected to the group.
The command line shown below is an example of one used to disconnect disk Root2 from group Group1 to use disk Root1 as the restore destination when Root1 and Root2 are connected to Group1 and mirrored.
# sdxdisk -D -c System -g Group1 -d Root2 |
Confirm that only one disk is connected to group Group1 (Group1 is indicated in the GROUP field of only one disk).
# sdxinfo -D -c System |
Information
If disk Root1 has an INVALID slice, disconnect the Root1. When a keep disk was disconnected (if the disconnected disk's TYPE field value is keep in the sdxinfo -D command output), to connect the disk to the group later, change the type attribute to undef (or remove the disk from the class once and register it again as an undef disk). For changing the disk type attributes, see "Changing the Disk Attributes" in "8.2.1.2 Class Configuration" or "B.1.7 sdxattr - Change Objects Attributes."
Example) Changing the type attribute of Root1 to undef after keep disk Root1 is disconnected from Group1
# sdxattr -D -c System -d Root1 -a type=undef |
See
When using GDS Management View, see "8.2.1.3 Group Configuration."
3) When using the mirroring among servers function, set the necessary settings according to "7.4.4 Settings Before Restoring."
4) Shutdown the system.
# shutdown -h now |
5) Turn on the power of the node, and insert the OS installation CD into the CD-ROM drive.
6) From boot devices displayed in the boot option selection screen of the EFI boot manager, select the CD-ROM device, and boot the system in rescue mode.
For details, see the OS manual.
7) Check the restore destination physical slice name.
Check the restore destination physical disk name.
# ls -l /sys/block/sd* | grep 0000:06:02.0 | grep 0:0:0 lrwxrwxrwx 1 root root 0 Jun 1 2011 /sys/block/sda ->\ ../devices/pci0000:00/0000:00:09.0/0000:01:00.0/0000:02:00.0/0000:03:00.0/\ 0000:04:03.0/0000:06:02.0/host1/port-1:0/end_device-1:0/target1:0:0/1:0:0:0/block/sda |
For the grep command arguments, specify physical disk information on the restore destination disk (Root1 in this example) confirmed as described in "6.5.4 Checking Physical Disk Information and Slice Numbers."
In this example, the physical disk name is sda.
By combining the physical disk name and the slice numbers confirmed as described in "6.5.4 Checking Physical Disk Information and Slice Numbers," you can get the physical slice names.
In this example, the restore destination physical slice names are as follows.
Use | Physical slice name |
---|---|
/ | sda1 |
/var | sda2 |
/usr | sda3 |
/boot | sda4 |
/boot/efi | sda5 |
8) Restore backup data on a tape medium back to the file system.
The following example shows the procedure for restoring the root file system using data backed up with the dump(8) command. In this example, the file system type is ext4, and a temporary mount point is the /work directory.
# mkdir /work # mkfs.ext4 /dev/sda1 # mount -t ext4 /dev/sda1 /work # cd /work # restore rf /dev/st0 . # cd / # umount /work |
For the mkfs.ext4(8) command's and mount(8) command's arguments, specify the physical slice displayed in step 7).
Note
Do not perform restoration using data backed up before system disk mirroring.
See
For details on the restore methods, see the manuals of file systems to be restored and used commands.
9) Exit the rescue mode.
# exit |
10) When using shared class or local class, set the necessary settings according to "7.4.7 Settings After Restoring."
11) Start up the system in multi-user mode.
12) Reconnect the disk disconnected in step 2) to the group.
# sdxdisk -C -c System -g Group1 -d Root2 |
Confirm that disk Root2 is connected to group Group1 (Group1 is indicated in the GROUP field of the Root2 line).
# sdxinfo -D -c System |
Synchronization copying will automatically take place, and when it is completed, the mirroring status is restored.
See
When using GDS Management View, see "8.2.1.3 Group Configuration."
Information
If a keep disk is disconnected from the group in step 2) and if the type attribute is not changed to undef, step 12) will result in an error and the error message "keep disk cannot be connected to existing group" will be output. In this event, change the disk's type attribute to undef first and retry step 12).
For the disk type attribute setting method, see "Information" in step 2).