On 12/10/05, Peter Kelly <[EMAIL PROTECTED]> wrote:
> However, upon reboot, I can't get a USB backup drive to mount correctly.
> It's an LVM2 partition that should show up as vgusbhd, mounted to /mnt/usbhd.
> Something seems to die between vgscan finding the drive/partition, and udev
> creating a /dev/mapper/vgusb* mountpoint.  It has no problem finding the
> other /hd* LVM2 partitions.  Seems only the /dev/sda partition is missing.
> Of course, it's the only usb/sd* drive on the system.

Udev doesn't create the device nodes for LVM volumes, these are
created by the LVM tools, and should be symlinks to devices in
/dev/mapper/.   These are made after you do "vgchange -a y <group>".

> crichton ~ # vgscan
>   Reading all physical volumes.  This may take a while...
>   Found volume group "vgiso" using metadata type lvm2
>   Found volume group "vg" using metadata type lvm2
>   Found volume group "vgexport" using metadata type lvm2
>   Found volume group "vgusbhd" using metadata type lvm2
>
> crichton ~ # ll /dev/vgusb/usbhd
> lrwxrwxrwx  1 root root 7 Dec 10 16:07 /dev/vgusb/usbhd -> ../sda1

This is wrong...this link should be to /dev/mapper/vgusbhd-usbhd.

> And the udev rule that seems to work, since there is a link
> BUS="usb", KERNEL="sd*1", SYSFS{product}="USB 2.0 Storage Device",
> SYSFS{serial}="000422222000000*****", NAME="%k", SYMLINK="vgusb/usbhd"

This rule should not exist.

>
> crichton ~ # ll /dev/mapper/
> total 0
> drwxr-xr-x   2 root root     200 Dec 10 15:59 .
> drwxr-xr-x  18 root root   13940 Dec 10 16:14 ..
> crw-rw----   1 root root  10, 63 Dec 10 15:59 control
> brw-------   1 root root 254,  4 Dec 10 15:59 vg-portage
> brw-------   1 root root 254,  5 Dec 10 15:59 vg-source
> brw-------   1 root root 254,  3 Dec 10 15:59 vg-sysbackup
> brw-------   1 root root 254,  1 Dec 10 15:59 vg-usr
> brw-------   1 root root 254,  2 Dec 10 15:59 vg-usrlocal
> brw-------   1 root root 254,  6 Dec 10 15:59 vgexport-export
> brw-------   1 root root 254,  0 Dec 10 15:59 vgiso-isoserver
>
> As you can see, there is no /dev/mapper/vgusb.

Have you run "vgchange -a y vgusbhd"?

-Richard

-- 
gentoo-user@gentoo.org mailing list

Reply via email to