return to I Love My Journal
A Little Closer to Center...
Musings about Life, Linux, and Latter-day Saints.
Pages
About Me
Links


Tags
PERSONAL 520
SPIRITUAL 416
LDS 312
BOOK OF MORMON 237
SCRIPTURES 154
STUDIO-JOURNEY 129
RELIGION 112
LINUX 79
COMPUTERS 65
LIFE 60
GENERAL CONFERENCE 46
GENTOO 39
MISCELLANEOUS 37
MUSIC 37
PROGRAMMING 33
CARS 29
MICROSOFT 23
FAMILY 23
AUDIO 21
I LOVE MY JOURNAL 18
FUN 15
CHILDREN 12
CURRENT EVENTS 10
NATURE'S WAY 10
VIDEO 9
DRM 9
CONEXM 7
BABBLINGS 7
PROVO CITY CENTER TEMPLE 6
FRIENDS 6
HEROD THE FINK 5
GAMES 5
COMPUTER HARDWARE 5
DRUMS 4
HAND OF GOD 3
ADVERSITY 3
KDENLIVE 3
AUDIO HARDWARE 3
GENERAL INSANITY 3
STUDIO 3
THANKS4GIVING 2
CATS 2
MY JOURNAL 1
POETRY 1
FOREVERGREEN 1
EVERYDAY THOUGHTS 1
GOSPEL 1
PARENTING 1
YOUTH CONFERENCE 1
CHURCH NOTES 1
POLITICS 1


RSS Feed

RSS FeedSubscribe!
Sat - Jan 23, 2010 : 12:00 am
okay
   rated 0 times
>>next>>
<<previous<<
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.)
Comment by Jesse on Jan. 26, 2010 @ 09:35 am
uh, that's not good right? I don't speak programmer. My sincere condolences.