On Saturday 10 December 2005 16:59, Richard Fish wrote:
> 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>".
>
And this command fixed it.  /dev/mapper/vgusbhd-usbhd exists.

> > 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.
>
I may have to try this.  The original reason I moved to udev was that the usb 
drive would sometimes show up as /dev/sda, or /dev/sdb after a power failure.  
I've got a UPS on the system, not on the usb drive.


> > 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.

>
> Have you run "vgchange -a y vgusbhd"?

That was the winning command.

Think I'll try editing a couple files, and reboot.  See if it works.
Thanks.

Peter
-- 
On a clear disk you can seek forever.
                -- P. Denning
-- 
gentoo-user@gentoo.org mailing list

Reply via email to