Dave LeCompte (really) (tsmaster) wrote,
Dave LeCompte (really)

With apologies to Borat, "That was fun... NOT" (LVM recovery)


Some days, I forget that I'm an idiot.

For example, when I have a big Linux box, with three unused hard drives in it, and I think it might be a laugh to try to extend them using the Linux Volume Management (LVM) system. Seems like exactly what LVM's there for, and I've done exactly that before, so it shouldn't be so hard.

The idea is that rather than have to worry about pesky symlinks (is my home directory on /dev/hda1, or did I put it on /dev/sda?), you can have one glorious virtual file system that floats above the nasty details of physical hardware. For the most part, I've been happy with it.

But then I tried to add two new SATA drives to my working system (with the hope of maybe retiring old hardware at some point). And I did it badly, and the new drives ended up making my LVM volume (er, "volume group"? Man, if I don't even know how to talk about it, maybe I shouldn't be screwing with it) corrupt, unbootable, and all around bad. And then I tried removing those two drives, and that didn't work.

Long story short (and everybody says "TOO LATE"), I found this:

which tells of somebody else's similar tale of woe, and how he fixed it. Turns out, LVM squirrels away useful backup information once you start monkeying around. ("Oh, look! The meat monster is coming to corrupt our valuable data! Save yourselves!")

I believe I've put everything back where it belongs.


  • Living is Easy (With Eyes Closed)

    This is really primarily for Cassie, but I rarely post here, so it's also an exercise in "how does LJ work again? Or how does it work today?".…

  • No mudslides for me, thank you.

    Hey, is this thing on? I was just sending email to a mailing list (nothing exciting, don't feel insulted if you're not on it) that was thinking…

  • Trivial

    So, this past weekend, a bunch of my friends / acquaintences / teammates got together and competed in a local trivia competition. There are a few…

  • Post a new comment


    Comments allowed for friends only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded