免费注册 查看新帖 |

Chinaunix

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

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 了。

重新开启VM,metadb是全部没有了,但是还有meitadevice在如下:
root@MySUN # metadb
root@MySUN # metastat
d10: Mirror
    Submirror 0: d11
      State: Unavailable  
    Submirror 1: d12
      State: Unavailable  
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 963900 blocks (470 MB)

d11: Submirror of d10
    Hot spare pool: hsp001
    State: Unavailable
    Size: 963900 blocks (470 MB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c2t2d0s0          0     No               -   Yes


d12: Submirror of d10
    Hot spare pool: hsp001
    State: Unavailable
    Size: 963900 blocks (470 MB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c3t1d0s0          0     No               -   Yes


d20: RAID
    State: Unavailable  
    Hot spare pool: hsp001
    Interlace: 32 blocks
    Size: 1911735 blocks (933 MB)
Original device:
    Size: 1927104 blocks (940 MB)
        Device     Start Block  Dbase        State Reloc  Hot Spare
        c2t0d0s0        330        No            -   Yes
        c2t3d0s0        330        No            -   Yes
        c3t2d0s0        330        No            -   Yes

hsp001: 1 hot spare
        Device     Status      Length   Reloc
        c2t1d0s0   Available    963900 blocks   Yes

Device Relocation Information:
Device   Reloc  Device ID
c2t1d0   Yes    id1,sd@f2792365145134372000c061b0009
root@MySUN #
------------------
d10,d20是我原来建的一个mirror和一个raid5,现在我想清除这些设置,但是清除不了d10、d20,报错为

metaclear "stale databases"

--------------------------------------------
不知道怎么回事,刚才我又试了一下,就然搞定了,真是晕

root@MySUN # metadetach d10 d12
metadetach: MySUN: d10: operation would result in no readable submirrors

root@MySUN # metaclear -f d10
d10: Mirror is cleared
root@MySUN # metastat
d20: RAID
    State: Unavailable  
    Hot spare pool: hsp001
    Interlace: 32 blocks
    Size: 1911735 blocks (933 MB)
Original device:
    Size: 1927104 blocks (940 MB)
        Device     Start Block  Dbase        State Reloc  Hot Spare
        c2t0d0s0        330        No            -   Yes
        c2t3d0s0        330        No            -   Yes
        c3t2d0s0        330        No            -   Yes

d12: Concat/Stripe
    Hot spare pool: hsp001
    State: Unavailable
    Size: 963900 blocks (470 MB)
    Stripe 0:
        Device     Start Block  Dbase   Reloc
        c3t1d0s0          0     No      Yes

d11: Concat/Stripe
    Hot spare pool: hsp001
    State: Unavailable
    Size: 963900 blocks (470 MB)
    Stripe 0:
        Device     Start Block  Dbase   Reloc
        c2t2d0s0          0     No      Yes

hsp001: 1 hot spare
        Device     Status      Length   Reloc
        c2t1d0s0   Available    963900 blocks   Yes

Device Relocation Information:
Device   Reloc  Device ID
c2t1d0   Yes    id1,sd@f2792365145134372000c061b0009
root@MySUN # metaclear -fr d10
metaclear: MySUN: d10: unit not set up

root@MySUN # metaclear -fr d11
d11: Concat/Stripe is cleared
root@MySUN # metaclear -fr d12
d12: Concat/Stripe is cleared
root@MySUN # metaclear -fr d20
d20: RAID is cleared
root@MySUN # metastat
hsp001: 1 hot spare
        Device     Status      Length   Reloc
        c2t1d0s0   Available    963900 blocks   Yes

Device Relocation Information:
Device   Reloc  Device ID
c2t1d0   Yes    id1,sd@f2792365145134372000c061b0009
root@MySUN # metaclear -fr hsp001
hsp001: Hotspare pool is cleared
root@MySUN # metastat


都没搞懂怎么回事。

论坛徽章:
0
2 [报告]
发表于 2010-09-15 11:36 |只看该作者
怎么没有人解决南  我也碰到这个问题了

论坛徽章:
0
3 [报告]
发表于 2010-09-15 15:39 |只看该作者
建metadb,删metadevice,再删metadb

论坛徽章:
0
4 [报告]
发表于 2010-09-16 11:04 |只看该作者
但是他要报错  stale databases

论坛徽章:
0
5 [报告]
发表于 2010-09-17 22:30 |只看该作者
印象中加一个-f就删了呀

论坛徽章:
0
6 [报告]
发表于 2010-09-20 16:20 |只看该作者
-f 参数 ----强制删除

论坛徽章:
0
7 [报告]
发表于 2010-09-23 19:03 |只看该作者
metadevadm -u cxdxtx

做接下来的操作...

成功了回复...

论坛徽章:
0
8 [报告]
发表于 2010-09-25 10:25 |只看该作者
执行该命令后,清除设备还是不行啊
metaclear: suntest: d0: stale databases

metaclear: suntest: d10: metadevice in use

论坛徽章:
0
9 [报告]
发表于 2010-10-09 19:04 |只看该作者
metadetach -f dx dxx
metaclear dxx
metaclear dxxx

首先要修改了/etc/vfstab不被svm管理...
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP