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

Re: Udev, USB and LVM



Hi,

In article <[🔎] 20060111145930.GA1163@khazad-dum.debian.net>,
           Henrique de Moraes Holschuh<hmh@debian.org> wrote:
> On Wed, 11 Jan 2006, Andy Hawkins wrote:
> First, make sure /etc/lvm/lvm.conf allows scanning of the devices the USB
> disk will show up as.

I can. If I run vgscan and vgchange manually, the volums show up.

> Then, make sure to call /etc/init.d/lvm start *after* the USB device is
> available (that might well mean you need to call /etc/init.d/lvm start
> twice...)
>
>> have udev rules to give it a persistent name, so udev is set up to some
>> extent. What I need now is to be able to execute some script (presumably
>> from udev) when this drive is detected.
>
> Well, you could call /etc/init.d/lvm start.  That will make all lv present
> in the system active (as long as /etc/lvm/lvm.conf allows lvm to find the
> pvs and consequently, vgs...)

You've misunderstood my question. I know what needs to be run. I just don't
know how to arrange for it to happen automatically when the USB disk is
detected.

Thanks

Andy



Reply to: