--- rc-orig 2011-07-28 12:50:08.497991933 +0200 +++ rc 2011-07-28 12:50:08.497991933 +0200 @@ -14,6 +14,10 @@ echo "The system is coming up. Please w /sbin/start_udev # Create device-mapper device nodes and scan for LVM volume groups +if [ -x /sbin/mdadm ]; then + /sbin/mdadm --assemble --scan +fi + if [ -x /sbin/lvm ]; then /sbin/vgscan --mknodes --ignorelockingfailure /sbin/vgchange --ignorelockingfailure -a y --- rc.shutdown-orig 2011-07-28 12:50:08.498991924 +0200 +++ rc.shutdown 2011-07-28 12:50:08.498991924 +0200 @@ -44,9 +44,15 @@ fi # Unmount file systems /bin/umount -a -r -t nosysfs,noproc + if [ -x /sbin/lvm ]; then /sbin/vgchange --ignorelockingfailure -a n fi + +if [ -x /sbin/mdadm ]; then + /sbin/mdadm --stop --scan +fi + /bin/umount -a -r # Remount root filesystem read-only