PRIMECLUSTER Global Disk Services Configuration and Administration Guide 4.1 (Solaris(TM) Operating System) |
Contents |
Chapter 6 Backing Up and Restoring | > 6.2 Backing Up and Restoring a System Disk through an Alternative Boot Environment |
8) Switching to the alternative boot environment
If the system cannot be booted due to a failed system disk or damaged data, switch the environment to the alternative boot environment created in the proxy volume to allow the system to continue operating
8-1) Boot in the alternative boot environment.
For details on the procedure for booting in an alternative boot environment, see 6-1) in "Backing Up."
8-2) Break up the former boot environment according to need.
If you want to break up the former boot environment, cancel the master and proxy relationship, remove the master volumes, and disconnect and remove the disks in the master group as follows. You may not perform this procedure when restoring the system disks through step 9).
# sdxproxy Break -c System -p Proxy1 |
9) Restoring system disks
After switching to the alternative boot environment, you can restore data back to the original system disk by interchanging the master and proxy relationship of the original system disk and the backup disk and copying data in the backup disk (master volume) to the original system disk (proxy volume).
9-1) Cancel the master and proxy relationship.
# sdxproxy Break -c System -p Proxy1 |
9-2) Remove the master volumes.
# sdxvolume -F -c System -v root,usr,home,swap,var,opt |
9-3) If an original system disk crashed, swap the failed disk.
The following is an example of swapping disk Root1 (physical disk c0t0d0).
9-3-1) Exclude the disk to be swapped from the GDS management to make it exchangeable.
# sdxswap -O -c System -d Root1 |
9-3-2) Swap physical disk c0t0d0.
9-3-3) Include the swapped disk into the GDS management.
# sdxswap -I -c System -d Root1 |
9-4) Join a group of the backup disks as the master and a group of the original system disks as the proxy.
# sdxproxy Join -c System -m Proxy1 -p Group1 -a Proot=root:on,Pusr=usr:on,Phome=home:on |
9-5) Confirm that synchronization copying is complete.
# sdxinfo -S -c System OBJ CLASS GROUP DISK VOLUME STATUS ------ ------- ------- ------- ------- -------- slice System Group1 Root1 root STOP slice System Group1 Root2 root STOP slice System Group1 Root1 usr STOP slice System Group1 Root2 usr STOP slice System Group1 Root1 home COPY slice System Group1 Root2 home COPY slice System Group2 Var1 swap STOP slice System Group2 Var2 swap STOP slice System Group2 Var1 var COPY slice System Group2 Var2 var COPY slice System Group2 Var1 opt COPY slice System Group2 Var2 opt COPY slice System Proxy1 Proot1 Proot ACTIVE slice System Proxy1 Proot2 Proot ACTIVE slice System Proxy1 Proot1 Pusr ACTIVE slice System Proxy1 Proot2 Pusr ACTIVE slice System Proxy1 Proot1 Phome ACTIVE slice System Proxy1 Proot2 Phome ACTIVE slice System Proxy2 Pvar1 Pswap ACTIVE slice System Proxy2 Pvar2 Pswap ACTIVE slice System Proxy2 Pvar1 Pvar ACTIVE slice System Proxy2 Pvar2 Pvar ACTIVE slice System Proxy2 Pvar1 Popt ACTIVE slice System Proxy2 Pvar2 Popt ACTIVE |
If synchronization copying is in process, COPY is displayed in the STATUS field for slices of the copy destination proxy group. If the STATUS of every slice in the proxy group is STOP, the synchronization copying is completed.
9-6) Through similar steps as 4) and 5) in "Backing Up" and 8) in this sub-section, part the proxy groups, create an alternative boot environment, and switch to the alternative boot environment.
10) Canceling system disk mirroring in an alternative boot environment
To cancel system disk mirroring after switching to the alternative boot environment in step 8), perform the following procedure. The following describes the procedure concerning the configuration as below.
10-1) Break up the former boot environment.
For details on breaking up the former boot environment, see 8-2).
10-2) Exit all active application programs.
To ensure safe mirroring cancellation, exit all running application programs. If higher security is required, you should make backups of system disks.
10-3) Remove those disks not used as system disks after canceling the mirroring.
# sdxdisk -D -c System -g Proxy1 -d Proot2 |
10-4) Confirm that cancellation of the mirroring is complete.
# sdxroot -R -c System -d Proot1,Pvar1 |
10-5) Reboot the system.
# shutdown -y -g0 -i6 |
10-6) Verify that the mirroring was cancelled normally.
Using the mount(1M) command or the sdxinfo command, verify that the system disk mirroring was cancelled properly.
10-7) Cancel the system disk management.
# sdxvolume -F -c System -v Proot,Pusr,Phome,Pswap,Pvar,Popt |
Contents |