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 | |
parent | 13a5b1d3546fafa4f5601abaa0469bbab5b3efe5 (diff) | |
download | alpine_aports-13904e0aa59dc54824925ab0f113c6a6511cfb5d.tar.bz2 alpine_aports-13904e0aa59dc54824925ab0f113c6a6511cfb5d.tar.xz alpine_aports-13904e0aa59dc54824925ab0f113c6a6511cfb5d.zip |
testing/multipath-tools: default config and init.d added
-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 @@ | |||
2 | # Maintainer: Leonardo Arena <rnalrd@gmail.com> | 2 | # Maintainer: Leonardo Arena <rnalrd@gmail.com> |
3 | pkgname="multipath-tools" | 3 | pkgname="multipath-tools" |
4 | pkgver=0.4.8 | 4 | pkgver=0.4.8 |
5 | pkgrel=5 | 5 | pkgrel=6 |
6 | pkgdesc="Device Mapper Multipathing Driver" | 6 | pkgdesc="Device Mapper Multipathing Driver" |
7 | url="http://christophe.varoqui.free.fr/" | 7 | url="http://christophe.varoqui.free.fr/" |
8 | license="GPL" | 8 | license="GPL" |
@@ -39,7 +39,8 @@ build() { | |||
39 | package() { | 39 | package() { |
40 | cd $_builddir | 40 | cd $_builddir |
41 | make DESTDIR="$pkgdir" install | 41 | make DESTDIR="$pkgdir" install |
42 | install -D -m644 ../../multipath.conf $pkgdir/etc/multipath.conf | 42 | install -D -m644 ../../$pkgname.conf $pkgdir/etc/multipath.conf |
43 | install -D -m755 ../../$pkgname.initd $pkgdir/etc/init.d/multipathd | ||
43 | } | 44 | } |
44 | 45 | ||
45 | md5sums="3563b863b408d07c46929b6e8c2c248c multipath-tools-0.4.8.tar.bz2 | 46 | 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 @@ | |||
1 | ## | ||
2 | ## This is a template multipath-tools configuration file | ||
3 | ## Uncomment the lines relevent to your environment | ||
4 | ## | ||
5 | #defaults { | ||
6 | # udev_dir /dev | ||
7 | # polling_interval 10 | ||
8 | # selector "round-robin 0" | ||
9 | # path_grouping_policy multibus | ||
10 | # getuid_callout "/lib/udev/scsi_id -g -u -s /block/%n" | ||
11 | # prio_callout /bin/true | ||
12 | # path_checker directio | ||
13 | # rr_min_io 100 | ||
14 | # rr_weight priorities | ||
15 | # failback immediate | ||
16 | # no_path_retry fail | ||
17 | # user_friendly_names no | ||
18 | #} | ||
19 | #blacklist { | ||
20 | # wwid 26353900f02796769 | ||
21 | # devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*" | ||
22 | # devnode "^hd[a-z][[0-9]*]" | ||
23 | # devnode "^cciss!c[0-9]d[0-9]*[p[0-9]*]" | ||
24 | # device { | ||
25 | # vendor DEC.* | ||
26 | # product MSA[15]00 | ||
27 | # } | ||
28 | #} | ||
29 | #blacklist_exceptions { | ||
30 | # devnode "^dasd[c-d]+[0-9]*" | ||
31 | # wwid "IBM.75000000092461.4d00.34" | ||
32 | #} | ||
33 | #multipaths { | ||
34 | # multipath { | ||
35 | # wwid 3600508b4000156d700012000000b0000 | ||
36 | # alias yellow | ||
37 | # path_grouping_policy multibus | ||
38 | # path_checker directio | ||
39 | # path_selector "round-robin 0" | ||
40 | # failback manual | ||
41 | # rr_weight priorities | ||
42 | # no_path_retry 5 | ||
43 | # rr_min_io 100 | ||
44 | # } | ||
45 | # multipath { | ||
46 | # wwid 1DEC_____321816758474 | ||
47 | # alias red | ||
48 | # } | ||
49 | #} | ||
50 | #devices { | ||
51 | # device { | ||
52 | # vendor "COMPAQ " | ||
53 | # product "HSV110 (C)COMPAQ" | ||
54 | # path_grouping_policy multibus | ||
55 | # getuid_callout "/lib/udev/scsi_id -g -u -s /block/%n" | ||
56 | # path_checker directio | ||
57 | # path_selector "round-robin 0" | ||
58 | # hardware_handler "0" | ||
59 | # failback 15 | ||
60 | # rr_weight priorities | ||
61 | # no_path_retry queue | ||
62 | # rr_min_io 100 | ||
63 | # product_blacklist LUN_Z | ||
64 | # } | ||
65 | # device { | ||
66 | # vendor "COMPAQ " | ||
67 | # product "MSA1000 " | ||
68 | # path_grouping_policy multibus | ||
69 | # } | ||
70 | #} | ||
71 | |||
72 | #defaults { | ||
73 | # udev_dir /dev | ||
74 | # user_friendly_names yes | ||
75 | #} | ||
76 | |||
77 | #blacklist { | ||
78 | # devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*" | ||
79 | # devnode "^hd[a-z]" | ||
80 | # devnode "^sda" | ||
81 | # devnode "^sdb" | ||
82 | # devnode "^sdc" | ||
83 | # devnode "^sdd" | ||
84 | # devnode "^sda[0-9]" | ||
85 | # devnode "^sdb[0-9]" | ||
86 | # device { | ||
87 | # vendor DELL | ||
88 | # product "PERC|Universal" | ||
89 | # } | ||
90 | #} | ||
91 | |||
92 | #devices { | ||
93 | # device { | ||
94 | # vendor DELL | ||
95 | # product MD3000i | ||
96 | # hardware_handler "1 rdac" | ||
97 | # path_checker rdac | ||
98 | # path_grouping_policy group_by_prio | ||
99 | # prio_callout "/sbin/mpath_prio_rdac /dev/%n" | ||
100 | # failback immediate | ||
101 | # getuid_callout "/lib/udev/scsi_id -g -u -s /block/%n" | ||
102 | # } | ||
103 | #} | ||
104 | |||
105 | #multipaths { | ||
106 | # multipath { | ||
107 | # device { | ||
108 | # vendor DELL | ||
109 | # product MD3000i | ||
110 | # } | ||
111 | # } | ||
112 | #} | ||
113 | |||
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 @@ | |||
1 | #!/sbin/runscript | ||
2 | # Copyright 1999-2006 Gentoo Foundation | ||
3 | # Distributed under the terms of the GNU General Public License v2 | ||
4 | # $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 $ | ||
5 | |||
6 | depend() { | ||
7 | after firewall | ||
8 | } | ||
9 | |||
10 | start() { | ||
11 | ebegin "Starting multipathd" | ||
12 | start-stop-daemon --start --quiet --exec /sbin/multipathd | ||
13 | eend $? | ||
14 | } | ||
15 | |||
16 | stop() { | ||
17 | ebegin "Stopping multipathd" | ||
18 | start-stop-daemon --stop --quiet --pidfile /var/run/multipathd.pid | ||
19 | eend $? | ||
20 | } | ||