February 12, 201016 yr Hi all. I have scrip in /etc/cron.hourly which check open files. If nothing is open files then call powerdown. But if parity check is progress then is not open (output of lsof command/program) and my script call powerdown. This is bad. I can check if parity check in progress. How I can programmatically check parity progress? Very thanks for anyu answer
February 12, 201016 yr One way I know of is echo "status" > /proc/mdcmd cat /proc/mdcmd > /tmp/mdcmd.$$ RESYNC=`grep "^mdResync" /tmp/mdcmd.$$ | cut -d "=" -f2` rm -f /tmp/mdcmd.$$ Inspect value of the mdResync. I'm sure there are ways to shorten this, but this is just a quick off the cuff way.
February 12, 201016 yr Author WeeboTech, very thanks for answer. I try it and write result if this working fine.
Archived
This topic is now archived and is closed to further replies.