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

Re: [linux-lvm] current lvm function questions



On Tue, Sep 26, 2000 at 06:20:44PM -0700, David Brower wrote:
> Area 1:  Stable device naming.
> 
> Is there a way in Linux to get a stable name for a
> disk that survive reconfiguration and discovery 
> randomization?

There are lots ...

 a) use scsidev(2) (for scsi disks only)
 b) use devfs
 c) use the linux software raid driver
 d) use a hardware raid controller that has it's
    own devfs-like naming scheme (ami, compaq)
 e) use lvm - also it does not use UUIDs yet,
    vgscan should detect all pvs of a vg.
 f) mount you disk by-label instead of by-device
    (LABEL: or UUID: entries in /etc/fstab)

> Specifically, if a pv/vg/lv is created on /dev/sda6, and 
> a subsequent reconfig has that partition show up as 
> /dev/sdb3, does it still show up as /dev/lvname?

It should. (but it's called /dev/vgname/lvname)

> 
> 2.  Raw device access
> 
> Can lvm volumes be accessed as raw devices?  If so, how?

Yes - in Linux 2.4 (or 2.2 w/ patches) you can simply bind
a raw device to any blockdevice. See raw(8) for details.
The device name will be /dev/raw/X

> Is there /dev/rlvname?

Nope.

	Christoph

-- 
Always remember that you are unique.  Just like everyone else.


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