Saturday, October 21, 2006

Restore OS After Major File System Crash

How to restore a file system?

#/usr/lib/fs/ufs/ufsrestore 0f - /dev/rdsk/c0t0d0s7 | (cd /export/opt; ufsrestore xf -)

Restore incremental backups from tape:
Use Bourne Shell at the command line

#for i in 0 1 3 4 6 7 (These numbers represent the partitions you have configured as file systems)
#/usr/lib/fs/ufs/ufsrestore 5cfu /dev/rmt/0 /dev/rdsk/c0t0d0s$i (If Friday's tape, use 3 instead of 5)
#echo $i done

Repeat incremental backup process until incremental archives are exhausted.

No comments: