Sun Cluster 系統管理指南 (適用於 Solaris 作業系統)

SPARC: 範例—復原非封裝的 root (/) 檔案系統 (VERITAS Volume Manager)

以下範例顯示從磁帶裝置 /dev/rmt/0 復原至節點 phys-schost-1 的非封裝 root (/) 檔案系統。


[Replace the failed disk and boot the node:]

從 Solaris CD 啟動節點。 出現 OpenBoot PROM ok 提示符號時,請鍵入以下指令︰


ok boot cdrom -s
...
[Use format and newfs to create partitions and file systems]
[Mount the root file system on a temporary mount point:]
# mount /dev/dsk/c0t0d0s0 /a
[Restore the root file system:]
# cd /a
# ufsrestore rvf /dev/rmt/0
# rm restoresymtable
# cd /
# umount /a
# fsck /dev/rdsk/c0t0d0s0
[Install a new boot block:]
# /usr/sbin/installboot /usr/platform/`uname \
-i`/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0
[Reboot in single-user mode:]
# reboot -- "-s"
[Update the disk ID:]
# scdidadm -R /dev/rdsk/c0t0d0
[Press Control-d to resume in multiuser mode]