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

Re: [linux-lvm] disk naming



On Fri, Jan 03, 2003 at 12:38:45PM -0600, Steven Lembark wrote:
> 
> 
> -- Matt Schillinger <mschilli 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?
> >
> >Scenario:
> >
> >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.

patrick

* 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.




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