- 论坛徽章:
- 0
|
在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
都没搞懂怎么回事。 |
|