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 |
For securing consistency of backup target files, boot the system from a CD-ROM device or boot the system in single user mode to create backups. To ensure consistency, it is recommended to boot from a CD-ROM device.
a) When booting the system from a CD-ROM device and creating backups
a1) If there is a possibility of write access to backup target slices during backup, temporarily unmirror backup target disks.
For example, if the mount(8) or fsck(8) command is executed for the backup target file system, this command may write data to the backup target slice. In these circumstances, unmirror system disks temporarily in advance using this procedure.
The command line shown below is an example of disconnecting disk Root2 from group Group1 for backing up Root1 in a situation where disks 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."
For details on the mount(8) command and the fsck(8) command, see the Linux manual.
If this procedure is not performed and data is written in backup target slices in the following procedures, the synchronized status of backup target volumes is not ensured. In this situation, using the procedure described in "Restoring (When the System Cannot Be Booted)," restore the backup target volumes.
a2) Shut down the system.
# shutdown -h now |
a3) Turn on the power of the node, and insert the OS installation CD into the CD-ROM drive.
a4) 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."
a5) Check the backup target physical slice name.
Check the backup target physical disk name as follows.
# 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 backup target 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 backup target physical slice names are as follows.
Use |
Physical slice name |
---|---|
/ |
sda1 |
/var |
sda2 |
/usr |
sda3 |
/boot |
sda4 |
/boot/efi |
sda5 |
a6) Back up data of a file system to a tape medium.
The following example shows the procedure for backing up data to a tape medium of tape device /dev/st0 with the dump(8) command.
# dump 0uf /dev/st0 /dev/sda2 |
For the dump command's argument, specify the physical slice displayed in step a5).
For details on the backup methods, see the manuals of file systems to be backed up and used commands.
a7) Exit the rescue mode, and start 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 |
a8) When step a1) was performed, reconnect the disk disconnected in that step 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."
b) When booting the system in single user mode and creating backups
b1) Exit all running application programs.
b2) Boot the system in single user mode.
# init 1 |
b3) Check the volume of the file system to be backed up.
The following example shows the procedure for backing up the root (/) file system.
# mount | grep " / " /dev/sfdsk/System/dsk/rootVolume on / type ext3 (rw) |
In this example, the device special file for the volume of the root (/) file system is /dev/sfdsk/System/dsk/root Volume.
b4) Back up data of the file system to a tape medium.
The following example shows the procedure for backing up data to a tape medium of tape device /dev/st0 with the dump(8) command.
# dump 0uf /dev/st0 /dev/sfdsk/System/dsk/rootVolume |
For the dump command's argument, specify the device special file of the volume displayed in step b3).
For details on the backup methods, see the manuals of file systems to be backed up and used commands.
b5) Reboot the system.
# shutdown -r now |
Contents
![]() ![]() |