https://github.com/david-lor/mdck
mdadm check & repair tool
https://github.com/david-lor/mdck
Last synced: 6 months ago
JSON representation
mdadm check & repair tool
- Host: GitHub
- URL: https://github.com/david-lor/mdck
- Owner: David-Lor
- License: isc
- Created: 2023-12-25T16:31:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-11T12:03:42.000Z (almost 2 years ago)
- Last Synced: 2025-03-29T08:44:09.677Z (10 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# mdadm check & repair tool
mdck is a Python app that checks and repairs mdadm arrays.
## Running
### Requirements
- Updated Python 3 (tested with Python 3.10)
- [required packages](requirements.txt)
### Running
```bash
MDADM_DEVICE=md0 python .
```
#### Callback execution
mdck can run a callback script for each status update (including the percentage completion).
The relevant update data is passed as the first call argument, in JSON format.
Example:
```bash
#!/bin/bash
# Location: "callback.sh" in current directory.
# This will log each received update in a "mdck.log" file.
echo "[$(date)] $1" >> mdck.log
```
```bash
MDADM_DEVICE=md0 MDADM_UPDATES_CALLBACK_PATH=callback.sh python .
```
## Changelog
- 0.0.1
- Initial release: check & repair, callback script execution