Questions tagged [mdadm]
The Linux software RAID management tool. QUESTIONS WITH THIS TAG MUST BE RELATED TO PROGRAMMING. General questions about setup, maintenance, performance, etc. of raid arrays are off-topic on Stackoverflow.
mdadm
4
questions
0
votes
0
answers
363
views
How to wait for mdadm RAID array's resync process to fully complete?
I currently have a logic to wait for the resync process to finish by looking at /sys/block/mdXXX/md/raid_state to be clean and assume that the resync has finished. However, I don't think this is ...
2
votes
3
answers
769
views
no mdadm -D output in crontab
I have the following script:
#!/bin/bash
# wait, just in case hdd md0 in not mountet yet
sleep 30
# write Raid state in log-file
mdadm -D /dev/md0 > /home/main_usr/myScripts/raidHealth.log
#...
1
vote
1
answer
2k
views
Kill watch from bash
I need to be able to call this:
watch -n1 cat /proc/mdstat
from bash.
For raid creating watching (after mdadm --create etc.), and then kill it then building process will end.
#!/bin/bash
#PID=$!...
2
votes
1
answer
3k
views
Auto yes to raid5 array script
I am working on a script to install a array raid5. I am having trouble with inserting auto=yes when the script ask: if I want to continue creating array. I tried --auto=yes (http://www.linuxmanpages....