Restoring Cluster Files Overview
The ufsrestore(1M) command copies files to disk, relative to the current working directory, from backups created using the ufsdump(1M) command. You can use ufsrestore to reload an entire file system hierarchy from a level 0 dump and incremental dumps that follow it, or to restore one or more single files from any dump tape. If ufsrestore is run as superuser, files are restored with their original owner, last modification time, and mode (permissions).
Before you start to restore files or file systems, you need to know the following information.
Which tapes you need
The raw device name on which you want to restore the file system
The type of tape drive you will use
The device name (local or remote) for the tape drive
The partition scheme of any failed disk, because the partitions and file systems must be exactly duplicated on the replacement disk
Restoring Cluster Files
Table 9-2 Task Map: Restoring Cluster Files
Task | For Instructions, Go To... |
|---|---|
For Solstice DiskSuite/Solaris Volume Manager, restore files interactively following Solaris restore procedures | How to Restore Individual Files Interactively (Solstice DiskSuite/Solaris Volume Manager) |
For Solstice DiskSuite/Solaris Volume Manager, restore the root (/) file system | How to Restore the root (/) File System (Solstice DiskSuite/Solaris Volume Manager) |
| |
For VERITAS Volume Manager, restore a non-encapsulated root (/) file system | How to Restore a Non-Encapsulated root (/) File System (VERITAS Volume Manager) |
For VERITAS Volume Manager, restore an encapsulated root (/) file system | How to Restore an Encapsulated root (/) File System (VERITAS Volume Manager) |
How to Restore Individual Files Interactively (Solstice DiskSuite/Solaris Volume Manager)
Use this procedure to restore one or more individual files. Be sure the cluster is running problem-free before performing the restore procedure.
Become superuser on the cluster node you want to restore.
Stop all the data services that are using the files to be restored.
# scswitch -z -g resource-group[,...] -h ""
Restore the files using the ufsrestore command.
How to Restore the root (/) File System (Solstice DiskSuite/Solaris Volume Manager)
Use this procedure to restore the root (/) file systems to a new disk, such as after replacing a bad root disk. The node being restored should not be booted. Be sure the cluster is running problem-free before performing the restore procedure.
Note - Since you must partition the new disk using the same format as the failed disk, identify the partitioning scheme before you begin this procedure, and recreate file systems as appropriate.
Become superuser on a cluster node with access to the metaset, other than the node you want to restore.
Remove from all metasets the hostname of the node being restored.
Run this command from a node in the metaset other than the node you are removing.
# metaset -s setname -f -d -h nodelist
-s setname Specifies the diskset name.
-f Force.
-d Deletes from the diskset.
-h nodelist Specifies the name of the node to delete from the diskset.
Replace the failed disk on the node on which the root (/) file system will be restored.
Refer to disk replacement procedures in the documentation that came with your server.
Boot the node being restored.
If using the Solaris CD-ROM, run the following command:
ok boot cdrom -s
If using a Solaris JumpStart server, run the following command:
ok boot net -s
Create all the partitions and swap on the root disk using the format(1M) command.
Recreate the original partitioning scheme that was on the failed disk.
Create the root (/) file system and other file systems as appropriate, using the newfs(1M) command.
Recreate the original file systems that were on the failed disk.
Note - Be sure to create the /global/.devices/node@nodeid file system.
Mount the root (/) file system on a temporary mount point.
# mount device temp-mountpoint
Use the following commands to restore the root (/) file system.
# cd temp-mountpoint # ufsrestore rvf dump-device # rm restoresymtable # cd / # umount temp-mountpoint # fsck raw-disk-device
The file system is now restored.
Install a new boot block on the new disk.
# /usr/sbin/installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk raw-disk-device
Reboot the node in single-user mode.
# reboot -- "-s"
Replace the disk ID using the scdidadm(1M) command.
# scdidadm -R rootdisk
Use the metadb(1M) command to recreate the state database replicas.
# metadb -c copies -af raw-disk-device
-c copies Specifies the number of replicas to create.
-f raw-disk-device Raw disk device on which to create replicas.
-a Adds replicas.
Reboot the node in cluster mode.
From a cluster node other than the restored node, use the metaset(1M) command to add the restored node to all metasets.
phys-schost-2# metaset -s setname -a -h nodelist
-a Creates and adds the host to the diskset.
The node is rebooted into cluster mode. The cluster is ready to use.



