]> git.ipfire.org Git - thirdparty/mdadm.git/blame - tests/05r1-remove-internalbitmap-v1a
Create: support --readonly flag.
[thirdparty/mdadm.git] / tests / 05r1-remove-internalbitmap-v1a
CommitLineData
5e311406
JS
1#
2# create a raid1 with bitmap, remove the bitmap and verify it is still
3# gone when re-assembling the array
4#
5mdadm --create --run $md0 --metadata=1.0 --level=1 -n2 --bitmap internal --bitmap-chunk=4 --delay=1 $dev1 $dev2
6check wait
7check bitmap
8testdev $md0 1 $mdsize1b 64
9mdadm -Gb none $md0
10check nobitmap
11testdev $md0 1 $mdsize1b 64
12mdadm -S $md0
13
14# Re-assemble the array and verify the bitmap is still present
15mdadm --assemble $md0 $dev1 $dev2
16check nobitmap
17testdev $md0 1 $mdsize1b 64
18mdadm -S $md0