summaryrefslogtreecommitdiffstats
path: root/tests/07changelevels (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mdadm/tests: 07changelevels fixXiao Ni2024-09-231-15/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are five changes to this case. 1. remove testdev check. It can't work anymore and check if it's a block device directly. 2. It can't change level and chunk size at the same time 3. Sleep more than 10s before check wait. The test devices are small. Sometimes it can finish so quickly once the reshape just starts. mdadm will be stuck before it waits reshape to start. So the sync speed is limited. And it restores the sync speed when it waits reshape to finish. It's good for case without backup file. It uses systemd service mdadm-grow-continue to monitor reshape progress when specifying backup file. If reshape finishes so quickly before it starts monitoring reshape progress, the daemon will be stuck too. Because reshape_progress is 0 which means the reshape hasn't been started. So give more time to let service can get right information from kernel space. But before getting these information. It needs to suspend array. At the same time the reshape is running. The kernel reshape daemon will update metadata 10s. So it needs to limit the sync speed more than 10s before restoring sync speed. Then systemd service can suspend array and start monitoring reshape progress. 4. Wait until mdadm-grow-continue service exits mdadm --wait doesn't wait systemd service. For the case that needs backup file, systemd service deletes the backup file after reshape finishes. In this test case, it runs next case when reshape finishes. And it fails because it can't create backup file because the backup file exits. 5. Don't reshape from raid5 to raid1. It can't work now. Signed-off-by: Xiao Ni <xni@redhat.com> Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
* Remove some trailing white spaceNeilBrown2015-07-021-1/+1
| | | | | | It looks ugly in my editor. Signed-off-by: NeilBrown <neilb@suse.de>
* tests: wait a bit long for reshape to complete.NeilBrown2015-05-251-1/+2
| | | | | | | As the kernel now does less locking, 'check wait' doesn't always wait long enough. Add some pauses. Signed-off-by: NeilBrown <neilb@suse.de>
* Tests: adjust for recent changes.NeilBrown2012-11-201-2/+8
| | | | | | | | | | | | commit cb19a251a581fe78dcddd1d95dca4d8cb7664819 super1: reserve at least 2 chunks for reshape headroom. reserved more space in a RAID5, so we need to update to array sizes when reshaping. Also make sure reshape tests we change the shape: raid5->raid1 was failing and we didn't notice. Signed-off-by: NeilBrown <neilb@suse.de>
* More fixes for tests.NeilBrown2011-06-161-1/+1
| | | | | | Some more fixes to help some tests run properly. Signed-off-by: NeilBrown <neilb@suse.de>
* tests: adjust sizes for new defaultsNeilBrown2010-03-101-2/+2
| | | | | | | Default metadata type is now 1.2, and we sometimes add extra alignment before the data section, so adjust tests for these changes. Signed-off-by: NeilBrown <neilb@suse.de>
* Change default metadata from 0.90 to 1.1NeilBrown2009-11-171-7/+7
| | | | | | | | | 1.1 is more flexible in a number of ways and is safer. 0.90 is still fully supported. 1.0 should possibly be used for RAID1 arrays that you want to boot off, depending on your boot loader. Signed-off-by: NeilBrown <neilb@suse.de>
* Increase default chunk size to 512KNeilBrown2009-11-171-2/+2
| | | | | | | | | | | This seems more appropriate for current (and recent) model drives than 64K. 64K is still the default for '--build' as changing that could corrupt data. 64K is also the default rounding for 'linear' on kernels older than 2.6.16. Signed-off-by: NeilBrown <neilb@suse.de>
* test changelevel: add tests for changing degraded arrays.NeilBrown2009-10-121-0/+56
| | | | Signed-off-by: NeilBrown <neilb@suse.de>
* Test level changes and related reshaping.NeilBrown2009-10-121-0/+51
Signed-off-by: NeilBrown <neilb@suse.de>