Top
PRIMECLUSTER Global Disk Services  Configuration and AdministrationGuide 4.6
FUJITSU Software

7.4.2 Backing Up [EFI]

This section explains the procedure of backing up the data of the system disk mirrored with GDS to the tape.

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

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

  • For details on the mount(8) command and the fsck(8) command, see the Linux manual.

Note

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 "7.4.6 Restoring (When System Cannot Be Booted) [EFI]," restore the backup target volumes.

a2) When using the shared class or local class, set the necessary settings according to "7.4.1 Settings Before Backing Up."

a3) Shut down the system.

# shutdown -h now

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

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

a6) Check the backup target physical slice name.

Check the backup target physical disk name as follows.

# 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 backup target 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 backup target physical slice names are as follows.

Use

Physical slice name

/

sda1

/var

sda2

/usr

sda3

/boot

sda4

/boot/efi

sda5

a7) Back up data of a file system to a tape medium.

The command to be used varies depending on the type of a file system to be backed up. Back up data using the command appropriate for the file system type.

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

See

For details on the backup methods, see the manuals of file systems to be backed up and used commands.

a8) Exit the rescue mode, and start the system.

# exit

a9) When using shared class or local class, set the necessary settings according to "7.4.3 Settings After Backing Up."

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

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 a1) and if the type attribute is not changed to undef, step a10) 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 a10).

For the disk type attribute setting method, see "Information" in step a1).


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.

b3) When using shared class or local class, set the necessary settings according to "7.4.1 Settings Before Backing Up."

b4) 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/gdssys2 on / type ext4 (rw)

In this example, the device special file for the volume of the root (/) file system is /dev/sfdsk/gdssys2.

b5) Back up data of the file system to a tape medium.

The command to be used varies depending on the type of a file system to be backed up. Back up data using the command appropriate for the file system type.

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/gdssys2

For the dump command's argument, specify the device special file of the volume displayed in step b4).

See

For details on the backup methods, see the manuals of file systems to be backed up and used commands.

b6) When using shared class or local class, set the necessary settings according to "7.4.3 Settings After Backing Up."

b7) Reboot the system.

# shutdown -r now