To recover the critical data, follow these steps:
Install the replacement disk.
Make sure the operating system and kernel recognize the new disk.
Use the saved disk partition information to re-create the disk partitions with the same structure as the original disk.
See "Disk Information".
If you did not save the disk information, it should still be available because it is located on the primary disk, which in this case, is operational. To find the original disk partition information, examine /etc/vfstab for a Solaris system and /etc/fstab for a SunOS system. However, you must guess how big each partition should be.
Use the output from the disk information command to make a filesystem for each raw partition you plan to recover, then mount the block partition. (Backup does not initialize or create filesystems; it recovers data into existing filesystems.)
Use the appropriate command to format the replacement disk.
For SunOS and Solaris systems, use newfs or mkfs.
Make sure the disk is no longer needed, because you will completely destroy the disk contents when you use newfs, or mkfs.
Run newfs on a SunOS system. For example:
# newfs /dev/rsd1g ... # mount /dev/sd1g /export # newfs /dev/rsd1h # mount /dev/sd1h /home |
Run newfs on a Solaris system. For example:
# newfs /dev/rdsk/c0t1d0s5 # mount /dev/dsk/c0t1d0s5 # newfs /dev/rdsk/c0t1d0s7 # mount /dev/dsk/c0t1d0s7 |
After creating and mounting all the filesystems on the replacement disk, use Save Set Recover feature in the nwadmin program or the normal recovery procedure in the nwrecover program to recover the files.
For an explanation about the best recovery method for your lost data, see the Solstice Backup 5.1 Administration Guide.