PRIMECLUSTER Global Disk Services Configuration and Administration Guide 4.1 (Linux)
Contents PreviousNext

Chapter 6 Backing Up and Restoring> 6.1 Backing Up and Restoring a System Disk

6.1.1 Checking Physical Disk Information and Slice Numbers

If system disks have been registered with the root class, check the following details using this procedure and make a note of them.

These details are required for performing system disk backup, restore, and recovery from failure.

When Using the System Volume Snapshot Function
Check also the following details.

1. Check the root class name and the system volume names.

# mount
/dev/sfdsk/System/dsk/rootVolume on / type ext3 (rw)
/dev/sfdsk/System/dsk/varVolume on /var type ext3 (rw)
/dev/sfdsk/System/dsk/usrVolume on /usr type ext3 (rw)
/dev/sfdsk/System/dsk/bootVolume on /boot type ext3 (rw)
/dev/sfdsk/System/dsk/efiVolume on /boot/efi type vfat (rw)
...
# swapon -s
Filename                                Type             ...
/dev/sfdsk/System/dsk/swapVolume        partition        ...

In this example, the root class name is System, and the system volume names are as follows.

Use

Volume name

/

rootVolume

/var

varVolume

/usr

usrVolume

/boot

bootVolume

/boot/efi

efiVolume

Swap area

swapVolume


2. Check the group names and slice numbers of the system volumes.

# sdxinfo -V -c System -e long
OBJ    NAME       TYPE   CLASS  GROUP  ... SNUM PJRM
------ ---------  ------ ------ ------ ... ---- ----
volume rootVolume mirror System Group1 ... 1    *
volume varVolume  mirror System Group1 ... 2    *
volume usrVolume  mirror System Group1 ... 3    *
volume bootVolume mirror System Group1 ... 4    *
volume efiVolume  mirror System Group1 ... 5    *
volume swapVolume mirror System Group1 ... 6    *
...

For the -c option, specify the root class name confirmed in step 1..
The group names are displayed in the GROUP fields. In this example, the group name is Group1.
The slice numbers are displayed in the SNUM fields. In this example, the slice numbers are as follows.

Use

Volume name

Slice number

/

rootVolume

1

/var

varVolume

2

/usr

usrVolume

3

/boot

bootVolume

4

/boot/efi

efiVolume

5

Swap area

swapVolume

6

When Using the System Volume Snapshot Function
If the sdxinfo command is executed as above, information on the proxy volumes of the system volumes is given additionally. Check also the group name of the proxy volumes. If the proxy is joined through group operation, the proxy volume slice numbers are the same as those of the corresponding system volume slice numbers.


3. Check the SDX disk names of disks composing the system volumes.

# sdxinfo -G -c System
OBJ    NAME    CLASS    DISKS            ...
----- ------- -------  ----------------- ...
group  Group1  System   Root1:Root2      ...

For the -c option, specify the root class name confirmed in step 1..

Check the DISKS field in the line showing the group name confirmed in step 2. in its NAME field.

In this example, the SDX disk names are Root1 and Root2.


When Using the System Volume Snapshot Function
If the sdxinfo command is executed as above, proxy volume group information is given additionally. Check also the SDX disk names of disks composing the proxy volume group.


4. Check the physical disk names of disks composing the system volumes.

# sdxinfo -D -c System
OBJ    NAME   TYPE   CLASS   GROUP   DEVNAM  ...
----  ------  -----  ------  ------  ------  ...
disk   Root1  mirror System  Group1  sda     ...
disk   Root2  mirror System  Group1  sdb     ...

For the -c option, specify the root class name confirmed in step 1..
The physical disk names are displayed in the DEVNAM fields.

In this example, the physical disk names are as follows.

SDX disk name

Physical disk name

Root1

sda

Root2

sdb

When Using the System Volume Snapshot Function
If the sdxinfo command is executed as above, information on disks composing the proxy volumes is given additionally. Check also the physical disk names of those disks.


5. Check information on the physical disks composing the system volumes.

# ls -l /sys/block/sda/device
lrwxrwxrwx  1 root root 0 Jun  1  2005 /sys/block/sda/device ->\
../../devices/pci0000:02/0000:02:1f.0/0000:06:02.0/host0/\
target0:0:0/0:0:0:0
# ls -l /sys/block/sdb/device
lrwxrwxrwx  1 root root 0 Jun  1  2005 /sys/block/sdb/device ->\
../../devices/pci0000:02/0000:02:1f.0/0000:06:02.0/host0/\
target0:0:2/0:0:2:0

For the ls command arguments, specify /sys/block/physical disk name/device.
Among symbolic link destination paths displayed, elements before hostX and the last X:Y:Z is physical disk information.

In this example, it is as follows.

SDX disk name

Physical disk name

Physical disk information

Root1

sda

0000:06:02.0

0:0:0

Root2

sdb

0000:06:02.0

0:2:0

When Using the System Volume Snapshot Function
Using a similar method, check also physical disk information on the proxy volumes of the system volumes.



Contents PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006