免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3426 | 回复: 6
打印 上一主题 下一主题

metaroot问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-05 13:59 |只看该作者 |倒序浏览
solaris8的系统,metaroot报错,跟另一台机器比对/etc/system没发现有什么不一样地方。\r\nmetaroot d10\r\nmetaroot: xhhz-b: /etc/system: error in system file\r\n\r\n# metastat\r\nd10: Mirror\r\n    Submirror 0: d11\r\n      State: Okay         \r\n    Pass: 1\r\n    Read option: roundrobin (default)\r\n    Write option: parallel (default)\r\n    Size: 40968576 blocks\r\n\r\nd11: Submirror of d10\r\n    State: Okay         \r\n    Size: 40968576 blocks\r\n    Stripe 0:\r\n        Device     Start Block  Dbase State        Hot Spare\r\n        c1t0d0s0          0     No    Okay         \r\n\r\n\r\nd12: Concat/Stripe\r\n    Size: 40968576 blocks\r\n    Stripe 0:\r\n        Device     Start Block  Dbase\r\n        c1t3d0s0          0     No   \r\n\r\n # more    cat /etc/system\r\n*ident  \"@(#)system     1.18    97/06/27 SMI\" /* SVR4 1.5 */\r\n*\r\n* SYSTEM SPECIFICATION FILE\r\n*\r\n\r\n* moddir:\r\n*\r\n*       Set the search path for modules.  This has a format similar to the\r\n*       csh path variable. If the module isn\'t found in the first directory\r\n*       it tries the second and so on. The default is /kernel /usr/kernel\r\n*\r\n*       Example:\r\n*               moddir: /kernel /usr/kernel /other/modules\r\n\r\n\r\n\r\n* root device and root filesystem configuration:\r\n*\r\n*       The following may be used to override the defaults provided by\r\n*       the boot program:\r\n*\r\n*       rootfs:         Set the filesystem type of the root.\r\n*\r\n*       rootdev:        Set the root device.  This should be a fully\r\n*                       expanded physical pathname.  The default is the\r\n*                       physical pathname of the device where the boot\r\n*                       program resides.  The physical pathname is\r\n*                       highly platform and configuration dependent.\r\n*\r\n*       Example:\r\n*               rootfs:ufs\r\n*               rootdev:/sbus@1,f8000000/esp@0,800000/sd@3,0:a\r\n*\r\n*       (Swap device configuration should be specified in /etc/vfstab.)\r\n\r\n\r\n\r\n* exclude:\r\n*\r\n*       Modules appearing in the moddir path which are NOT to be loaded,\r\n*       even if referenced. Note that `exclude\' accepts either a module name,\r\n*       or a filename which includes the directory.\r\n*\r\n*       Examples:\r\n*               exclude: win\r\n*               exclude: sys/shmsys\r\n\r\n\r\n\r\n* forceload:\r\n*\r\n*       Cause these modules to be loaded at boot time, (just before mounting\r\n*       the root filesystem) rather than at first reference. Note that\r\n*       forceload expects a filename which includes the directory. Also\r\n*       note that loading a module does not necessarily imply that it will\r\n*       be installed.\r\n*\r\n*       Example:\r\n*               forceload: drv/foo\r\n\r\n\r\n\r\n* set:\r\n*\r\n*       Set an integer variable in the kernel or a module to a new value.\r\n*       This facility should be used with caution.  See system(4).\r\n*\r\n*       Examples:\r\n*\r\n*       To set variables in \'unix\':\r\n*\r\n*               set nautopush=32\r\n*               set maxusers=40\r\n*\r\n*       To set a variable named \'debug\' in the module named \'test_module\'\r\n*\r\n*               set test_module:debug = 0x13\r\n\r\n* Start of lines added by SUNWscr\r\nset rpcmod:svc_default_stksize=0x6000\r\nset ge:ge_intr_mode=0x833\r\n* End   of lines added by SUNWscr\r\nset shmsys:shminfo_shmmax=4294967295\r\nset semsys:seminfo_semmap=1024\r\nset semsys:seminfo_semmni=200\r\nset semsys:seminfo_semmns=2048\r\nset semsys:seminfo_semmsl=1024\r\nset semsys:seminfo_semopm=200\r\nset semsys:seminfo_semvmx=32767\r\nset semsys:seminfo_semmnu=1024\r\nset semsys:seminfo_semume=200\r\nset shmsys:shminfo_shmmin=1\r\nset shmsys:shminfo_shmmni=1024\r\nset shmsys:shminfo_shmseg=1024\r\nforceload:sys/shmsys\r\nforceload:sys/semsys\r\nforceload:sys/msgsys\r\n* vxvm_START (do not remove)\r\nforceload: drv/vxdmp\r\nforceload: drv/vxio\r\nforceload: drv/vxspec\r\n* vxvm_END (do not remove)\r\n* Begin MDD root info (do not edit)\r\nforceload: misc/md_trans\r\nforceload: misc/md_raid\r\nforceload: misc/md_hotspares\r\nforceload: misc/md_sp\r\nforceload: misc/md_stripe\r\nforceload: misc/md_mirror\r\nforceload: drv/pcisch\r\nforceload: drv/qlc\r\nforceload: drv/fp\r\nforceload: drv/ssd\r\nrootdev:/pseudo/md@0:0,10,blk\r\n* End MDD root info (do not edit)\r\n* Begin MDD database info (do not edit)\r\nset md:mddb_bootlist1=\"scsa,00.bfcp:7:16 scsa,00.bfcp:7:1050\"\r\nset md:mddb_bootlist2=\"scsa,00.bfcp:7:2084 scsa,00.bfcp:15:16\"\r\nset md:mddb_bootlist3=\"scsa,00.bfcp:15:1050 scsa,00.bfcp:15:2084\"\r\n* End MDD database info \r\n # cat /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/dsk/c1t0d0s1       -       -       swap    -       no      -\r\n#/files/swapfile        -       -       swap    -       no      -\r\n/dev/dsk/c1t0d0s0       /dev/rdsk/c1t0d0s0      /       ufs     1       no      logging\r\n#/dev/dsk/c1t0d0s4      /dev/rdsk/c1t0d0s4      /golbaldevices  ufs     2       yes     logging\r\n/dev/dsk/c1t0d0s3       /dev/rdsk/c1t0d0s3      /oracle ufs     2       yes     logging \r\nswap    -       /tmp    tmpfs   -       yes     -\r\n/dev/did/dsk/d7s4       /dev/did/rdsk/d7s4      /global/.devices/node@2 ufs     2       no      global\r\n#xhhz-a:/oracle/oradata1        -       /oracle/oradata1        nfs     2       yes     rw,bg

论坛徽章:
0
2 [报告]
发表于 2009-08-05 14:42 |只看该作者
你不会是metaroot已经执行过了,又做了1遍吧

论坛徽章:
0
3 [报告]
发表于 2009-08-05 17:05 |只看该作者
我没有做,系统是备份带恢复的,改过VFSTAB表。如果做过metaroot会报类似错误?

论坛徽章:
0
4 [报告]
发表于 2009-08-05 17:22 |只看该作者
检查你的/etc/system 看是否有rootdev:/pseudo/md@0:0,0,blk这样的?\r\n\r\n估计磁带备份时/etc/system中关于raid的信息也备进去了,你磁带恢复后,应该先删除关于raid的信息。\r\n\r\n其实如果已经有了这条记录的话,直接手工编辑vtstab,把root分区改成md的也是可以的。但没测试过。

论坛徽章:
62
洛杉矶湖人
日期:2015-02-10 09:56:11黑曼巴
日期:2016-06-28 17:41:282015-2016NBA季后赛纪念章
日期:2016-06-28 17:41:282016猴年福章徽章
日期:2016-02-18 15:30:34圣安东尼奥马刺
日期:2015-05-04 22:46:00菠菜神灯
日期:2015-05-04 22:35:07新奥尔良黄蜂
日期:2015-03-17 13:54:52明尼苏达森林狼
日期:2015-03-16 21:51:15萨克拉门托国王
日期:2015-03-02 16:10:58华盛顿奇才
日期:2015-03-02 16:10:58迈阿密热火
日期:2015-03-02 16:10:582016科比退役纪念章
日期:2016-06-28 17:41:28
5 [报告]
发表于 2009-08-05 17:53 |只看该作者
lz的/etc/system里有这句\r\nrootdev:/pseudo/md@0:0,10,blk\r\n\r\n可以考虑注释掉,再试下.

论坛徽章:
0
6 [报告]
发表于 2009-08-05 21:41 |只看该作者
本来是*注释掉的,我去掉了

论坛徽章:
0
7 [报告]
发表于 2009-08-06 09:06 |只看该作者

回复 #8 lisa_won 的帖子

你去掉的话,它就生效了,继续注释掉
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP