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

RE: [linux-lvm] lvm and md

Someone please correct me if I'm wrong, but I believe mdadm can start
the arrays based on the RAID superblock UUID.  So even if the device
name changes it still knows which partition belongs to which md device.

Mdadm is an alternative software RAID management utility.  It is very
nice.  Check it out at http://www.cse.unsw.edu.au/~neilb/source/mdadm/

Hope this helps,

-----Original Message-----
From: Jon Bendtsen [mailto:jon+lvm silicide dk] 
Sent: Monday, March 10, 2003 4:50 AM
To: linux-lvm sistina com
Subject: Re: [linux-lvm] lvm and md

Peter Yao wrote:
> Jon Bendtsen wrote:
> > Peter Yao wrote:
> >
> >>Should we build lvm volumns on top of soft raid(md) or build md on 
> >>top of lvm volumns? I prefer to build md on top of lvm volumns 
> >>because lvm can hide the hardware details from md. Just want to know

> >>how do you think about this. Or any URLs? Thanks.
> >
> >
> > why would you need to hide the hardware details from md ?
> I am using some hot-plugging disks and their device number may change 
> after reboot. For example, if i build md with /dev/sda and /dev/sdb, 
> after reboot md may cannot start because the two disks' device name 
> change to /dev/sdc and /dev/sdd. If i build md on top of lvm this 
> problem is avoided. Can you give me some advice for this issue?

sure. Dont change device names ;-D

Perhaps you can use labels ? and label the partitions ?

Another thing is that i dont think the kernel uses /etc/raidtab i think
it looks at the partitions and then starts the md. You 
can set the partition type to raid autodetect. Then it might work even
if you change the partition names.


linux-lvm mailing list
linux-lvm sistina com
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

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