From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [linux-lvm] disk naming From: Matt Schillinger In-Reply-To: <20030103174618.Z9539@zealot.blacknet.de> References: <1041610095.19844.45.camel@mosix> <20030103174618.Z9539@zealot.blacknet.de> Content-Transfer-Encoding: 7bit Message-Id: <1041613503.20036.49.camel@mosix> Mime-Version: 1.0 Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: Date: Fri Jan 3 10:59:02 2003 List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-lvm@sistina.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? Matt Schillinger mschilli@vss.fsi.com On Fri, 2003-01-03 at 10:46, Goetz Bock wrote: > > On Fri, Jan 03 '03 at 10:08, Matt Schillinger wrote: > > this should be a simple question, but I can't find a direct discussion > > in the lvm documentation. I believe that i have found that LVM will find > > appropriate PV's regardless of their name (sda,sdb).. Is this true? > Kind of. When you created (maybe even just used) a PV/VG with DEVFS it > will only work with devfs. > IIRC when you compile DEVFS into the kernel, but do not mount it, you > can create PVs, but createvg will not find them unless you mount devfs. > > > Do i need devfs to ensure that i always have the same disk naming, or > > will LVM handle this for me? > devfs does not ensure you have the same names. > > > I am currently using scsidev for naming purposes, but have found that > > vgcreate will not work with scsidev device names > > (/dev/scsi/sdh0-0c0i4l2p1) > > /dev/scsi/sd(host=0,scsiid=4,LUN=2,partition #=1) > Most likely the userspace tools do not search the /dev/scsi/sdxxx > devices for PV signatrue. IIRC there is one file where you can add them. > It's in tools/lib/lvm_check_partitioned_dev.c but I've no idea how to > add your devices. > -- > Goetz Bock (c) 2002 as blacknet.de - Munich - Germany /"\ > IT Consultant GNU FDL 1.1 secure mobile Linux everNETting \ / > X > ASCII Ribbon Campaign against HTML email & microsoft attachments / \ > > _______________________________________________ > linux-lvm mailing list > linux-lvm@sistina.com > http://lists.sistina.com/mailman/listinfo/linux-lvm > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/ -- Matt Schillinger System Administrator FlightSafety International mschilli@vss.fsi.com 314-551-8403