亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: 求助SDS鏡象重啟完后總是有幾個(gè)分區(qū)需要needs maintenance [打印本頁]

作者: tootooluu    時(shí)間: 2006-08-15 19:23
標(biāo)題: 求助SDS鏡象重啟完后總是有幾個(gè)分區(qū)需要needs maintenance
ultra 10 機(jī)器,solaris 6 + disksuite  4.2,20G硬盤\r\n\r\n       0. c0t0d0 <ST320011A cyl 39533 alt 2 hd 16 sec 63>\r\n          /pci@1f,0/pci@1,1/ide@3/dad@0,0\r\n       1. c0t3d0 <ST320420A cyl 39533 alt 2 hd 16 sec 63>\r\n          /pci@1f,0/pci@1,1/ide@3/dad@3,0\r\n\r\n做鏡象,做完后同步一切正常,但一重啟動(dòng),就會出現(xiàn)某些分區(qū)needs maintenance\r\n\r\nd30: Mirror\r\n    Submirror 0: d10\r\n      State: Okay         \r\n    Submirror 1: d20\r\n      State: Needs maintenance \r\n    Pass: 1\r\n    Read option: roundrobin (default)\r\n    Write option: parallel (default)\r\n    Size: 6086304 blocks\r\n\r\nd10: Submirror of d30\r\n    State: Okay         \r\n    Size: 6086304 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t0d0s0                   0     No    Okay         \r\n\r\n\r\nd20: Submirror of d30\r\n    State: Needs maintenance \r\n    Invoke: metareplace d30 c0t3d0s0 <new device>\r\n    Size: 6086304 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t3d0s0                   0     No    Maintenance  \r\n\r\n\r\nd31: Mirror\r\n    Submirror 0: d11\r\n      State: Okay         \r\n    Submirror 1: d21\r\n      State: Okay         \r\n    Pass: 1\r\n    Read option: roundrobin (default)\r\n    Write option: parallel (default)\r\n    Size: 1049328 blocks\r\n\r\nd11: Submirror of d31\r\n    State: Okay         \r\n    Size: 1049328 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t0d0s1                   0     No    Okay         \r\n\r\n\r\nd21: Submirror of d31\r\n    State: Okay         \r\n    Size: 1049328 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t3d0s1                   0     No    Okay         \r\n\r\n\r\nd32: Mirror\r\n    Submirror 0: d12\r\n      State: Okay         \r\n    Submirror 1: d22\r\n      State: Needs maintenance \r\n    Pass: 1\r\n    Read option: roundrobin (default)\r\n    Write option: parallel (default)\r\n    Size: 6291936 blocks\r\n\r\nd12: Submirror of d32\r\n    State: Okay         \r\n    Size: 6291936 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t0d0s4                   0     No    Okay         \r\n\r\n\r\nd22: Submirror of d32\r\n    State: Needs maintenance \r\n    Invoke: metareplace d32 c0t3d0s4 <new device>\r\n    Size: 6291936 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t3d0s4                   0     No    Maintenance  \r\n\r\n\r\nd33: Mirror\r\n    Submirror 0: d13\r\n      State: Okay         \r\n    Submirror 1: d23\r\n      State: Needs maintenance \r\n    Pass: 1\r\n    Read option: roundrobin (default)\r\n    Write option: parallel (default)\r\n    Size: 3145968 blocks\r\n\r\nd13: Submirror of d33\r\n    State: Okay         \r\n    Size: 3145968 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t0d0s5                   0     No    Okay         \r\n\r\n\r\nd23: Submirror of d33\r\n    State: Needs maintenance \r\n    Invoke: metareplace d33 c0t3d0s5 <new device>\r\n    Size: 3145968 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t3d0s5                   0     No    Maintenance  \r\n\r\n\r\nd34: Mirror\r\n    Submirror 0: d14\r\n      State: Okay         \r\n    Submirror 1: d24\r\n      State: Okay         \r\n    Pass: 1\r\n    Read option: roundrobin (default)\r\n    Write option: parallel (default)\r\n    Size: 12583872 blocks\r\n\r\nd14: Submirror of d34\r\n    State: Okay         \r\n    Size: 12583872 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t0d0s6                   0     No    Okay         \r\n\r\n\r\nd24: Submirror of d34\r\n    State: Okay         \r\n    Size: 12583872 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t3d0s6                   0     No    Okay         \r\n\r\n\r\nd35: Mirror\r\n    Submirror 0: d15\r\n      State: Okay         \r\n    Submirror 1: d25\r\n      State: Okay         \r\n    Pass: 1\r\n    Read option: roundrobin (default)\r\n    Write option: parallel (default)\r\n    Size: 10486224 blocks\r\n\r\nd15: Submirror of d35\r\n    State: Okay         \r\n    Size: 10486224 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t0d0s7                   0     No    Okay         \r\n\r\n\r\nd25: Submirror of d35\r\n    State: Okay         \r\n    Size: 10486224 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t3d0s7                   0     No    Okay         \r\n\r\n\r\n用metareplace修復(fù),依然報(bào)錯(cuò)\r\n/usr/opt/SUNWmd/sbin/metareplace -e d30 c0t3d0s0\r\n# WARNING: md: d20: write error on /dev/dsk/c0t3d0s0\r\nWARNING: md: d20: /dev/dsk/c0t3d0s0 needs maintenance\r\n\r\n懷疑硬盤故障,更換新硬盤,重裝操作系統(tǒng),故障依然,非常茫然,求助各位大大!\r\n\r\n# more /etc/vfstab\r\n#device         device          mount           FS      fsck    mount   mount\r\n#to mount       to fsck         point           type    pass    at boot options\r\n#\r\n#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -\r\nfd      -       /dev/fd fd      -       no      -\r\n/proc   -       /proc   proc    -       no      -\r\n/dev/md/dsk/d31 -       -       swap    -       no      -\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/dev/md/dsk/d35 /dev/md/rdsk/d35        /bak    ufs     1       no      logging\r\n/dev/md/dsk/d34 /dev/md/rdsk/d34        /usr1   ufs     1       no      logging\r\nswap    -       /tmp    tmpfs   -       yes     -\r\n\r\n系統(tǒng)補(bǔ)丁升級到105181-39,disksuite補(bǔ)丁到106627-11。\r\n另外,是在多用戶模式下!\r\n\r\n# who -r\r\n   .       run-level 3  Aug 15 19:18     3      0  S\r\n\r\n# df -k\r\nFilesystem            kbytes    used   avail capacity  Mounted on\r\n/dev/md/dsk/d30      2978534   32409 2886555     2%    /\r\n/dev/md/dsk/d32      3095966  400349 2633698    14%    /usr\r\n/proc                      0       0       0     0%    /proc\r\nfd                         0       0       0     0%    /dev/fd\r\n/dev/md/dsk/d33      1523574  121694 1340938     9%    /var\r\nswap                  716016      16  716000     1%    /tmp\r\n/dev/md/dsk/d34      6191949       9 6130021     1%    /usr1\r\n/dev/md/dsk/d35      5159318       9 5107716     1%    /bak\r\n\r\n求助!搞了好幾天了:(
作者: tootooluu    時(shí)間: 2006-08-15 19:28
各位大人出來指點(diǎn)一下小弟!
作者: susbin    時(shí)間: 2006-08-15 19:33
我不是大人, 是小人。\r\ndisksuite 4.2 版本對 solaris 2.6 是不是太高了?
作者: tootooluu    時(shí)間: 2006-08-15 19:34
查了手冊,支持6的呀。。。。還是問人家討了半天才要到的4.2
作者: susbin    時(shí)間: 2006-08-15 19:46
在這壇子里搜一下吧,有些貼和你的問題差不多。
作者: tootooluu    時(shí)間: 2006-08-15 21:13
都看遍了啊,沒辦法才發(fā)的。用solaris 6也是沒辦法,用戶的應(yīng)用程序是在6基礎(chǔ)上設(shè)計(jì)的,8不支持:(
作者: tootooluu    時(shí)間: 2006-08-15 21:47
謝謝樓上兄弟,這個(gè)帖子我看過了的,沒結(jié)果啊。。。能試的我都試過了,打算明天過去去FSCK 然后NEWFS去。〉粔K是SUN剛發(fā)過來的新硬盤。海
作者: susbin    時(shí)間: 2006-08-15 22:05
“做鏡象,做完后同步一切正常,但一重啟動(dòng),就會出現(xiàn)某些分區(qū)needs maintenance”\r\n\r\n有幾個(gè)分區(qū)是要重啟后才能同步的吧。
作者: tootooluu    時(shí)間: 2006-08-15 22:58
不是的吧,我做玩,他自己就在同步,如果不重啟,同步狀態(tài)都是好的
作者: maike_xiao    時(shí)間: 2006-08-15 23:18
樓主能不能你把你做的步驟發(fā)上來讓大家看看?
作者: susbin    時(shí)間: 2006-08-16 00:13
/, /usr 都是要要重啟后才能同步。
作者: tootooluu    時(shí)間: 2006-08-16 08:36
問題是,我重啟動(dòng)完,metareplace -e d30 c0t3d0s0,總是報(bào)錯(cuò):(
作者: wuqing    時(shí)間: 2006-08-16 09:01
原帖由 tootooluu 于 2006-8-16 08:36 發(fā)表\r\n問題是,我重啟動(dòng)完,metareplace -e d30 c0t3d0s0,總是報(bào)錯(cuò):(
\r\n\r\n問題集中在以下三個(gè)分區(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這三個(gè)分區(qū)的鏡像尤其是/分區(qū)其步驟和其他分區(qū)是不一樣的,給你一個(gè)參考樣例(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.
作者: wuqing    時(shí)間: 2006-08-16 09:05
/var  分區(qū)也是比較特別的,就是總是在不停地記錄日志,這個(gè)也只有在單用戶的模式下才可能同步數(shù)據(jù)\r\n最好是把你做這三個(gè)分區(qū)鏡像的步驟貼出來,大家才好分析是什么原因\r\n\r\n和硬盤沒有關(guān)系,20G的小硬盤還是很皮實(shí)的,更何況是新盤.步驟大體上沒有問題,畢竟還有2個(gè)鏡像是Okay狀態(tài)嘛\r\n\r\n注意:給的例子是Solaris10 SVM Administration Guide中的,僅供參考
作者: alex_linux    時(shí)間: 2006-08-16 09:41
Needs maintenance 如果同步還出現(xiàn)得話,建議將mirror打掉重做,還要徹底打點(diǎn),光metadetach是不行得,用metaclear -f 清楚狀態(tài),然后做mirror。\r\n問題基本差不多OK。。
作者: john.you    時(shí)間: 2006-08-16 09:44
找SDS for Solaris 2.6的軟件來用。
作者: tootooluu    時(shí)間: 2006-08-16 11:12
謝謝各位,我的這三個(gè)分區(qū)操作步驟如下:\r\nmetainit -f d10 1 1 c0t0d0s0 \r\nmetainit -f d20 1 1 c0t3d0s0\r\nmetainit d30 -m d10\r\nmetaroot d30\r\n查看/etc/vfstab,并且能看到“/”文件系統(tǒng)將被掛載到/dev/md/dsk上而不是掛載到/dev/dsk. \r\nmetainit -f d12 1 1 c0t0d0s4\r\nmetainit -f d22 1 1 c0t3d0s4\r\nmetainit d32 -m d12\r\nmetainit -f d13 1 1 c0t0d0s5\r\nmetainit -f d23 1 1 c0t3d0s5\r\nmetainit d33 -m d13\r\n。。。。\r\n編寫/etc/vfstab表\r\nlockfs -fa \r\ninit 6\r\n追加第二個(gè)鏡像設(shè)備到鏡像\r\nmetattach d32 d22\r\nmetattach d33 d23\r\n.....\r\ninstallboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t3d0s0\r\nok setenv boot-device disk disk3\r\nok reset-all\r\n基本步驟就是這些了\r\nalex_linux朋友,說的metaclear我沒試過\r\n我是這么修復(fù)的:\r\n /usr/opt/SUNWmd/sbin/metadetach -f d30 d20\r\n fsck -y /dev/md/rdsk/d20\r\n /usr/opt/SUNWmd/sbin/metadetach -f d33 d23\r\n fsck -y /dev/md/rdsk/d23\r\n /usr/opt/SUNWmd/sbin/metadetach -f d32 d22\r\n fsck -y /dev/md/rdsk/d22\r\n \r\n /usr/opt/SUNWmd/sbin/metattach d30 d20\r\n /usr/opt/SUNWmd/sbin/metattach d33 d23\r\n /usr/opt/SUNWmd/sbin/metattach d32 d22\r\n\r\n結(jié)果依然報(bào)錯(cuò),\r\nWARNING: md: d22: write error on /dev/dsk/c0t3d0s4\r\nWARNING: md: d22: /dev/dsk/c0t3d0s4 needs maintenance\r\nmetaclear -f 能說的清楚點(diǎn)嗎?SUN 800建議我裝一下solaris 8看看是不是硬件問題!\r\n而且我每次拆鏡像完后,fsck總能發(fā)現(xiàn)有壞的地方,需要支持:)
作者: tootooluu    時(shí)間: 2006-08-16 11:15
還有就是:\r\nmetareplace -e d30 c0t3d0s0\r\nmetareplace -e d32 c0t3d0s4\r\nmetareplace -e d33 c0t3d0s5\r\n\r\n也報(bào)同樣的錯(cuò)誤。海
作者: tootooluu    時(shí)間: 2006-08-16 11:41
剛剛做了如下操作:\r\n# /usr/opt/SUNWmd/sbin/metadetach -f d30 d20\r\nd30: submirror d20 is detached\r\n# /usr/opt/SUNWmd/sbin/metaclear -f d30 d20\r\nmetaclear: sun04: d30: metadevice is open\r\n\r\nd20: Concat/Stripe is cleared\r\n\r\n# /usr/opt/SUNWmd/sbin/metainit -f d20 1 1 c0t3d0s0\r\nd20: Concat/Stripe is setup\r\n# /usr/opt/SUNWmd/sbin/metattach d30 d20\r\nd30: submirror d20 is attached\r\n\r\n同步到73%的時(shí)候出錯(cuò):(
作者: 孤城    時(shí)間: 2006-08-16 13:47
不會是硬盤有問題了吧,做之前先fsck看看
作者: tootooluu    時(shí)間: 2006-08-16 14:50
樓上這篇我也看過,但情況不完全一樣啊,我的進(jìn)程起來的呀。。。而且,它上面說是兩個(gè)盤都Needs maintenance。
作者: hjp1973    時(shí)間: 2006-08-16 18:06
原帖由 tootooluu 于 2006-8-15 19:23 發(fā)表\r\n# more /etc/vfstab\r\n#device         device          mount           FS      fsck    mount   mount\r\n#to mount       to fsck         point           type    pass    at boot options\r\n#\r\n#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -\r\nfd      -       /dev/fd fd      -       no      -\r\n/proc   -       /proc   proc    -       no      -\r\n/dev/md/dsk/d31 -       -       swap    -       no      -\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/dev/md/dsk/d35 /dev/md/rdsk/d35        /bak    ufs     1       no      logging\r\n/dev/md/dsk/d34 /dev/md/rdsk/d34        /usr1   ufs     1       no      logging\r\nswap    -       /tmp    tmpfs   -       yes     -\r\n
\r\n\r\nSolaris2.6文件系統(tǒng)不支持logging選項(xiàng),應(yīng)改為\"-\",然后重起系統(tǒng)在看看!
作者: www326yu    時(shí)間: 2006-08-17 08:35
還有個(gè)可能就是用戶的母盤,也就原來的用戶自己的系統(tǒng)盤就是有問題的,當(dāng)你鏡像同步時(shí)鏡像盤讀到原盤某個(gè)有問題的block時(shí)無法讀出數(shù)據(jù)也就不能完成同步,所以你每次做完同步后都會看到系統(tǒng)提示需要Needs maintenance
作者: scsi    時(shí)間: 2006-08-17 16:57
messages文件有什么報(bào)錯(cuò)沒有?
作者: tootooluu    時(shí)間: 2006-08-17 23:43
謝謝各位支持!現(xiàn)在問題已經(jīng)解決,又問SUN公司調(diào)了一個(gè)新盤,一次成功!重啟了幾次,都沒問題!\r\n可能是之前兩個(gè)盤P/N號一樣,但盤的容量還是有細(xì)微的差別導(dǎo)致吧,說不清楚:)謝謝各位了!
作者: Barrfee    時(shí)間: 2006-08-18 00:18
問題有幾種可能:\r\n1、系統(tǒng)根本沒有啟動(dòng)到多用戶下面:\r\nwho -r 顯示不一定特別準(zhǔn)確,需要自己判斷\r\n\r\n2、軟件本身存在文件損壞,如果有興趣的話,可以自己校驗(yàn)一下\r\n\r\n3、補(bǔ)丁的問題,可能性不大\r\n\r\n4、硬盤的firmware版本不對\r\n\r\n5、還有是硬盤的firmware的型號不匹配,尤其對于OBP版本比較低的硬件。\r\n\r\n6、啟動(dòng)腳本存在問題,可能性也不大。\r\n\r\n最終建議:比較更換前后主機(jī)運(yùn)行環(huán)境的差別。\r\n\r\n該結(jié)貼了。
作者: tootooluu    時(shí)間: 2006-08-18 10:51
感謝大家支持,把操作步驟整理了一下,貼上來:)\r\n\r\n安裝Disksuite 4.2\r\n\r\n1  SUNWmd      Solstice DiskSuite\r\n                 (sparc) 4.2,REV=1998.02.09.12.47.28\r\n  2  SUNWmdg     Solstice DiskSuite Tool\r\n                 (sparc) 4.2,REV=1998.14.09.08.19.32\r\n  3  SUNWmdn     Solstice DiskSuite Log Daemon\r\n                 (sparc) 4.2,REV=1998.02.09.12.47.28\r\n\r\n選擇1,2,3,在安裝過程中全部選“y”\r\n全部安裝成功后 init 6 重啟機(jī)器。\r\n\r\n# prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t3d0s2\r\nfmthard:  New volume table of contents now in place.\r\n# /usr/opt/SUNWmd/sbin/metadb -a -f -c 3 /dev/dsk/c0t0d0s3 /dev/dsk/c0t3d0s3\r\n\r\n# /usr/opt/SUNWmd/sbin/metainit -f d10 1 1 c0t0d0s0\r\nd10: Concat/Stripe is setup\r\n# /usr/opt/SUNWmd/sbin/metainit -f d20 1 1 c0t3d0s0\r\nd20: Concat/Stripe is setup\r\n# /usr/opt/SUNWmd/sbin/metainit d30 -m d10\r\nd30: Mirror is setup\r\n# /usr/opt/SUNWmd/sbin/metaroot d30      \r\n\r\n# /usr/opt/SUNWmd/sbin/metainit -f d11 1 1 c0t0d0s1\r\nd11: Concat/Stripe is setup\r\n# /usr/opt/SUNWmd/sbin/metainit -f d21 1 1 c0t3d0s1\r\nd21: Concat/Stripe is setup\r\n# /usr/opt/SUNWmd/sbin/metainit d31 -m d11\r\nd31: Mirror is setup\r\n# /usr/opt/SUNWmd/sbin/metainit -f d12 1 1 c0t0d0s4\r\nd12: Concat/Stripe is setup\r\n# /usr/opt/SUNWmd/sbin/metainit -f d22 1 1 c0t3d0s4\r\nd22: Concat/Stripe is setup\r\n# /usr/opt/SUNWmd/sbin/metainit d32 -m d12\r\nd32: Mirror is setup\r\n# /usr/opt/SUNWmd/sbin/metainit -f d13 1 1 c0t0d0s5\r\nd13: Concat/Stripe is setup\r\n# /usr/opt/SUNWmd/sbin/metainit -f d23 1 1 c0t3d0s5\r\nd23: Concat/Stripe is setup\r\n# /usr/opt/SUNWmd/sbin/metainit d33 -m d13\r\nd33: Mirror is setup\r\n# /usr/opt/SUNWmd/sbin/metainit -f d14 1 1 c0t0d0s6\r\nd14: Concat/Stripe is setup\r\n# /usr/opt/SUNWmd/sbin/metainit -f d24 1 1 c0t3d0s6\r\nd24: Concat/Stripe is setup\r\n# /usr/opt/SUNWmd/sbin/metainit d34 -m d14\r\nd34: Mirror is setup\r\n# /usr/opt/SUNWmd/sbin/metainit -f d15 1 1 c0t0d0s7\r\nd15: Concat/Stripe is setup\r\n# /usr/opt/SUNWmd/sbin/metainit -f d25 1 1 c0t3d0s7\r\nd25: Concat/Stripe is setup\r\n# /usr/opt/SUNWmd/sbin/metainit d35 -m d15\r\nd35: Mirror is setup\r\n\r\n# vi  /etc/vfstab\r\n#device         device          mount           FS      fsck    mount   mount\r\n#to mount       to fsck         point           type    pass    at boot options\r\n#\r\n#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -\r\nfd      -       /dev/fd fd      -       no      -\r\n/proc   -       /proc   proc    -       no      -\r\n/dev/md/dsk/d31 -       -       swap    -       no      -\r\n/dev/md/dsk/d30 /dev/md/rdsk/d30        /       ufs     1       no      -\r\n/dev/md/dsk/d34 /dev/md/rdsk/d34        /usr    ufs     1       no      -\r\n/dev/md/dsk/d32 /dev/md/rdsk/d32        /var    ufs     1       no      -\r\n/dev/md/dsk/d35 /dev/md/rdsk/d35        /export/home    ufs     2       yes     \r\n-\r\n/dev/md/dsk/d33 /dev/md/rdsk/d33        /opt    ufs     2       yes     -\r\nswap    -       /tmp    tmpfs   -       yes     -\r\n\r\n# /usr/opt/SUNWmd/sbin/metainit hsp001\r\nhsp001: Hotspare pool is setup\r\n# lockfs -fa  \r\n#init 6\r\n\r\n# /usr/opt/SUNWmd/sbin/metattach d30 d20\r\nd30: submirror d20 is attached\r\n# /usr/opt/SUNWmd/sbin/metattach d31 d21    \r\nd31: submirror d21 is attached\r\n# /usr/opt/SUNWmd/sbin/metattach d32 d22\r\nd32: submirror d22 is attached\r\n# /usr/opt/SUNWmd/sbin/metattach d33 d23\r\nd33: submirror d23 is attached\r\n# /usr/opt/SUNWmd/sbin/metattach d34 d24\r\nd34: submirror d24 is attached\r\n# /usr/opt/SUNWmd/sbin/metattach d35 d25\r\nd35: submirror d25 is attached\r\n\r\n#installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t3d0s0\r\n\r\nok setenv boot-device disk disk3 \r\nok reset-all
作者: tootooluu    時(shí)間: 2006-08-18 10:54
目前狀態(tài):\r\n# /usr/opt/SUNWmd/sbin/metastat\r\nd30: Mirror\r\n    Submirror 0: d10\r\n      State: Okay         \r\n    Submirror 1: d20\r\n      State: Okay         \r\n    Pass: 1\r\n    Read option: roundrobin (default)\r\n    Write option: parallel (default)\r\n    Size: 6086304 blocks\r\n\r\nd10: Submirror of d30\r\n    State: Okay         \r\n    Size: 6086304 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t0d0s0                   0     No    Okay         \r\n\r\n\r\nd20: Submirror of d30\r\n    State: Okay         \r\n    Size: 6086304 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t3d0s0                   0     No    Okay         \r\n\r\n\r\nd31: Mirror\r\n    Submirror 0: d11\r\n      State: Okay         \r\n    Submirror 1: d21\r\n      State: Okay         \r\n    Pass: 1\r\n    Read option: roundrobin (default)\r\n    Write option: parallel (default)\r\n    Size: 1049328 blocks\r\n\r\nd11: Submirror of d31\r\n    State: Okay         \r\n    Size: 1049328 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t0d0s1                   0     No    Okay         \r\n\r\n\r\nd21: Submirror of d31\r\n    State: Okay         \r\n    Size: 1049328 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t3d0s1                   0     No    Okay         \r\n\r\n\r\nd32: Mirror\r\n    Submirror 0: d12\r\n      State: Okay         \r\n    Submirror 1: d22\r\n      State: Okay         \r\n    Pass: 1\r\n    Read option: roundrobin (default)\r\n    Write option: parallel (default)\r\n    Size: 6291936 blocks\r\n\r\nd12: Submirror of d32\r\n    State: Okay         \r\n    Size: 6291936 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t0d0s4                   0     No    Okay         \r\n\r\n\r\nd22: Submirror of d32\r\n    State: Okay         \r\n    Size: 6291936 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t3d0s4                   0     No    Okay         \r\n\r\n\r\nd33: Mirror\r\n    Submirror 0: d13\r\n      State: Okay         \r\n    Submirror 1: d23\r\n      State: Okay         \r\n    Pass: 1\r\n    Read option: roundrobin (default)\r\n    Write option: parallel (default)\r\n    Size: 3145968 blocks\r\n\r\nd13: Submirror of d33\r\n    State: Okay         \r\n    Size: 3145968 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t0d0s5                   0     No    Okay         \r\n\r\n\r\nd23: Submirror of d33\r\n    State: Okay         \r\n    Size: 3145968 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t3d0s5                   0     No    Okay         \r\n\r\n\r\nd34: Mirror\r\n    Submirror 0: d14\r\n      State: Okay         \r\n    Submirror 1: d24\r\n      State: Okay         \r\n    Pass: 1\r\n    Read option: roundrobin (default)\r\n    Write option: parallel (default)\r\n    Size: 12583872 blocks\r\n\r\nd14: Submirror of d34\r\n    State: Okay         \r\n    Size: 12583872 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t0d0s6                   0     No    Okay         \r\n\r\n\r\nd24: Submirror of d34\r\n    State: Okay         \r\n    Size: 12583872 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t3d0s6                   0     No    Okay         \r\n\r\n\r\nd35: Mirror\r\n    Submirror 0: d15\r\n      State: Okay         \r\n    Submirror 1: d25\r\n      State: Okay         \r\n    Pass: 1\r\n    Read option: roundrobin (default)\r\n    Write option: parallel (default)\r\n    Size: 10486224 blocks\r\n\r\nd15: Submirror of d35\r\n    State: Okay         \r\n    Size: 10486224 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t0d0s7                   0     No    Okay         \r\n\r\n\r\nd25: Submirror of d35\r\n    State: Okay         \r\n    Size: 10486224 blocks\r\n    Stripe 0:\r\n        Device              Start Block  Dbase State        Hot Spare\r\n        c0t3d0s7                   0     No    Okay         \r\n\r\n\r\nhsp001: is empty
作者: tootooluu    時(shí)間: 2006-08-18 10:55
---------OVER--------\r\n\r\n謝謝大家支持




歡迎光臨 Chinaunix (http://www.72891.cn/) Powered by Discuz! X3.2