[linux-lvm] HDD failure - please help!

Stuart D. Gathman stuart at bmsi.com
Wed Sep 1 17:14:35 UTC 2010


On Wed, 1 Sep 2010, Patterson, James wrote:

> I have a system running FC11 with five HDDs, ~2 TB of space, all in a
> logical volume. It was my presumption that the LVM system functioned
> sort of like a raid system (I know you can run striped, for instance).

The only RAID like redundancy that LVM supports is mirroring (like RAID1), but
only if you create the LVs as mirrored.  Striping (like RAID0) actually
makes your data *more* vulnerable (but faster).

If you wanted RAID5, your best bet on linux is the md driver.  Or else
a hardware RAID controller.

> I am at a loss as to what to do - I'm thinking that there must be a way
> to recover the data on the remaining four drives. Surely this LVM system
> is not going to cause me to lose the data on all five drives because one
> of them failed?

If the LVs were striped, then yep, that is the nature of striping.  And 
even if you had properly configured RAID 5 or mirroring and where immune
to hard drive failure, there is always the fat finger failure ("rm -rf /"
and its more subtle ilk).

Since you don't have any details on exactly what kind of LVs you
created, your first step is getting a copy of the metadata.  There 
should be a copy at the beginning of each drive.

If you had a single logical volume, and you were configured as jbod (Just
a Bunch of Disks), then you should look back a month or so in the archives
where another user made the same mistake, but got a significant portion
of his data back from the good drives.  I won't repeat the steps here.
(You'll need an external USB adapter, freezer, new drive to replace failed,
etc).

Hopefully, you've learned your lesson and won't presume (or assume) next time.

-- 
	      Stuart D. Gathman <stuart at bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.




More information about the linux-lvm mailing list