| 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=1.0 --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 |