Re: Udev, USB and LVM
Andy Hawkins <andy@gently.org.uk> writes:
> Can anyone tell me what I need to do (presumably in udev) to arrange for
> vgscan and vgchange to be exectued when this drive is detected? I already
> 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.
Never done this, but you can put scripts into the /etc/dev.d
directory. These are called after a node has been created by udev.
Check the udev man pages.
--
John L. Fjellstad
web: http://www.fjellstad.org/ Quis custodiet ipsos custodes
Reply to: