Re: [linux-lvm] disk naming

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

 




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

This is the same catagory of problem you get into
with DOS when adding a new drive displaces the "D:"
partition on your first drive.

There are a few fixes for this:

1. Install the non-root drives' controller as a
  module and add /etc/rc.d/init.d/otherscsi
  to install the extra controller's module. At
  that point you are guaranteed not to find the
  RAID before you want to.

2. Devfs will solve this particular problem since
  the /dev/type/bus/target/item list has not changed.
  What will break devfs is adding a new controller
  on the PCI bus in a way that displaces your
  existing controler as, say, /dev/scsi/bus0.


--
Steven Lembark                               2930 W. Palmer
Workhorse Computing                       Chicago, IL 60647
                                           +1 8773 252 1080

_______________________________________________
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/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux