~xnox/ubuntu/quantal/mdadm/merge

« back to all changes in this revision

Viewing changes to tests/03r0assem

  • Committer: Dmitrijs Ledkovs
  • Author(s): Surbhi Palande
  • Date: 2010-09-30 17:46:19 UTC
  • mfrom: (1.1.25 sid)
  • Revision ID: dmitrijs.ledkovs@canonical.com-20100930174619-cqsokylnluraiyr8
Tags: 3.1.4-1+8efb9d1ubuntu1
* Merge from debian unstable. (LP: #603582) 
* Remaining changes
  - Assemble.c, config.c: upgraded to the mdadm-3.1.4 version of these files
    from Debian.
  - 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/rules: kept debian's switch to using dh_lintian
  - debian/mdadm.links, debian/mdadm.manpages: dropped owing to the fact
    that these are not used in Ubuntu. Also dropped the build-dep on docbook
    to man)
  - 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 Ubuntus 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

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
mdadm -CR $md2 -l0 -n3 $dev0 $dev1 $dev2 
8
8
check raid0
9
 
tst="testdev $md2 3 $mdsize0 64"
 
9
tst="testdev $md2 3 $mdsize1_l 512"
10
10
$tst
11
11
uuid=`mdadm -Db $md2 | sed 's/.*UUID=//'`
12
12
mdadm -S $md2
19
19
$tst
20
20
mdadm -S $md2
21
21
 
22
 
mdadm --assemble $md2 --super-minor=2 $devlist 
 
22
mdadm --assemble $md2 --name=2 $devlist 
23
23
$tst
24
24
mdadm -S $md2
25
25
 
35
35
 
36
36
37
37
  echo DEVICE $devlist
38
 
  echo array $md2 super-minor=2
 
38
  echo array $md2 name=2
39
39
} > $conf
40
40
 
41
41
mdadm -As -c $conf $md2 
65
65
mdadm -S $md2
66
66
 
67
67
 
68
 
### Now for version 1...
 
68
### Now for version 0...
69
69
 
70
70
mdadm --zero-superblock $dev0 $dev1 $dev2
71
 
mdadm -CR $md2 -l0 --metadata=1.0 -n3 $dev0 $dev1 $dev2 
 
71
mdadm -CR $md2 -l0 --metadata=0.90 -n3 $dev0 $dev1 $dev2 
72
72
check raid0
73
 
tst="testdev $md2 3 $mdsize1 64"
 
73
tst="testdev $md2 3 $mdsize0 512"
74
74
$tst
75
75
 
76
76
uuid=`mdadm -Db $md2 | sed 's/.*UUID=//'`
84
84
$tst
85
85
mdadm -S $md2
86
86
 
87
 
# version 1 has no super-minor
88
 
# mdadm --assemble $md2 --super-minor=2 $devlist # 
89
 
# $tst
90
 
# mdadm -S $md2
 
87
mdadm --assemble $md2 --super-minor=2 $devlist # 
 
88
$tst
 
89
mdadm -S $md2
91
90
 
92
91
conf=$targetdir/mdadm.conf
93
92
99
98
$tst
100
99
mdadm -S $md2
101
100
 
102
 
#{ 
103
 
#  echo DEVICE $devlist
104
 
#  echo array $md2 super-minor=2
105
 
#} > $conf
106
 
#
107
 
#mdadm -As -c $conf $md2 
108
 
#$tst
109
 
#mdadm -S $md2
 
101
 
102
  echo DEVICE $devlist
 
103
  echo array $md2 super-minor=2
 
104
} > $conf
 
105
 
 
106
mdadm -As -c $conf $md2 
 
107
$tst
 
108
mdadm -S $md2
110
109
 
111
110
 
112
111
129
128
mdadm --assemble --scan --config=$conf $md2 
130
129
$tst
131
130
mdadm -S $md2
 
131
 
 
132
# Now use incremental assembly.
 
133
mdadm -I --config=$conf $dev0
 
134
mdadm -I --config=$conf $dev1
 
135
mdadm -I --config=$conf $dev2
 
136
$tst
 
137
mdadm -S $md2