[linux-lvm] Securing against data lost

Georges Giralt georges.giralt at free.fr
Thu Aug 11 08:08:10 UTC 2011


Le 10/08/2011 13:40, Sun_Blood a écrit :
> Hi
>
> Hope someone have time to answer this because google is not giving me
> the answers I need.
>
> I have just started to use LVM(a few years later then everyone) and
> I'm wondering how I can protect my self from failure to the LVM setup.
> Before when I had for example 3 harddisk at 200gb each (/dev/sd[b-d])
> with one partition each and a disk failed I would maximum lose 200gb.
> Now with LVM the LV is 600gb I'm worried that I can loose all if one
> disk have a problem.
>
> So how can I protect myself from this?
> What happens if I accidental destroys the LVM information?
> What happens if the first disk fails do I lose everything on the two
> second disk too?
>
> Best regards
> Martin
Hello !

Having 3 disk make a RAID a good idea. This will prevent loosing one
disk and loosing all data.
Then making propoer backup prevent from accidental human error or
catastrophic failure.
IMHO you should use a RAID 5 on your disks (either hardware RAID or
software MD RAID) and then build your PV, VG, and LV on top of this
array. Of course, you SHOULD monitor this array to ensure it is running
fine .....
Disk are cheap now, so you should have done this already.
But as other have said, proper backup IS the way to survive....

-- 
If the only tool you have is a hammer, you tend to see every problem as a nail.
                Abraham Maslow
A British variant :
Any tool can serve as a hammer but a screwdriver makes the best chisel. 




More information about the linux-lvm mailing list