![]() |
![]() |
| ||||||||||||||
Example--Restoring a Complete File SystemThe following example shows how to restore the /export/home file system.
|
# mount /dev/dsk/device-name /mnt |
Change to the /mnt directory.
# cd /mnt |
(Optional) Write-protect the tapes for safety.
Create the links for the tape device.
# tapes |
Restore the root file system.
# ufsrestore rvf /dev/rmt/n |
The dump level 0 tape is restored.
Remove the tape and load the next level tape in the drive.
Always restore tapes starting with dump level 0 and continuing from the lowest to highest dump level.
Continue restoring as needed.
# ufsrestore rvf /dev/rmt/n |
The next level tape is restored.
Verify that the file system is restored.
# ls |
Remove the restoresymtable file.
# rm restoresymtable |
The restoresymtable file that is created and used by the ufsrestore command to check-point the restore is removed.
Change to the root (/) directory.
# cd / |
Unmount the newly created file system.
# umount /mnt |
Check the new file system.
# fsck /dev/rdsk/device-name |
The restored file system is checked for consistency.
Create the boot blocks on the root partition.
# installboot /usr/platform/`uname-i`/lib/fs/ufs/bootblk /dev/rdsk/device-name |
For more information, see theinstallboot(1M) man page.
For an example of using the installboot command on a SPARC based system, see SPARC: Example--Restoring the root (/) File System. For an example of using the installboot command on an x86 based system, see x86: Example--Restoring the root (/) File System.
Insert a new tape in the tape drive.
Back up the new file system.
# ufsdump 0uf /dev/rmt/n /dev/rdsk/device-name |
A dump level 0 backup is performed. Always immediately do a full backup of a newly created file system because the ufsrestore command repositions the files and changes the inode allocation.
Repeat steps 5 through 16 for the /usr file system, if necessary.
Reboot the system.
# init 6 |
The system is rebooted.
Previous Contents Index Next ![]() |