?

Log in

No account? Create an account

Previous Entry | Next Entry

...and what did we learn from this?

LVM2, Linux's Logical Volume Manager, is an extraordinarily powerful tool. And like many powerful tools, it can wreak extraordinary havoc when improperly used.

Guess what?

Sadly, it's not as difficult at one would hope to blow away the metadata on a volume. Especially when the OS default is to give everything tags like "VolGroup00"... OK, yes,
I should have changed that to a less generic name, but I wasn't expecting to have to
move vast swathes of data between volumes, either. And apparently the volume group
commands are so anxious to be rid of duplicate volume group names that they won't ask
you if you REALLY want to clobber that existing volume group.

Moreover, by default, vgcfgbackup places the volume config in the /etc/lvm directory, which is...? You guessed it, most likely ON the volume that you're trying to protect. Here's a Seriously Big Tip: copy the volume config backups off to someplace safe-ish on a regular basis (maybe /boot, which IS on a standard partition, at least in my case).

On a related note, I think I need to come up with an international hazard symbol for "shooting yourself in the foot."

Comments

( 4 comments — Leave a comment )
jonwa
Oct. 20th, 2005 09:42 pm (UTC)
wheeee!
intimations
Apr. 27th, 2006 10:54 pm (UTC)
Hey, saw you post in the cooking community, and got the sudden urge to skim through your livejournal. You seem pretty engaging; mind if I add you?
byronium
Apr. 27th, 2006 11:04 pm (UTC)
Not at all! May I befriend you in kind?
intimations
Apr. 28th, 2006 02:26 am (UTC)
Of course! :)
( 4 comments — Leave a comment )

Profile

Radio
byronium
Byronium

Latest Month

April 2009
S M T W T F S
   1234
567891011
12131415161718
19202122232425
2627282930  
Powered by LiveJournal.com