免费注册 查看新帖 |

Chinaunix

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

metadb已经全部被我删除,metaclear无法清除设备 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-22 15:51 |只看该作者 |倒序浏览
在VM上转的solaris9 U7,在虚拟机中设置了一块IDE的root盘,其他SCSI盘6块,很奇怪,在虚拟机中,每次重新启动或者关VM后,六块SCSISVM的metadb就全部人不出来了(unkonow),需要重新同步。 我索性将所有7块盘上的metadb删除了,然后关VM,再把除了根盘外的其他六块盘在VM中删除,并在windows中把这些盘对应的文件shift+del 了。\r\n\r\n重新开启VM,metadb是全部没有了,但是还有meitadevice在如下:\r\nroot@MySUN # metadb\r\nroot@MySUN # metastat\r\nd10: Mirror\r\n    Submirror 0: d11\r\n      State: Unavailable  \r\n    Submirror 1: d12\r\n      State: Unavailable  \r\n    Pass: 1\r\n    Read option: roundrobin (default)\r\n    Write option: parallel (default)\r\n    Size: 963900 blocks (470 MB)\r\n\r\nd11: Submirror of d10\r\n    Hot spare pool: hsp001\r\n    State: Unavailable\r\n    Size: 963900 blocks (470 MB)\r\n    Stripe 0:\r\n        Device     Start Block  Dbase        State Reloc Hot Spare\r\n        c2t2d0s0          0     No               -   Yes \r\n\r\n\r\nd12: Submirror of d10\r\n    Hot spare pool: hsp001\r\n    State: Unavailable\r\n    Size: 963900 blocks (470 MB)\r\n    Stripe 0:\r\n        Device     Start Block  Dbase        State Reloc Hot Spare\r\n        c3t1d0s0          0     No               -   Yes \r\n\r\n\r\nd20: RAID\r\n    State: Unavailable  \r\n    Hot spare pool: hsp001\r\n    Interlace: 32 blocks\r\n    Size: 1911735 blocks (933 MB)\r\nOriginal device:\r\n    Size: 1927104 blocks (940 MB)\r\n        Device     Start Block  Dbase        State Reloc  Hot Spare\r\n        c2t0d0s0        330        No            -   Yes \r\n        c2t3d0s0        330        No            -   Yes \r\n        c3t2d0s0        330        No            -   Yes \r\n\r\nhsp001: 1 hot spare\r\n        Device     Status      Length   Reloc\r\n        c2t1d0s0   Available    963900 blocks   Yes\r\n\r\nDevice Relocation Information:\r\nDevice   Reloc  Device ID\r\nc2t1d0   Yes    id1,sd@f2792365145134372000c061b0009\r\nroot@MySUN # \r\n------------------\r\nd10,d20是我原来建的一个mirror和一个raid5,现在我想清除这些设置,但是清除不了d10、d20,报错为\r\n\r\nmetaclear \"stale databases\"\r\n\r\n--------------------------------------------\r\n不知道怎么回事,刚才我又试了一下,就然搞定了,真是晕\r\n\r\nroot@MySUN # metadetach d10 d12\r\nmetadetach: MySUN: d10: operation would result in no readable submirrors\r\n\r\nroot@MySUN # metaclear -f d10\r\nd10: Mirror is cleared\r\nroot@MySUN # metastat\r\nd20: RAID\r\n    State: Unavailable  \r\n    Hot spare pool: hsp001\r\n    Interlace: 32 blocks\r\n    Size: 1911735 blocks (933 MB)\r\nOriginal device:\r\n    Size: 1927104 blocks (940 MB)\r\n        Device     Start Block  Dbase        State Reloc  Hot Spare\r\n        c2t0d0s0        330        No            -   Yes \r\n        c2t3d0s0        330        No            -   Yes \r\n        c3t2d0s0        330        No            -   Yes \r\n\r\nd12: Concat/Stripe\r\n    Hot spare pool: hsp001\r\n    State: Unavailable\r\n    Size: 963900 blocks (470 MB)\r\n    Stripe 0:\r\n        Device     Start Block  Dbase   Reloc\r\n        c3t1d0s0          0     No      Yes\r\n\r\nd11: Concat/Stripe\r\n    Hot spare pool: hsp001\r\n    State: Unavailable\r\n    Size: 963900 blocks (470 MB)\r\n    Stripe 0:\r\n        Device     Start Block  Dbase   Reloc\r\n        c2t2d0s0          0     No      Yes\r\n\r\nhsp001: 1 hot spare\r\n        Device     Status      Length   Reloc\r\n        c2t1d0s0   Available    963900 blocks   Yes\r\n\r\nDevice Relocation Information:\r\nDevice   Reloc  Device ID\r\nc2t1d0   Yes    id1,sd@f2792365145134372000c061b0009\r\nroot@MySUN # metaclear -fr d10\r\nmetaclear: MySUN: d10: unit not set up\r\n\r\nroot@MySUN # metaclear -fr d11\r\nd11: Concat/Stripe is cleared\r\nroot@MySUN # metaclear -fr d12\r\nd12: Concat/Stripe is cleared\r\nroot@MySUN # metaclear -fr d20\r\nd20: RAID is cleared\r\nroot@MySUN # metastat\r\nhsp001: 1 hot spare\r\n        Device     Status      Length   Reloc\r\n        c2t1d0s0   Available    963900 blocks   Yes\r\n\r\nDevice Relocation Information:\r\nDevice   Reloc  Device ID\r\nc2t1d0   Yes    id1,sd@f2792365145134372000c061b0009\r\nroot@MySUN # metaclear -fr hsp001\r\nhsp001: Hotspare pool is cleared\r\nroot@MySUN # metastat\r\n\r\n\r\n都没搞懂怎么回事。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP