diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2010-11-01 11:04:04 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2010-11-01 11:05:40 +0000 |
commit | 13904e0aa59dc54824925ab0f113c6a6511cfb5d (patch) | |
tree | c74c46c44de39ffb86535ec72aeb918a10d32989 /testing | |
parent | 13a5b1d3546fafa4f5601abaa0469bbab5b3efe5 (diff) | |
download | aports-13904e0aa59dc54824925ab0f113c6a6511cfb5d.tar.bz2 aports-13904e0aa59dc54824925ab0f113c6a6511cfb5d.tar.xz |
testing/multipath-tools: default config and init.d added
Diffstat (limited to 'testing')
-rw-r--r-- | testing/multipath-tools/APKBUILD | 5 | ||||
-rw-r--r-- | testing/multipath-tools/multipath-tools.conf | 113 | ||||
-rw-r--r-- | testing/multipath-tools/multipath-tools.initd | 20 |
3 files changed, 136 insertions, 2 deletions
diff --git a/testing/multipath-tools/APKBUILD b/testing/multipath-tools/APKBUILD index db13ab0243..621351ca4e 100644 --- a/testing/multipath-tools/APKBUILD +++ b/testing/multipath-tools/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Leonardo Arena <rnalrd@gmail.com> pkgname="multipath-tools" pkgver=0.4.8 -pkgrel=5 +pkgrel=6 pkgdesc="Device Mapper Multipathing Driver" url="http://christophe.varoqui.free.fr/" license="GPL" @@ -39,7 +39,8 @@ build() { package() { cd $_builddir make DESTDIR="$pkgdir" install - install -D -m644 ../../multipath.conf $pkgdir/etc/multipath.conf + install -D -m644 ../../$pkgname.conf $pkgdir/etc/multipath.conf + install -D -m755 ../../$pkgname.initd $pkgdir/etc/init.d/multipathd } md5sums="3563b863b408d07c46929b6e8c2c248c multipath-tools-0.4.8.tar.bz2 diff --git a/testing/multipath-tools/multipath-tools.conf b/testing/multipath-tools/multipath-tools.conf new file mode 100644 index 0000000000..11194176df --- /dev/null +++ b/testing/multipath-tools/multipath-tools.conf @@ -0,0 +1,113 @@ +## +## This is a template multipath-tools configuration file +## Uncomment the lines relevent to your environment +## +#defaults { +# udev_dir /dev +# polling_interval 10 +# selector "round-robin 0" +# path_grouping_policy multibus +# getuid_callout "/lib/udev/scsi_id -g -u -s /block/%n" +# prio_callout /bin/true +# path_checker directio +# rr_min_io 100 +# rr_weight priorities +# failback immediate +# no_path_retry fail +# user_friendly_names no +#} +#blacklist { +# wwid 26353900f02796769 +# devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*" +# devnode "^hd[a-z][[0-9]*]" +# devnode "^cciss!c[0-9]d[0-9]*[p[0-9]*]" +# device { +# vendor DEC.* +# product MSA[15]00 +# } +#} +#blacklist_exceptions { +# devnode "^dasd[c-d]+[0-9]*" +# wwid "IBM.75000000092461.4d00.34" +#} +#multipaths { +# multipath { +# wwid 3600508b4000156d700012000000b0000 +# alias yellow +# path_grouping_policy multibus +# path_checker directio +# path_selector "round-robin 0" +# failback manual +# rr_weight priorities +# no_path_retry 5 +# rr_min_io 100 +# } +# multipath { +# wwid 1DEC_____321816758474 +# alias red +# } +#} +#devices { +# device { +# vendor "COMPAQ " +# product "HSV110 (C)COMPAQ" +# path_grouping_policy multibus +# getuid_callout "/lib/udev/scsi_id -g -u -s /block/%n" +# path_checker directio +# path_selector "round-robin 0" +# hardware_handler "0" +# failback 15 +# rr_weight priorities +# no_path_retry queue +# rr_min_io 100 +# product_blacklist LUN_Z +# } +# device { +# vendor "COMPAQ " +# product "MSA1000 " +# path_grouping_policy multibus +# } +#} + +#defaults { +# udev_dir /dev +# user_friendly_names yes +#} + +#blacklist { +# devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*" +# devnode "^hd[a-z]" +# devnode "^sda" +# devnode "^sdb" +# devnode "^sdc" +# devnode "^sdd" +# devnode "^sda[0-9]" +# devnode "^sdb[0-9]" +# device { +# vendor DELL +# product "PERC|Universal" +# } +#} + +#devices { +# device { +# vendor DELL +# product MD3000i +# hardware_handler "1 rdac" +# path_checker rdac +# path_grouping_policy group_by_prio +# prio_callout "/sbin/mpath_prio_rdac /dev/%n" +# failback immediate +# getuid_callout "/lib/udev/scsi_id -g -u -s /block/%n" +# } +#} + +#multipaths { +# multipath { +# device { +# vendor DELL +# product MD3000i +# } +# } +#} + diff --git a/testing/multipath-tools/multipath-tools.initd b/testing/multipath-tools/multipath-tools.initd new file mode 100644 index 0000000000..931bc313d0 --- /dev/null +++ b/testing/multipath-tools/multipath-tools.initd @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/sys-fs/multipath-tools/files/rc-multipathd,v 1.5 2009/03/17 22:48:13 solar Exp $ + +depend() { + after firewall +} + +start() { + ebegin "Starting multipathd" + start-stop-daemon --start --quiet --exec /sbin/multipathd + eend $? +} + +stop() { + ebegin "Stopping multipathd" + start-stop-daemon --stop --quiet --pidfile /var/run/multipathd.pid + eend $? +} |