Re: Udev, USB and LVM

2006-01-12 Thread Andy Hawkins
Hi, In article <[EMAIL PROTECTED]>, John L Fjellstad<[EMAIL PROTECTED]> wrote: > 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. Thanks, I'll check that out. Andy -- To UNS

Re: Udev, USB and LVM

2006-01-12 Thread Andy Hawkins
Hi, In article <[EMAIL PROTECTED]>, John L Fjellstad<[EMAIL PROTECTED]> wrote: > PROGRAM key is used for rule matching. Yeah, I spotted that. However, there is a 'RUN' key. However, this isn't mentioned in the version of udev in debian stable. I tried installing udev from backports.or

Re: Udev, USB and LVM

2006-01-12 Thread John L Fjellstad
Andrew Sackville-West <[EMAIL PROTECTED]> writes: > this is probably no help, but I think you can write udev rules to > handle this stuff. I know there is a PROGRAM key in udev that might > serve your purpose. Unfortunately I'm only just learning about > udev. check the archives for more info and

Re: Udev, USB and LVM

2006-01-12 Thread John L Fjellstad
Andy Hawkins <[EMAIL PROTECTED]> 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

Re: Udev, USB and LVM

2006-01-11 Thread Andrew Sackville-West
On Wed, 11 Jan 2006 16:52:38 + (UTC) Andy Hawkins <[EMAIL PROTECTED]> wrote: > > 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. this is probably no help, but I think you can wr

Re: Udev, USB and LVM

2006-01-11 Thread Andy Hawkins
Hi, In article <[EMAIL PROTECTED]>, Henrique de Moraes Holschuh<[EMAIL PROTECTED]> 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 vol

Re: Udev, USB and LVM

2006-01-11 Thread Henrique de Moraes Holschuh
On Wed, 11 Jan 2006, Andy Hawkins wrote: > 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 First, make sure /etc/lvm/lvm.conf allows scanning of the devices the USB disk will show up as. Then, mak

Udev, USB and LVM

2006-01-11 Thread Andy Hawkins
Hi, I recently connected up a new USB disk to my Debian box, and started using LVM to manage logical volumes on it. However, I noticed that the LVM information isn't updated automatically at boot time when this drive is detected. Can anyone tell me what I need to do (presumably in udev) to arran