I wish I could just tell you how to do it. It is possible as far as I know.
The trick should be the SYSFS option and to find where in sysfs you can find the fs uuid. Really don't remember anymore. Disclaimer: In your case it's fine. But I am afraid that mounting-by-something has it's own little hell when you run multipathed storage. Florian 2012/6/27 Chris Mosetick <[email protected]>: > Hi, > I'm looking for help creating a udev rule on a CentOS 5.x machine. The rule > only needs a couple things. > > Imagine we have a bunch of disks, with one file system on each disk. Each > file system has a UUID, and I know the UUID of each file system ahead of > time. > > The udev rule needs to do something like: > If a disk is connected to the system and it has a file system on it with > UUID = xxxx.-xxxx-xxx...1 > or = UUID of xxxx-xxxx-xxxx...2 > and so forth, > If the above happens, mount the disk at /some-mount-point > > Also, the disks are connected via E-SATA. > > This should be achievable with a udev rule calling a program, something > like: blkid -o value -s UUID or possibly using the /dev/disk/by-uuid > symlinks > > I've been doing some research but been having trouble because a lot of stuff > I've been seeing will try to mount any disk connected, or try to use a > partition label. I'm looking for a way to only automatically mount disks > with specific UUID's. Other disks connected into the same E-SATA ports > should just sit there and do nothing. > > Thanks in advance, any help is appreciated. > > > _______________________________________________ > Discuss mailing list > [email protected] > https://lists.lopsa.org/cgi-bin/mailman/listinfo/discuss > This list provided by the League of Professional System Administrators > http://lopsa.org/ > -- the purpose of libvirt is to provide an abstraction layer hiding all xen features added since 2006 until they were finally understood and copied by the kvm devs. _______________________________________________ Discuss mailing list [email protected] https://lists.lopsa.org/cgi-bin/mailman/listinfo/discuss This list provided by the League of Professional System Administrators http://lopsa.org/
