[linux-lvm] How to confuse lvm using devfs
Heinz J . Mauelshagen
mauelshagen at sistina.com
Tue Apr 30 08:46:02 UTC 2002
Koos,
that's a know constraint in LVM1.
In recent LVM1 versions, there's support for environment variable LVM_DEV_REFIX.
Still needs some work to anable arbitrary devfs mount points though.
LVM2 is fully configurable already ITR.
Regards,
Heinz -- The LVM Guy --
On Mon, Apr 29, 2002 at 11:22:54AM +0200, Koos van den Hout wrote:
>
> It seems the lvm tools get confused when there is devfs compiled into the
> kernel but it's not mounted at /dev. Twice I had
>
> lvcreate -l 1024 vghm -n home
>
> fail on me with an error about /dev/vghm/home being inacessible. That's
> simply because it was not there.
>
> When I created /dev/vghm/home with the same data as /devices/vghm/home
> it wasn't available right away (according to vgdisplay, the extents
> were allocated, but lvdisplay did not show the logical volume). When I reran
> vgscan (and maybe rebooted in the process, I have rebooted lots of times)
> it showed up and worked. The device is formatted with reiserfs now and
> mounted.
>
> Now, when I try to display the volume info:
>
> root at NEWgosper:~# lvdisplay /devices/vghm/home
> lvdisplay -- invalid logical volume name "/devices/vghm/home"
>
>
> root at NEWgosper:~# lvdisplay /dev/vghm/home
> --- Logical volume ---
> LV Name /dev/vghm/home
> VG Name vghm
> LV Write Access read/write
> LV Status available
> LV # 1
> # open 1
> LV Size 4.00 GB
> Current LE 1024
> Allocated LE 1024
> Allocation next free
> Read ahead sectors 120
> Block device 58:1
>
> root at NEWgosper:~# ls -l /dev/vghm/home /devices/vghm/home
> brw-r----- 1 root root 58, 1 Apr 29 01:23 /dev/vghm/home
> brw-r----- 1 root root 58, 1 Jan 1 1970 /devices/vghm/home
>
> Kernel 2.4.18, devfs compiled in but mounted on /devices and not on /dev
> (just testing with devfs).
>
> Logical Volume Manager 1.0
> Heinz Mauelshagen, Sistina Software 14/08/2001 (IOP 10)
>
> Koos van den Hout
>
> --
> Koos van den Hout, PGP keyid RSA/1024 0xCA845CB5 via keyservers
> koos at kzdoos.xs4all.nl or DSS/1024 0xF0D7C263 -?)
> Fax +31-30-2817051 Visit my site about books with reviews /\\
> http://idefix.net/~koos/ http://www.virtualbookcase.com/ _\_V
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen at Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
More information about the linux-lvm
mailing list