~xnox/ubuntu/quantal/mdadm/merge

« back to all changes in this revision

Viewing changes to tests/10ddf-create

  • Committer: Dmitrijs Ledkovs
  • Author(s): Clint Byrum
  • Date: 2011-12-16 11:06:12 UTC
  • mfrom: (1.1.26 sid)
  • Revision ID: dmitrijs.ledkovs@canonical.com-20111216110612-f91bfvyfvxc1t0rq
Tags: 3.2.2-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Call checks in local-premount to avoid race condition with udev
    and opening a degraded array.
  - d/initramfs/mdadm-functions: Record in /run when boot-degraded 
    question has been asked so that it is only asked once
  - pass --test to mdadm to enable result codes for degraded arrays. 
  - Build udeb with -O2 on ppc64, working around a link error.
  - debian/control: we need udev and util-linux in the right version. We
    also remove the build dependency from quilt and docbook-to-man as both
    are not used in Ubuntus mdadm.
  - debian/initramfs/hook: kept the Ubuntus version for handling the absence
    of active raid arrays in <initramfs>/etc/mdadm/mdadm.conf
  - debian/initramfs/script.local-top.DEBIAN, debian/mdadm-startall,
    debian/mdadm.raid.DEBIAN: removed. udev does its job now instead.
  - debian/mdadm-startall.sgml, debian/mdadm-startall.8: documentation of
    unused startall script
  - debian/mdadm.config, debian/mdadm.postinst - let udev do the handling
    instead. Resolved merge conflict by keeping Ubuntu's version.
  - debian/mdadm.postinst, debian/mdadm.config, initramfs/init-premount:
    boot-degraded enablement; maintain udev starting of RAID devices;
    init-premount hook script for the initramfs, to provide information at
    boot
  - debian/mkconf.in is the older mkconf. Kept the Ubuntu version.
  - debian/rules: Kept Ubuntus version for installing apport hooks, not
    installing un-used startall script and for adding a udev rule
    corresponding to mdadm.
  - debian/install-rc, check.d/_numbers, check.d/root_on_raid: Ubuntu partman
    installer changes
  - debian/presubj: Dropped this unused bug reporting file. Instead use
    source_mdadm.py act as an apport hook for bug handling.
  - rename debian/mdadm.vol_id.udev to debian/mdadm.mdadm-blkid.udev so that
    the rules file ends up with a more reasonable name
  - d/p/debian-changes-3.1.4-1+8efb9d1ubuntu4: mdadm udev rule
    incrementally adds mdadm member when detected. Starting such an
    array in degraded mode is possible by mdadm -IRs. Using mdadm
    -ARs without stopping the array first does nothing when no
    mdarray-unassociated device is available. Using mdadm -IRs to
    start a previously partially assembled array through incremental
    mode. Keeping the mdadm -ARs for assembling arrays which were for
    some reason not assembled through incremental mode (i.e through
    mdadm's udev rule).
* Disabling -fno-strict-aliasing as according to debian bug 375876 it
  has been unnecessary since mdadm 2.5.2
* Dropped changes:
  - applied upstream
  - d/rules: fix FTBFS by adding -Wno-unused-but-set-variable to
    compiler flags until upstream solves the issue. (fixed upstream)
  - d/control: add dependency on initscripts >= 2.88dsf-13.3 to ensure
    /run exists per http://wiki.debian.org/ReleaseGoals/RunDirectory
    (change also done in debian)
* d/rules: add 'man' to build mdadm.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#
8
8
# add some data, tear down the array, reassemble
9
9
# and make sure it is still there.
 
10
set -e
10
11
 
11
12
mdadm -CR /dev/md/ddf0 -e ddf -n 5 $dev8 $dev9 $dev10 $dev11 $dev12
12
13
mdadm -CR r0 -l0 -n5 /dev/md/ddf0 -z 5000
 
14
if mdadm -CR r0 -l1 -n2 /dev/md/ddf0 -z 5000
 
15
then echo >&2 create with same name should fail ; exit 1
 
16
fi
13
17
mdadm -CR r1 -l1 -n2 /dev/md/ddf0
14
18
mdadm -CR r5 -l5 -n3 /dev/md/ddf0
15
19
testdev /dev/md/r0 5 5000 512
29
33
mdadm -A /dev/md/ddf0  $dev8 $dev9 $dev10 $dev11 $dev12
30
34
mdadm -I /dev/md/ddf0
31
35
 
 
36
udevadm settle
32
37
s0a=`sha1sum /dev/md/r0`
33
38
s1a=`sha1sum /dev/md/r1`
34
39
s5a=`sha1sum /dev/md/r5`
54
59
# Now try to assemble using mdadm.conf
55
60
mdadm -Asc /var/tmp/mdadm.conf
56
61
check nosync  # This failed once. The raid5 was resyncing.
57
 
 
 
62
udevadm settle
58
63
mdadm -Dbs | sort > /tmp/mdadm.conf
59
64
sort /var/tmp/mdadm.conf | diff /tmp/mdadm.conf -
60
65
mdadm -Ss
69
74
  [ `cat /tmp/cnt` -eq 3 ]
70
75
done
71
76
check nosync
72
 
 
 
77
udevadm settle
73
78
mdadm -Dbs | sort > /tmp/mdadm.conf
74
79
sort /var/tmp/mdadm.conf | diff /tmp/mdadm.conf -
75
80
mdadm -Ss