[linux-lvm] How to confuse lvm using devfs

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

 




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@NEWgosper:~# lvdisplay /devices/vghm/home 
lvdisplay -- invalid logical volume name "/devices/vghm/home"


root@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@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@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@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

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

  Powered by Linux