Re: What if a drive dies ?

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

 



"Perplexer" <perplexer@thz.net> writes:

> Hello.
>
> I'm sorry if I ask something that's be asked a million times before but I
> prefer answers to my specific questions. I hope someone will try to help.
>
> I have a VG with several differently sized PVs and one LV. It is working
> fine but I am affraid that one day one of the drives would fail.

It happened to me.

> I'd like to know what I'll be looking at when that happens. What if
> one drive would fail in that VG ? Can I remove it and 'repair' the
> VG/LV to run on with one drive less

LVM2 can run readonly with some drives missing.

> (data is written in striped mode).

That lowers your odds considerably.  I wouldn't count on recovering
anything at all.

> That would mean I got my VG/LV back on-line but the data that was on
> the bad disk would be missing (a small price to pay actually). Would
> I need to resize the filesystem again with some tool or anything
> special ?

If you didn't run in striped mode you'd probably be able to recover
most of the data from the remaining disks, the exact results would
depend on the filesystem used and which part of it was lost.  However,
in striped mode you'll lose fragments all over the place.  Recovering
from that is more or less impossible.

If your data is precious, use RAID1 or RAID5 and make regular backups.

-- 
Måns Rullgård
mru@kth.se

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux