[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Is LVM safe?



On Mon, Jun 20, 2005 at 04:00:49PM +0100, John Rowe wrote:
> 
> > > Yes, it's easy. You just need a kernel with DM-Support and the 
> 
> > But this is similar to what
> > happens if the partition table gets busted on a normal disk.
> 
> So the previous poster's "Yes" actually means "No". And a broken
> partition table will zap a disk with an LVM partition too won't it? So
> the bottom line is that if I want to move an LVM partition to a
> different system I have to hold my breath and pray.

No, it means "Yes" just like he said.  There is a condition that you
didn't explicitly state in the original question.  If the LVM metadata
is messed up somehow (which doesn't generally happen unless you do
something stupid), you can't recover the LVM volumes without a
filesystem backup of the metadata.

> The idea that a disk partition needs Unix file to be able to read it is
> absolutely astonishing.

Umm, try this sometime...

dd if=/dev/zero of=/dev/hda bs=512 count=1

Then just try to resurrect the partition.

Unless you've created a backup of your partition table into a Unix file,
then you aren't going to recover the partition table, period.

So, poof, there, you have a disk partition that needs a Unix file to be
able to read it.

Since LVM maintains backups of all of this metadata in files, it's
signficantly better for recovery than Unix partitions are.

*sigh*,
-- 
"It does me no injury for my neighbor to say there are twenty gods or no God.
It neither picks my pocket nor breaks my leg."  --- Thomas Jefferson
"Go to Heaven for the climate, Hell for the company."  -- Mark Twain
-- Eric Hopper (hopper omnifarious org  http://www.omnifarious.org/~hopper) --

Attachment: pgpeJSMpY8Q7r.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]