I set up a RAID using this guide: https://wiki.debian.org/SoftwareRAID on a minimal Stretch install.
After that, I cryptsetup luksFormat'ed /dev/md0 (without using LVM).
The problem is that the encrypted partition isn't unlocked automatically.
My…
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
#just check if it writes to the file
echo "just a Test"…
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=$!
while
progress=$(cat /proc/mdstat |grep -oE…
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.com/man8/mdadm.8.php) but very unsure where to…
I'm trying to control mdadm from a Python script, and have a call similar to this:
subprocess.Popen('mdadm --create /dev/md1 --raid-devices=4 /dev/md-0 /dev/md-1 /dev/md-2 /dev/md-3'.split())
mdadm then complains with mdadm: You have listed more…