- 論壇徽章:
- 0
|
原帖由 tootooluu 于 2006-8-16 08:36 發(fā)表
問題是,我重啟動(dòng)完,metareplace -e d30 c0t3d0s0,總是報(bào)錯(cuò):(
問題集中在以下三個(gè)分區(qū):
/
/usr
/var
/dev/md/dsk/d30 /dev/md/rdsk/d30 / ufs 1 no logging
/dev/md/dsk/d32 /dev/md/rdsk/d32 /usr ufs 1 no logging
/dev/md/dsk/d33 /dev/md/rdsk/d33 /var ufs 1 no logging
這三個(gè)分區(qū)的鏡像尤其是/分區(qū)其步驟和其他分區(qū)是不一樣的,給你一個(gè)參考樣例(SVM Administration Guide.pdf Page116-117):
Example 11–6 SPARC: Creating a Mirror From the root (/) File System
# metainit -fd 1 1 1 c0t0d0s0
d1: Concat/Stripe is setup
# metainit d2 1 1 c0t1d0s0
d2: Concat/Stripe is setup
# metainit d0 -m d1
d0: Mirror is setup
# metaroot d0
# lockfs -fa
# reboot
...
# metattach d0 d2
d0: Submirror d2 is attached
# ls -l /dev/dsk/c0t1d0s0
lrwxrwxrwx 1 root root 88 Feb 8 15:51 /dev/rdsk/c1t3d0s0 ->
../../devices/pci@1f,0/pci@1,1/ide@3/dad@0,0:a
# init 0
.
.
ok nvalias backup_root /pci@1f,0/pci@1,1/ide@3/disk@0,0:a
ok setenv boot-device disk backup_root net
ok nvstore
In this example, the -f option forces the creation of the first RAID-0 volume, d1, which contains the mounted root (/) file system on /dev/dsk/c0t0d0s0. The second concatenation, d2, is created from /dev/dsk/c0t1d0s0. This slice must be the same size as, or larger than the size of d1. The metainit command with the -m option creates the one-way mirror d0 using the concatenation that contains root (/).
Next, the metaroot command edits the /etc/vfstab and /etc/system files so that the system can be booted with the root (/) file system on a volume. It is a good idea to run the lockfs -fa command before rebooting. For more information, see the lockfs(1M) man page.
Do not attach the second submirror before the system is rebooted. You must reboot after running the metaroot command and before attaching the second submirror.
After a reboot, the submirror d2 is attached to the mirror, causing a mirror resynchronization. The system confirms that the concatenations and the mirror are set up, and that submirror d2 is attached.
The ls -l command is run on the root raw device to determine the path to the alternate root device in case the system might later need to be booted from it. |
|