- 論壇徽章:
- 0
|
原帖由 tootooluu 于 2006-8-16 08:36 發(fā)表\r\n問題是,我重啟動完,metareplace -e d30 c0t3d0s0,總是報錯:( \r\n\r\n問題集中在以下三個分區(qū):\r\n/\r\n/usr\r\n/var\r\n\r\n/dev/md/dsk/d30 /dev/md/rdsk/d30 / ufs 1 no logging\r\n/dev/md/dsk/d32 /dev/md/rdsk/d32 /usr ufs 1 no logging\r\n/dev/md/dsk/d33 /dev/md/rdsk/d33 /var ufs 1 no logging\r\n\r\n這三個分區(qū)的鏡像尤其是/分區(qū)其步驟和其他分區(qū)是不一樣的,給你一個參考樣例(SVM Administration Guide.pdf Page116-117):\r\n\r\nExample 11–6 SPARC: Creating a Mirror From the root (/) File System\r\n# metainit -fd 1 1 1 c0t0d0s0\r\nd1: Concat/Stripe is setup\r\n# metainit d2 1 1 c0t1d0s0\r\nd2: Concat/Stripe is setup\r\n# metainit d0 -m d1\r\nd0: Mirror is setup\r\n# metaroot d0\r\n# lockfs -fa\r\n# reboot\r\n...\r\n# metattach d0 d2\r\nd0: Submirror d2 is attached\r\n# ls -l /dev/dsk/c0t1d0s0\r\nlrwxrwxrwx 1 root root 88 Feb 8 15:51 /dev/rdsk/c1t3d0s0 ->\r\n../../devices/pci@1f,0/pci@1,1/ide@3/dad@0,0:a\r\n# init 0\r\n\r\n.\r\n.\r\nok nvalias backup_root /pci@1f,0/pci@1,1/ide@3/disk@0,0:a\r\nok setenv boot-device disk backup_root net\r\nok nvstore\r\n\r\nIn 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 (/).\r\n\r\nNext, 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.\r\n\r\nDo not attach the second submirror before the system is rebooted. You must reboot after running the metaroot command and before attaching the second submirror.\r\n\r\nAfter 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.\r\n\r\nThe 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. |
|