Sun Cluster 3.0 系統管理手冊

8.3.2.1 範例-復原 root(/)檔案系統(Solstice DiskSuite)

以下範例顯示 root(/)檔案系統從磁帶裝置 /dev/rmt/0 復原到節點 phys-schost-1metaset 指令是從 phys-schost-2 叢集中的另一個節點執行,先移除備份節點 phys-schost-1 稍後再將它加回磁碟組 schost-1。其他所有指令都是從 phys-schost-1 執行。新的啟動區塊將建立在 /dev/rdsk/c0t0d0s0,三個狀態資料庫抄本則是重新建立在 /dev/rdsk/c0t0d0s4


[Become superuser on a cluster node other than
the node to be restored.]
[Remove the node from the metaset:]
phys-schost-2# metaset -s schost-1 -f -d -h phys-schost-1
[Replace the failed disk and boot the node:]
ok boot cdrom -s
[Use format and newfs to recreate 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"
[Replace the disk ID:]
# scdidadm -R /dev/dsk/c0t0d0
[Recreate state database replicas:]
# metadb -c 3 -af /dev/rdsk/c0t0d0s4
# reboot
Press CTL-d to boot into multiuser mode.
[Add the node back to the metaset:]
phys-schost-2# metaset -s schost-1 -a -h phys-schost-1