linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] LVM and devices
@ 1999-08-27 15:28 mrharris
  1999-08-27 19:37 ` Heinz Mauelshagen
  0 siblings, 1 reply; 8+ messages in thread
From: mrharris @ 1999-08-27 15:28 UTC (permalink / raw)
  To: Linux LVM mailing list

I may be a day late and a dollar short here, but I experienced a problem
this morning when I added a new scsi drive to my 2.2.10 system. I know
that the os scans for devices when the system boots and assigns device
names then. Well this screwed up my volume groups because sda1 is now
sdb1, you get the idea nothing new here. I know this has been discussed
before.
In AIX new devices are assigned and that's the way it stays unless you
manually delete the device and readd it so that when one of your mirred
drives gets blown away or you add a drive the assignments are the same
(more to it than this but you get the idea).  I believe this needs to
change in linux before LVM is added to the kernel, life would be much
simpler (md is effected by this as well I beleive). LVM does need to be
there though, the old way is just that the old way. I don't know how I
would live without LVM when you manage over 200 systems.  Just my
opinion.

add LVM to 2.4 -- YES.

--
Chaos, panic, & disorder - my work here is done.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [linux-lvm] LVM and devices
@ 1999-08-28  3:54 Andreas Dilger
  1999-08-28 16:33 ` Heinz Mauelshagen
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Dilger @ 1999-08-28  3:54 UTC (permalink / raw)
  To: Linux LVM mailing list

Heinz writes:
> > I may be a day late and a dollar short here, but I experienced a problem
> > this morning when I added a new scsi drive to my 2.2.10 system. I know
> > that the os scans for devices when the system boots and assigns device
> > names then. Well this screwed up my volume groups because sda1 is now
> > sdb1, you get the idea nothing new here. I know this has been discussed
> > before.
> 
> Run vgscan and VGs should be o.k. again.

Is it possible to integrate LVM with devfs in such a way that LVM actually
creates the devices in devfs with proper names, like in AIX?  It should be
able to identify PVs by UUID (if this is in 0.7, I haven't had a chance to
look yet).  For that matter, LVM shouldn't be tied to the /dev names of
anything, since you could just start traversing the available devices,
find a list of UUIDs that make up a VG, and not have to worry about the
/dev names of anything (nor even store them anywhere).

This would finally free us from the changes to device names that even long
SCSI names in devfs can't handle.  In AIX, you can move PVs around at will,
or move disks for a VG from one system to another, and it will re-assemble
itself, as it never uses the device names, except when showing user output.

Cheers, Andreas
-- 
Andreas Dilger  University of Calgary \ "If a man ate a pound of pasta and
                Micronet Research Group \ a pound of antipasto, would they
Dept of Electrical & Computer Engineering \  cancel out, leaving him still
http://www-mddsp.enel.ucalgary.ca/People/adilger/      hungry?" -- Dogbert

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [linux-lvm] LVM and devices
@ 1999-08-28 19:18 Andreas Dilger
  1999-08-28 22:47 ` Heinz Mauelshagen
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Dilger @ 1999-08-28 19:18 UTC (permalink / raw)
  To: Linux LVM mailing list

Heinz writes:
> > I haven't had a chance to
> > look yet).  For that matter, LVM shouldn't be tied to the /dev names of
> > anything, since you could just start traversing the available devices,
> > find a list of UUIDs that make up a VG, and not have to worry about the
> > /dev names of anything (nor even store them anywhere).
> 
> Actually, it depends on /dev namespace today.
> 
> But the sole reason for this is perforrmance.
> 
> We could simply throw that dependency away, if we go devfs or
> could live with performance impacts without devfs.

It shouldn't be a big change to have LVM not STORE the device names in
the VGDA, and something like a pvscan is done at boot-time (after the LVM
module is loaded, if a module) to determine PV -> /dev mapping.  The LVM
kernel code would still use the device name/major+minor in memory to
access the devices, so there should be no performance impact outside a
small amount of scanning at boot time or when a new VG is imported.

Cheers, Andreas
-- 
Andreas Dilger  University of Calgary \ "If a man ate a pound of pasta and
                Micronet Research Group \ a pound of antipasto, would they
Dept of Electrical & Computer Engineering \  cancel out, leaving him still
http://www-mddsp.enel.ucalgary.ca/People/adilger/      hungry?" -- Dogbert

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1999-08-28 22:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-27 15:28 [linux-lvm] LVM and devices mrharris
1999-08-27 19:37 ` Heinz Mauelshagen
1999-08-28  6:40   ` Ryan Murray
1999-08-28 16:36     ` Heinz Mauelshagen
1999-08-28  3:54 Andreas Dilger
1999-08-28 16:33 ` Heinz Mauelshagen
1999-08-28 19:18 Andreas Dilger
1999-08-28 22:47 ` Heinz Mauelshagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).