cancel
Showing results for 
Search instead for 
Did you mean: 

multipath ??

 
MikeL_4
Super Advisor

multipath ??

I am trying to setup multipathing for raw devices on Red Hat 5.3 server...

Not being that familiar with scripting details, can anyone tell me what dm-[0-9]* means in the file: 40-multipath.rules ??

# multipath wants the devmaps presented as meaninglful device names
# so name them after their devmap name
SUBSYSTEM!="block", GOTO="end_mpath"
KERNEL!="dm-[0-9]*", ACTION=="add", PROGRAM=="/bin/bash -c '/sbin/lsmod | /bin/grep ^dm_multipath'", RUN+="/sbin/multipath -v0 %M:%m"
KERNEL!="dm-[0-9]*", GOTO="end_mpath"
PROGRAM!="/sbin/mpath_wait %M %m", GOTO="end_mpath"
ACTION=="add", RUN+="/sbin/dmsetup ls --target multipath --exec '/sbin/kpartx -a -p p' -j %M -m %m"
PROGRAM=="/sbin/dmsetup ls --target multipath --exec /bin/basename -j %M -m %m", RESULT=="?*", NAME="%k", SYMLINK="mpath/%c", GOTO="check_oracle"
PROGRAM!="/bin/bash -c '/sbin/dmsetup info -c --noheadings -j %M -m %m | /bin/grep -q .*:.*:.*:.*:.*:.*:.*:part[0-9]*-mpath-'", GOTO="end_mpath"
PROGRAM=="/sbin/dmsetup ls --target linear --exec /bin/basename -j %M -m %m", NAME="%k", RESULT=="?*", SYMLINK="mpath/%c", OPTIONS="last_rule"
GOTO="end_mpath"
LABEL="check_oracle"
RESULT=="mpath*", OWNER="oracle", GROUP="dba", MODE="660"
RESULT=="mpath7p2", OWNER="root", GROUP="root", MODE="660"
OPTIONS="last_rule"
LABEL="end_mpath"
2 REPLIES
Steven E. Protter
Exalted Contributor

Re: multipath ??

Shalom,

dm device multi-path

It is just a default file name that Linux uses to indicate the path options.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Heironimus
Honored Contributor

Re: multipath ??

It's a glob pattern for kernel device names, dm-# will be device mapper entries. The full syntax for these files is covered in the udev documentation under /usr/share/doc/udev-095.