Mark raid array as clean at shutdown

This commit is contained in:
Thomas Trepl (Moody) 2022-07-23 22:42:36 +02:00
parent d060b33545
commit 68e4fd59b2
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2022-07-23 Thomas Trepl <thomas@linuxfromscratch.org>
* Mark an raid array clean when root (/) has been remounted
r/o when system goes down. Otherwise, array does remain
always 'dirty', causing a resync at next boot.
2022-03-24 Pierre Labastie <pierre dot labastie at neuf dot fr>
* New semantics for K and S scripts:
- S scripts only started if not already marked S in the previous runlevel

View File

@ -67,6 +67,11 @@ case "${1}" in
# Make all LVM volume groups unavailable, if appropriate
# This fails if swap or / are on an LVM partition
#if [ -x /sbin/vgchange ]; then /sbin/vgchange -an > /dev/null; fi
if [ -r /etc/mdadm.conf ]; then
log_info_msg "Mark arrays as clean..."
mdadm --wait-clean --scan
evaluate_retval
fi
;;
*)