PRIMECLUSTER Global Disk Services Configuration and Administration Guide 4.1 (Solaris(TM) Operating System)
Contents PreviousNext

Chapter 6 Backing Up and Restoring> 6.1 Backing Up and Restoring a System Disk

6.1.2 Restoring (When the System Can Be Booted)

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


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
# eeprom nvramrc | grep sdx-var-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
# mount -F ufs /devices/pci@1f,4000/scsi@3/sd@0,0:a /mnt
# cd /mnt
# ufsrestore rvf /dev/rmt/0
# cd /
# umount /mnt

# newfs /devices/pci@1f,4000/scsi@3/sd@0,0:g,raw
# mount -F ufs /devices/pci@1f,4000/scsi@3/sd@0,0:g /mnt
# cd /mnt
# ufsrestore rvf /dev/rmt/0
# cd /
# umount /mnt

# newfs /devices/pci@1f,4000/scsi@3/sd@0,0:b,raw
# mount -F ufs /devices/pci@1f,4000/scsi@3/sd@0,0:b /mnt
# cd /mnt
# ufsrestore rvf /dev/rmt/0
# cd /
# umount /mnt



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 PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2005