PRIMECLUSTER Global Disk Services Configuration and Administration Guide 4.1 (Solaris(TM) Operating System) |
Contents
![]() ![]() |
Appendix D Command Reference |
sdxroot -M -c class -d disk[,disk,...]
sdxroot -R -c class -d disk[,disk,...]
Use sdxroot to complete or cancel mirroring definition of system disks including root file systems. The "sdxroot" command can be executed with superuser access privileges only.
System disk means the physical disk on which the running Solaris(TM) operating system is installed. Specifically, it means the entire disk that includes a slice currently running as any one of the following file systems (or a swap area).
/, /usr, /var, or swap
You can use one of the following options.
Sub options are as follows:
Upon successful completion, a value of 0 is returned.
Otherwise, a non-zero value is returned.
Assuming the disk on which /(root), /usr, and /var 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.
1. 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 goring through this procedure.
When higher safety is required, create system disk backups.
2.Register the system disks with the root class.
In this example, the installation disk of /(root), /usr, and /var is "c0t0d0," and the disk allocated as a swap area is "c0t0d1."
# sdxdisk -M -c System -a type=root -d c0t0d0=Root1:keep, |
3. Connect the system disks to a group.
# sdxdisk -C -c System -g Group1 -d Root1,Root2 |
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 may not be opened if they are not shown with the mount(1M) command and if process IDs are not shown with the fuser(1M) command.
4. Check that mirroring definition is completed.
# sdxroot -M -c System -d Root1,Swap1 |
5.Reboot the system.
# shutdown -y -g0 -i6 |
6. Check that mirroring is in effect.
Using the mount command and the sdxinfo command, make sure that the system disks have been mirrored properly.
1. 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.
2. Disconnect disks other than those used as system disks after this cancellation from the groups.
# sdxdisk -D -c System -g Group1 -d Root2 |
3. Check that mirroring cancellation is completed.
# sdxroot -R -c System -d Root1,Swap1 |
4.Reboot the system.
# shutdown -y -g0 -i6 |
5. Check that the mirroring has been cancelled.
Using the mount command and the sdxinfo command, make sure that the system disk mirroring has been cancelled properly.
6. Cancel system disk management.
# sdxvolume -F -c System -v root |
Contents
![]() ![]() |