顯示結果 
搜尋替代 
您的意思是 

Couldn't remove volume group

Couldn't remove volume group

Hi,



我有個 VG (vg03) 其只包含兩顆硬碟,今天其中一顆壞掉由於某種原因我想將該 VG03 拿掉但不知該下哪些指令?

PS:兩顆 disk 的 path 為 /dev/dsk/c0t13d0 and /dev/dsk/c0t14d0 其中 /dev/dsk/c0t14d0 有問題



twerpj01:/#vgremove /dev/vg03

vgremove: Volume group "/dev/vg03" still contains more than one physical volume

path. vgremove: Couldn't remove volume group "/dev/vg03".



twerpj01:/#vgreduce /dev/vg03 /dev/dsk/c0t13d0

vgreduce: Warning: couldn't query physical volume "/dev/dsk/c0t14d0":

The specified path does not correspond to physical volume attached to

this volume group

vgreduce: Warning: couldn't query all of the physical volumes.

vgreduce: Couldn't delete physical volume:

I/O error

twerpj01:/#vgreduce /dev/vg03 /dev/dsk/c0t14d0

vgreduce: Couldn't query physical volume "/dev/dsk/c0t14d0":

The specified path does not correspond to physical volume attached to

this volume group

twerpj01:/#



請問該如呵解決?



Thks & Best Regards,

3 回覆

Couldn't remove volume group

Do followed if data loss is no impact.

1.umount any LV of this VG

2.vgchange -a n vg03

3.vgexport vg03

Couldn't remove volume group

Hi Ixg,



Thanks for your help.



Best Regards,

Couldn't remove volume group

如您要remove vg,那我建議您使用vgexport

vgexport並不是清洗掉你的data,而是remove vg的config訊息。vgexport vg03之後,vg03就會消失,但pv上的data不會消失。

如果要用vgremove,那要保證vg中只剩1顆pv.

因此之前要做vgreduce.

//Add this to "OnDomLoad" event