Chinaunix

标题: metadb已经全部被我删除,metaclear无法清除设备 [打印本页]

作者: falcon117    时间: 2006-09-22 15:51
标题: metadb已经全部被我删除,metaclear无法清除设备
在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


都没搞懂怎么回事。
作者: jcr240    时间: 2010-09-15 11:36
怎么没有人解决南  我也碰到这个问题了
作者: easybegin    时间: 2010-09-15 15:39
建metadb,删metadevice,再删metadb
作者: jcr240    时间: 2010-09-16 11:04
但是他要报错  stale databases
作者: zyl555    时间: 2010-09-17 22:30
印象中加一个-f就删了呀
作者: ztejob    时间: 2010-09-20 16:20
-f 参数 ----强制删除
作者: zhangfukai    时间: 2010-09-23 19:03
metadevadm -u cxdxtx

做接下来的操作...

成功了回复...
作者: jcr240    时间: 2010-09-25 10:25
执行该命令后,清除设备还是不行啊
metaclear: suntest: d0: stale databases

metaclear: suntest: d10: metadevice in use
作者: zhangfukai    时间: 2010-10-09 19:04
metadetach -f dx dxx
metaclear dxx
metaclear dxxx

首先要修改了/etc/vfstab不被svm管理...




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2