From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nitin Vengurlekar Subject: udev.rules template for dm. Date: Mon, 01 May 2006 16:55:34 -0500 Message-ID: <445683D6.6070307@oracle.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0990962236==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: dm-devel@redhat.com List-Id: dm-devel.ids This is a multi-part message in MIME format. --===============0990962236== Content-Type: multipart/alternative; boundary="------------020804080408080409070308" This is a multi-part message in MIME format. --------------020804080408080409070308 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I'm configuring dm w/ udev, everything is working great! Just one question: when I saw the udev.rules file, it had the following in it, is this the default (did it get configured by the dm install)? Also cant a more simple template be used ? thx in advance. KERNEL="dm-[0-9]*", PROGRAM="/sbin/dmsetup ls --target multipath --exec basename -j %M -m %m", RESULT="?*", NAME="%k", SYMLINK="mpath/%c" KERNEL="dm-[0-9]*", PROGRAM="dmsetup info -c --noheadings -j %M -m %m | grep -q .*:.*:.*:.*:.*:.*:.*:part[0-9]*-mpath-", PROGRAM="/sbin/dmsetup ls --target line ar --exec basename -j %M -m %m", RESULT="?*", NAME="%k", SYMLINK="mpath/%c" --------------020804080408080409070308 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I'm configuring dm w/ udev, everything is working great!   Just one question:
when I saw the udev.rules file, it had the following in it, is this the default (did it get configured by the dm install)?  Also cant a more simple template be used ?

thx in advance.

KERNEL="dm-[0-9]*", PROGRAM="/sbin/dmsetup ls --target multipath --exec basename  -j %M -m %m", RESULT="?*", NAME="%k", SYMLINK="mpath/%c"

 

KERNEL="dm-[0-9]*", PROGRAM="dmsetup info -c --noheadings -j %M -m %m | grep –q .*:.*:.*:.*:.*:.*:.*:part[0-9]*-mpath-", PROGRAM="/sbin/dmsetup ls --target line ar --exec basename -j %M -m %m", RESULT="?*", NAME="%k", SYMLINK="mpath/%c"


--------------020804080408080409070308-- --===============0990962236== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============0990962236==--