PRIMECLUSTER Global Disk Services Configuration and Administration Guide 4.1 (Linux) |
Contents
![]() ![]() |
Chapter 6 Backing Up and Restoring | > 6.1 Backing Up and Restoring a System Disk |
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 "Backing Up."
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 OBJ NAME TYPE CLASS GROUP DEVNAM DEVBLKS DEVCONNECT STATUS ------ ------- ------ ------- ------- ------- -------- ---------------- ------- disk Root1 mirror System Group1 sda 35368272 node1 ENABLE disk Root2 undef System * sdb 35368272 node1 ENABLE |
If disk Root1 has an INVALID slice, disconnect the Root1.
When using GDS Management View, see "Group Configuration."
3) Shutdown the system.
# shutdown -h now |
4) Turn on the power of the node, and insert the OS installation CD into the CD-ROM drive.
5) From boot devices displayed in the boot option selector window of the EFI boot manager, select the CD-ROM device, and boot the system in rescue mode.
With Red Hat Enterprise Linux AS (v.4 for Itanium), boot the system using the following procedure.
For details, see the OS manual.
EFI Boot Manager ver 1.10 |
When "ELILO boot:" is displayed, enter "linux rescue."
In the Choose a Language window, select "English."
In the Keyboard Type window, select "us." However, it may be necessary to choose another option depending on the keyboard.
In the Setup Networking window, select "Yes" to perform network configuration, or select "No" not to. If "Yes" is selected, the IP address setup window will appear. Following the instructions of this window, specify the IP address.
In the Rescue window, select "Skip."
6) Check the restore destination physical slice name.
Check the restore destination physical disk name.
# ls -l /sys/block/sd*/device | grep 0000:06:02.0 | grep 0:0:0 lrwxrwxrwx 1 root root 0 Jun 1 2005 /sys/block/sda/device ->\ ../../devices/pci0000:02/0000:02:1f.0/0000:06:02.0/host2/\ target0:0:0/0:0:0:0 |
For the grep command arguments, specify physical disk information on the restore destination disk (Root1 in this example) confirmed as described in "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 "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 |
7) 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 ext3, and a temporary mount point is the /work directory.
# mkdir /work # mkfs.ext3 /dev/sda2 # mount -t ext3 /dev/sda2 /work # cd /work # restore rf /dev/st0 . # cd / # umount /work |
For the mkfs.ext3(8) command's and mount(8) command's arguments, specify the physical slice displayed in step 6).
Do not perform restoration using data backed up before system disk mirroring.
For details on the restore methods, see the manuals of file systems to be restored and used commands.
8) Exit the rescue mode, and boot the system.
With Red Hat Enterprise Linux AS (v.4 for Itanium), exit the rescue mode using the following command.
For details, see the OS manual.
# exit |
9) 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 OBJ NAME TYPE CLASS GROUP DEVNAM DEVBLKS DEVCONNECT STATUS ----- ------- ------ ------- ------- ------- -------- ---------------- ------- disk Root1 mirror System Group1 sda 35368272 node1 ENABLE disk Root2 mirror System Group1 sdb 35368272 node1 ENABLE |
Synchronization copying will automatically take place, and when it is completed, the mirroring status is restored.
When using GDS Management View, see "Group Configuration."
Contents
![]() ![]() |