Skip to contentSkip to conversation

LVM and devices

linux-lvm Andreas Dilger 2 participants 2 messages Aug 28, 1999

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines · Heinz
Quoted 6 lines

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

Signature · 4 lines
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
#1 lore raw
Quoted 9 lines
Quoted 7 lines · Heinz
Quoted 6 lines

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.

Quoted 4 lines
Quoted 1 line

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?

Sure.
That's one of the future extensions.

Quoted 2 lines

It should be
able to identify PVs by UUID (if this is in 0.7,

Today it identifies PVs by PV number/VG name pair. That obviously is not unique ;*)
But it's sufficient on a single computer system.

Quoted 5 lines

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.

Quoted 5 lines

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.

If you do that in Linux (vgexport/vgimport), it works too but no UUIDs with PVs and VGs today 8*(

Regards,
Heinz

--

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

Systemmanagement CS-TS T-Nova
Entwicklungszentrum Darmstadt
Heinz Mauelshagen Otto-Roehm-Strasse 71c
Senior Systems Engineer Postfach 10 05 41

                                                 64205 Darmstadt
[email protected]                      Germany
                                                 +49 6151 886-425
                                                          FAX-386

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