Sat - Jan 23, 2010 : 12:00 am
okay
Destroying an LVM Array
Alright... So one of my hard drives failed in my backup server LVM array, and I received the new replacement disk today.
So, I turn on my computer and even though the volume group isn't initialized (due to the missing disk), it still exists, and has all the other drives in the array still held captive.
So, this is how to completely destroy your LVM array and all the data within it after a drive has failed.
DO NOT DO THIS IF YOU WANT TO KEEP ANY DATA ON THE ARRAY. (you have been warned)
The procedure is really quite easy.
First, do pvdisplay to see which disks are still part of the array you wish to destroy. (in my case it was /dev/sdb /dev/sdc and /dev/sdd)
simply run the command : "pvcreate -ff /dev/deviceyouwanttokill"
that will initialize the disk, even if it is part of another array.
Do that to all the disks you want to be part of your new array, and voila! You're done.
(hope you didn't just do all that hoping to do anything but COMPLETELY DESTROY your LVM array.)
Gentoo / Linux