linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rules for EVMS volumes
@ 2006-05-01 15:06 Hai Zaar
  2006-05-01 15:43 ` Alexander E. Patrakov
  2006-05-01 15:45 ` Hai Zaar
  0 siblings, 2 replies; 3+ messages in thread
From: Hai Zaar @ 2006-05-01 15:06 UTC (permalink / raw)
  To: linux-hotplug

Hi!

I've wanted EVMS volumes to show in /dev/disk. So I've created the
following rules and placed them in /etc/udev/rules.d/61-evms.rules
(right after persistent rules).

KERNEL="dm-[0-9]*",    ACTION="add", IMPORT{program}="/bin/bash -c
'echo DMNAME=$$(/sbin/dmsetup info -c --noopencount --noheadings -o
name -j %M -m %m)'"
KERNEL="dm-[0-9]*",    ACTION="add", IMPORT{program}="/sbin/vol_id
--export $tempnode"
KERNEL="dm-[0-9]*",    ACTION="add",
ENV{ID_FS_UUID}="?*",PROGRAM="/bin/test -e /dev/evms/$env{DMNAME}",  
     SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
KERNEL="dm-[0-9]*",    ACTION="add",
ENV{ID_FS_LABEL_SAFE}="?*",PROGRAM="/bin/test -e
/dev/evms/$env{DMNAME}", 
SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"

Although it seems to work, I'd like to hear your comments if you have any.

Also I've wrote a small article
http://zaar.blogspot.com/2006/05/fine-grained-evms-device-nodes.html
which explains why and how I've come to this.
---------------------------------------------------
System: LFS-based, kernel 2.6.15, udev-0.8.1
--
Zaar


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-05-01 15:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-01 15:06 rules for EVMS volumes Hai Zaar
2006-05-01 15:43 ` Alexander E. Patrakov
2006-05-01 15:45 ` Hai Zaar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).