PRIMECLUSTER Global Disk Services Configuration and Administration Guide 4.1 (Solaris(TM) Operating System) |
Contents |
Chapter 6 Backing Up and Restoring | > 6.1 Backing Up and Restoring a System Disk |
1) Exit all running application programs. If higher security is required, you should make a backup of the system disk in advance. For details on the backup procedure, see "Backing Up."
2) Disconnect disks other than the disk that will be the restore destination from the group to have only one disk connected to the group.
The command line shown below is an example of one used to disconnect disk Root2 from group Group1 to use disk Root1 as the restore destination when Root1 and Root2 are connected to Group1 and mirrored.
# sdxdisk -D -c System -g Group1 -d Root2 |
3) Shutdown the system.
# shutdown -g30 -i0 -y |
4) Since file systems such as root (/), /usr, and /var cannot be unmounted during system operation, boot the system from a CD-ROM device.
ok boot cdrom -s |
The version of an OS booted from a CD-ROM device must correspond to the version of the OS you are restoring.
In a system where mirroring is conducted by GDS, booting from a CD-ROM device and performing an illegal operation may disrupt the mirroring environment. Be sure to follow the procedure described here and to avoid operations not provided in this procedure.
When mounting the file system on a physical slice at the time of recovery, mounting as read-only is recommended to write-lock.
5) Create a special file for a tape device.
# tapes |
6) Check the names of the physical slices that will be the restore destinations for the root (/), /usr, and /var file systems and make a note of them.
# eeprom nvramrc | grep sdx-root-slice devalias sdx-root-slice-1 /devices/pci@1f,4000/scsi@3/sd@0,0:a,raw # eeprom nvramrc | grep sdx-usr-slice devalias sdx-usr-slice-1 /devices/pci@1f,4000/scsi@3/sd@0,0:g,raw # eeprom nvramrc | grep sdx-var-slice devalias sdx-var-slice-1 /devices/pci@1f,4000/scsi@3/sd@0,0:b,raw |
In this example, the physical slice names are:
/ : /devices/pci@1f,4000/scsi@3/sd@0,0:a,raw
/usr : /devices/pci@1f,4000/scsi@3/sd@0,0:g,raw
/var : /devices/pci@1f,4000/scsi@3/sd@0,0:b,raw
If /usr and /var file systems do not exist, the physical slice names are not displayed as shown below.
# eeprom nvramrc | grep sdx-usr-slice |
7) Restore the backup data on a tape medium back to the root (/), /usr, and /var file systems.
The following example shows the procedure for restoring data backed up with the ufsdump(1M) command.
# newfs /devices/pci@1f,4000/scsi@3/sd@0,0:a,raw |
,raw should not be added at the end of the device special file name specified with the mount(1M) command.
Data should not be restored from backup data created before the system disk was mirrored.
For details on the ufsrestore(1M) command, see the Solaris(TM) Operating System manaul.
8) Install the boot block to the root partition of system disk.
# installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /devices/pci@1f,4000/scsi@3/sd@0,0:a,raw |
9) Reboot the system.
# shutdown -g0 -i6 -y |
10) Reconnect the disks that were disconnected in step 2).
# sdxdisk -C -c System -g Group1 -d Root2 |
Synchronization copying will automatically take place. After its completion, mirroring is restored.
Contents |