]> git.ipfire.org Git - thirdparty/mdadm.git/blob - tests/10ddf-sudden-degraded
mdadm: improve the dlm locking mechanism for clustered raid
[thirdparty/mdadm.git] / tests / 10ddf-sudden-degraded
1 #
2 # An array is assembled with one device missing.
3 # The other device must be marked as Failed in metadata
4
5 . tests/env-ddf-template
6
7 mdadm -CR $container -e ddf -n 2 $dev8 $dev9
8 ddf_check container 2
9
10 mdadm -CR $member1 -n 2 -l1 $dev8 $dev9
11 mdadm --wait $member1 || true
12 mdadm -Ss
13
14 mdadm -I $dev8
15 mdadm -R $container
16 mkfs $member1
17 # There must be a missing device recorded
18 mdadm --examine $dev8 | grep 'Raid Devices.*--' || exit 1