[linux-lvm] Is LVM safe?

Eric Hopper hopper at omnifarious.org
Mon Jun 20 16:10:21 UTC 2005


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 at omnifarious.org  http://www.omnifarious.org/~hopper) --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20050620/a90e5d7a/attachment.sig>


More information about the linux-lvm mailing list