Top
PRIMECLUSTER Global Disk Services  Configuration and AdministrationGuide 4.7

7.4.6 Restoring (When System Cannot Be Booted) [EFI]

This section explains the procedure of restoring the data of the system disk mirrored with GDS from the tape when the system cannot be booted.

1) Turn on the power of the node, and insert the OS installation CD into the CD-ROM drive.


2) 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.

3) Check the restore destination physical slice names.

Check the restore destination physical disk names.

# 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
# ls -l /sys/block/sd* | grep 0000:06:02.0 | grep 0:2:0
lrwxrwxrwx 1 root root 0  Jun 1 2011 /sys/block/sdb ->\
../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:2:0/block/sdb

For the grep command arguments, specify physical disk information on the restore destination disks (Root1 and Root2 in this example) confirmed as described in "6.5.4 Checking Physical Disk Information and Slice Numbers."

In this example, the physical disk names are sda and sdb.

By combining the physical disk names 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

sdb1

/var

sda2

sdb2

/usr

sda3

sdb3

/boot

sda4

sdb4

/boot/efi

sda5

sdb5

Note

When Using the System Volume Snapshot Function

Restore also the joined proxy volumes of system volumes. It is not necessary to restore the parted proxy volumes.
If the proxy volume status is unknown, all the proxy volumes of system volumes should be restored.


4) Restore backup data on a tape medium back to one of the two slices.

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/sda2
# mount -t ext4 /dev/sda2 /work
# cd /work
# restore rf /dev/st0 .
# cd /
# umount /work

For the mkfs.ext4(8) command and mount(8) command arguments, specify the device special file for one of the two slices confirmed in step 3).

Note

  • If restoration to a slice fails due to an I/O error and so on, restore data to the other slice.

  • 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.

5) Copy data from the slice restored in step 4) to other slices.

The following example shows the procedure for copying data from sda2 to sdb2.

# dd if=/dev/sda2 of=/dev/sdb2 bs=1M

Note

If the mirroring multiplicity is n, among n mirrored slices, copy data to all "n-1" slices other than the slice restored in step 4).

See

Specify a correct option referring to the dd(1) command manual.


6) Exit the rescue mode.

# exit

7) When using shared class or local class, set the necessary settings according to "7.4.7 Settings After Restoring."


8) Start up the system in multi-user mode.