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

Re: [linux-lvm] disk failed



Hi Carl.

On Tue, Feb 05, 2002 at 05:33:35PM +0800, carl.huang [üS½¨äh] wrote:
> hello,
> 
> I'm new to lvm and sorry for my english.
> 
> I have a question: if I create a lv on vg that consists of
> /dev/hdb,/dev/hdc,/dev/hdd. Now if disk /dev/hdb fails,will all the data on
> the lv be lost?  I make an experiment: if /dev/hdc or /dev/hdd fails, the
> data will only
> lose on the failed disk, but if /dev/hdb fails ,the lv will not work. I

If your LV containing a filesystem is spread over all 3 PVs and one fails,
that part of your filesystem will not be accessable after you restored
the LVM metadata to a replacement drive.

> think the reason is the filesystem(ext2) metadata is stored on the first
> disk. If filesystem is reiserfs, the lv will also not work more no matter
> what disk fails.

Filesystems typically spread their metadata and data over the underlying
device. So it depends on the fill degree and usage patterns how much data
you might lose with your drive.

> 
> So it's really a risk to use multiple disks together? 

If you don't have disk redundancy (RAID either with Linux MD or in Hardware),
grouping multiple drives together grows the likelyhood to lose data.

> How to avoid it or I make a mistake?

Use RAID to avoid losing data due to hardware flaws
and take backups.

> 
> Thanks for any suggestion.
> 
> Carl.
> 
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm sistina com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen Sistina com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



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