Commit 20b31f6c authored by Vinicius Ruoso's avatar Vinicius Ruoso

prd_raid: added some comments based on prd_fixraid

Signed-off-by: default avatarVinicius Ruoso <vkr07@c3sl.ufpr.br>
parent 034ec122
......@@ -59,11 +59,18 @@ elif grep -q "_" /proc/mdstat; then
fi
done
# maybe the partition is not there
if test -e /dev/$DISK$PARTITION ; then
# or it's synchronizing
if grep -B1 $MDSTAT /proc/mdstat | grep -q recovery ; then
MSG="$MSG $DISK${PARTITION}_SYNCHRONIZING_RAID"
# or it's waiting for sync
elif grep -A1 $MDSTAT /proc/mdstat | grep -q resync ; then
MSG="$MSG $DISK${PARTITION}_RESYNC_DELAYED"
# or it's symply out of raid
else
MSG="$MSG $DISK${PARTITION}_OUT_OF_RAID"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment