Package: aoetools Version: 30-3 Severity: wishlist Tags: patch The attached patches allows init script to assemble RAID arrays from AOE components.
Gabor -- System Information: Debian Release: squeeze/sid APT prefers testing-proposed-updates APT policy: (500, 'testing-proposed-updates'), (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages aoetools depends on: ii libc6 2.11.2-7 Embedded GNU C Library: Shared lib ii lsb-base 3.2-23.1 Linux Standard Base 3.2 init scrip aoetools recommends no packages. aoetools suggests no packages. -- Configuration Files: /etc/default/aoetools changed [not included] /etc/init.d/aoetools changed [not included] -- no debconf information
--- aoetools.dist-orig 2009-09-06 01:08:23.000000000 +0200 +++ aoetools 2010-12-08 10:15:05.149207916 +0100 @@ -112,6 +112,23 @@ echo fi + if [ ! -x /sbin/mdadm -a -n "$RAID_ARRAYS" ] + then + echo + echo "/sbin/mdadm is not present. Please install mdadm package and try again." >&2 + echo "RAID_ARRAYS option is ignored." >&2 + RAID_ARRAYS= + fi + + if [ -n "$RAID_ARRAYS" ] + then + echo "Assembling RAID arrays..." + for md in "$RAID_ARRAYS" + do + /sbin/mdadm --assemble $md --scan + done + fi + if [ ! -x "/sbin/vgchange" -a -n "$LVMGROUPS" ] then echo @@ -151,6 +168,15 @@ done fi + if [ -x /sbin/mdadm -a -n "$RAID_ARRAYS" ] + then + echo "Stopping RAID arrays..." + for md in "$RAID_ARRAYS" + do + /sbin/mdadm --stop /dev/$md + done + fi + if [ -n "$LVMGROUPS" ] then for vg in "$LVMGROUPS"; do
--- aoetools.dist-orig 2010-12-08 10:21:54.181207257 +0100 +++ aoetools 2010-12-08 10:04:22.825210185 +0100 @@ -8,6 +8,11 @@ # will use any network interface for AoE traffic. INTERFACES="eth0" +# Enter a list of RAID arrays to be activated after AoE volumes are ready, +# separated by spaces (without /dev/ prefix) +# It may be blank. +RAID_ARRAYS=md0 + # Enter a list of LVM2 volume groups to be activated after AoE volumes are ready, separated by spaces. # It can be blank, i.e., "". LVMGROUPS=""