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