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