Assuming the disk on which / (root), /usr, /var, /boot, and /boot/efi are installed and the disk allocated as a swap area are different, examples of the procedures for system disk mirroring and system disk mirroring cancellation are given below.
Note
In this version, to mirror / (root), /usr, /var, /boot, /boot/efi, or swap areas, these areas should be located in the same disk.
In this version, cancel the system disk mirroring from the GDS Management View, not by using the command. For details, see "9.4.1 Unmirroring System Disk with GDS Management View."
Stop the running application programs.
In order to ensure mirroring definition, all the running application programs must be stopped. For the mirroring definition to be in effect, the system must be rebooted after going through this procedure.
When higher safety is required, create system disk backups.
Register the system disks with the root class.
In this example, the installation disk of / (root), /usr, /var, /boot, and /boot/efi is "sda", and the disk allocated as a swap area is "sdb."
# sdxdisk -M -c System -a type=root -d sda=Root1:keep, |
Connect the system disks to a group.
# sdxdisk -C -c System -g Group1 -d Root1,Root2 -v 1=root:on,2=usr:on,3=var:on,4=home:on,5=boot:on,6=efi:on # sdxdisk -C -c System -g Group2 -d Swap1,Swap2 -v 1=swap:on |
Information
When System Disks Have Unopen Physical Slices
After returning from the sdxdisk -C command, volumes created for unopen physical slices are started, and synchronization copying is performed. In this event, cancel the synchronization copying using the sdxcopy -C command, or after the synchronization copying is completed move to step 4. Physical slices on which file systems are mounted and those accessed as raw devices are considered to be open. Physical slices not displayed with the mount(8) command may not be open.
Check that mirroring definition is completed.
# sdxroot -M -c System -d Root1,Swap1 |
Reboot the system.
# shutdown -r now |
Check that mirroring is in effect.
Using the mount command and the sdxinfo command, make sure that the system disks have been mirrored properly.
Procedure for system disk mirroring cancellation
Stop the running application programs.
In order to ensure mirroring cancellation, all the running application programs must be stopped. For the mirroring cancellation to be in effect, the system must be rebooted after goring through this procedure.
When higher safety is required, create system disk backups.
Disconnect disks other than those used as system disks after this cancellation from the groups.
# sdxdisk -D -c System -g Group1 -d Root2 # sdxdisk -D -c System -g Group2 -d Swap2 |
Check that mirroring cancellation is completed.
# sdxroot -R -c System -d Root1,Swap1 |
Reboot the system.
# shutdown -r now |
Check that the mirroring has been canceled.
Using the mount command and the sdxinfo command, make sure that the system disk mirroring has been canceled properly.
Cancel system disk management.
# sdxvolume -F -c System -v root # sdxvolume -F -c System -v usr # sdxvolume -F -c System -v var # sdxvolume -F -c System -v home # sdxvolume -F -c System -v boot # sdxvolume -F -c System -v efi # sdxvolume -F -c System -v swap # sdxvolume -R -c System -v root # sdxvolume -R -c System -v usr # sdxvolume -R -c System -v var # sdxvolume -R -c System -v home # sdxvolume -R -c System -v boot # sdxvolume -R -c System -v efi # sdxvolume -R -c System -v swap # sdxgroup -R -c System -g Group1 # sdxgroup -R -c System -g Group2 # sdxdisk -R -c System -d Root1 # sdxdisk -R -c System -d Root2 # sdxdisk -R -c System -d Swap1 # sdxdisk -R -c System -d Swap2 |