[linux-lvm] disk naming
caulfield at sistina.com
Fri Jan 3 13:20:01 UTC 2003
On Fri, Jan 03, 2003 at 12:38:45PM -0600, Steven Lembark wrote:
> -- Matt Schillinger <mschilli at vss.fsi.com>
> >If i'm NOT using devfs, can i reliably (assuming that disks are on the
> >same scsi id/lun/host channel) use lvm?
> >LV is created with device /dev/sdd, which is on host channel 2
> >Machine is shutdown, and a new raid is connected on host channel 1, with
> >one disk.
> >Machine is restarted, and the 1 disk on the host channel 1 raid takes
> >/dev/sdd. The original disk is now /dev/sde.
> >Will LVM find the correct disk?
> Nope. Main issue there is that the first disk device
> encountered by the kernel will be /dev/sda. Period.
NOPE, NOPE, NOPE.
LVM writes a UUID to each disk and uses that as the PV identifier. it does NOT
matter what it is called to the kernel. (as long as the device actually visible
to the code).*
I regularly plug and unplug disks around LVM systems and it works just fine.
* by which I mean it's a "known device" and not some new device that hasn't been
coded for in LVM (eg i2o block devs). This particular restriction is lifted in LVM2.
More information about the linux-lvm