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

Re: [linux-lvm] Swap/DB devices


On Sat, 17 Apr 1999 13:22:29 METDST, Heinz Mauelshagen
<mauelsha ez-darmstadt telekom de> said:

> The LVM lib creates the device special nodes dynamically if a logical volume
> is created by lvcreate(8) or found by vgscan(8)/vgimport(8).

> LVM function lv_create_node() has to be extended to create the raw
> device too.  The LVM driver can then be accessed by that raw device
> node _without_ modification.

No, it doesn't work that way.  The major/minor numbers for the raw
devices are 100% meaningless.  Creating a raw device inode is all very
well, but it won't do anything AT ALL until you have done a raw ioctl to
bind it to a block device.

As long as you can create the LVM block devices either in some known
location or with some known block device number, you can then bind a raw
device on top without any changes to the driver underneath.


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