summaryrefslogtreecommitdiffstats
path: root/misc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tests: increase sleeps from 1s to 2sMateusz Kusiak2024-12-131-1/+1
| | | | | | | | | | | The issue here is that some of the tests sporadically fail due to things being still processed. Default 1s delays proven not to be sufficient for newly created CI, as tests tend to ocassionally fail. This patch increases default 1s sleep to 2s, to hopefully get rid of sporadical fails. Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com>
* mdadm: Stop mdcheck_continue timer when mdcheck_start service can finish checkXiao Ni2023-09-011-1/+7
| | | | | | | | | | | | mdcheck_continue is triggered by mdcheck_start timer. It's used to continue check action if the raid is too big and mdcheck_start service can't finish check action. If mdcheck start can finish check action, it doesn't need to mdcheck continue service anymore. So stop it when mdcheck start service can finish check action. Signed-off-by: Xiao Ni <xni@redhat.com> Acked-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
* mdcheck: Log when doneDonald Buczek2020-05-141-0/+2
| | | | | | | | | | | | | | | | | | Currently mdcheck (when called with `--duration`) logs only the beginning of the check, the pausing and the continuation but not the completion. So, log the completion, too, so that it can be determined how long the raid check took. 2020-05-08T18:00:02+02:00 deadpool root: mdcheck start checking /dev/md0 2020-05-08T18:00:02+02:00 deadpool root: mdcheck start checking /dev/md1 2020-05-09T15:32:04+02:00 deadpool root: mdcheck finished checking /dev/md1 2020-05-09T17:38:04+02:00 deadpool root: mdcheck finished checking /dev/md0 Cc: linux-raid@vger.kernel.org Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
* mdcheck: improve cleanupNeilBrown2017-10-101-1/+1
| | | | | | | We should remove the tmp file on signals as well as on exit. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
* mdcheck: add some logging.NeilBrown2017-10-101-2/+7
| | | | | | | | Use 'logger' to report when mdcheck starts, stops, or continues the check on an array. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
* mdcheck: be careful when sourcing the output of "mdadm --detail --export"NeilBrown2015-02-031-1/+1
| | | | | | | | | | The output of "mdadm --detail --export" isn't quoted properly so fields that contain spaces can be a problem. We only want the MD_UUID field, and it has a very well defined format with no spaces. So use 'grep' to limit the output to just that. Signed-off-by: NeilBrown <neilb@suse.de>
* mdcheck: don't git error if not /dev/md?* devices exist.NeilBrown2014-11-031-0/+1
| | | | | | | If there are no such devices, the 'for' will set '$dev' to '/dev/md?*', which should be ignored. Signed-off-by: NeilBrown <neilb@suse.de>
* mdcheck: don't pass the '+' to "date".NeilBrown2014-05-261-2/+2
| | | | | | It isn't needed, makes is harder to describe what --duration does. Signed-off-by: NeilBrown <neilb@suse.de>
* mdcheck: new script to help with regular checks of md arrays.NeilBrown2014-05-221-0/+158
| | | | | | | | | | | | | | | | | | | This script allows arrays to be 'checked' for a limited amount of time on a regular basis. For example, running mdcheck --duration 6hours early every Sunday morning and mdcheck --continue 6hours ever other morning will check all arrays every week, but if that take more than 6 hours, will won't run into the day, but will be continued the next morning, and the next ... etc. Signed-off-by: NeilBrown <neilb@suse.de>
* mdadm-1.8.0mdadm-1.8.0Neil Brown2004-11-011-0/+27