Physical disk swap cannot be performed using a physical disk whose size is smaller than the original disk size.
Physical disk swap cannot be performed for a disk where the only valid slice (in ACTIVE or STOP status) within the volume exists.
For example, it is impossible to perform disk swap if:
The volume is in a group to which only one disk is connected.
The volume is on a single disk that is not connected to a group.
In these situations, it will be possible to perform disk swap by making any one of the following configuration changes.
If the disk to be swapped is connected to a mirror group, add a new disk to the mirror group and complete volume synchronization copying normally.
When performing disk swap for a single disk, add the single disk and another unused disk to a new mirror group, and complete volume synchronization copying.
Remove the existing volume from the disk to be swapped.
Before removing the volume, back up volume data if necessary.
When data on a disk to be swapped is valid, for example when conducting preventive maintenance, a. or b. is recommended. Here, if the disk unit supports hot swap, disks can be swapped without stopping active applications.
Since the resynchronization copying is not performed, if the disk which configures the proxy volume is swapped when the proxy volume is in a mirroring configuration, the slice of the proxy volume on the swapped disk will become INVALID. In such a case, temporarily part the proxy objects and then rejoin them.
For an explanation on how to part and rejoin proxy objects, see "B.2.1 sdxproxy - Proxy Object Operations."
After swapping disks, if there is a device name change that means the physical disk name is different from the name at the disk registration, "Restore Physical Disk" in GDS Management View cannot be performed and also the sdxswap -I command cannot be executed.
Before performing "Restore Physical Disk" in GDS Management View or executing the sdxswap -I command, check that there is no change between the device name of the new internal disk and the device name which is managed by GDS according to the following steps.
Do not swap multiple internal disks at one time. Swap each internal disk one by one, and according to the following steps, confirm that the device name of each internal disk remains unchanged:
Before swapping the internal disk, obtain the following command output.
# ls -l /dev/disk/by-id |
After swapping the internal disk, obtain the following command output.
# ls -l /dev/disk/by-id |
Compare information 1) and 2) to check the device name of the swapped internal disk.
The swapped internal disk is displayed as a by-id disk name that did not exist before swapping.
The following example shows when the physical disk of /dev/sda is swapped.
Do not compare the partition information among the information of ls command output.
[Before swapping]
# ls -l /dev/disk/by-id
lrwxrwxrwx. 1 ... scsi-aaaaaaaaaaaaaaaa -> ../../sda
lrwxrwxrwx. 1 ... scsi-bbbbbbbbbbbbbbbb -> ../../sdb
lrwxrwxrwx. 1 ... scsi-cccccccccccccccc -> ../../sdc |
[After swapping]
# ls -l /dev/disk/by-id lrwxrwxrwx. 1 ... scsi-xxxxxxxxxxxxxxxx -> ../../sda lrwxrwxrwx. 1 ... scsi-bbbbbbbbbbbbbbbb -> ../../sdb lrwxrwxrwx. 1 ... scsi-cccccccccccccccc -> ../../sdc |
Using the following command, check what device name is used for the original internal disk managed by GDS.
In <Class_name>, specify a class name registered to the original internal disk. In <Disk_name>, specify the disk name of the original internal disk.
# /etc/opt/FJSVsdx/bin/sdxdevinfo -c <Class_name> -d <Disk_name> |
Example)
# /etc/opt/FJSVsdx/bin/sdxdevinfo -c RootClass -d rootDisk0001
class disk device by-id
-------- -------- -------- --------
RootClass rootDisk0001 sda 3500000e111c01810 |
The device name of the swapped internal disk checked in step 3) remains unchanged if it is consistent with the device name managed by GDS that was checked in step 4).
If the device name is changed, restart the system and check that the device name is returned to its original name.
If the device name remains changed, identify the cause and take the corrective action.