Re: troubleshooting RAID-1 array break+resync on boot after upgrades to linux kernel v5.0.x ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/12/19 12:55 PM, Wols Lists wrote:
> My only guess is that the upgrade is then causing an unclean shutdown,
> which is making the system think the two drives aren't properly mirrored
> at boot.

fwiw, here it's opensuse.  initrd's managed by dracut.

there's this in-place,

	/usr/lib/dracut/modules.d/90mdraid/md-shutdown.sh
		#!/bin/sh

		_do_md_shutdown() {
		    local ret
		    local final=$1
		    local _offroot=$(strstr "$(mdadm --help-options 2>&1)" offroot && echo --offroot)
		    info "Waiting for mdraid devices to be clean."
		    mdadm $_offroot -vv --wait-clean --scan| vinfo
		    ret=$?
		    info "Disassembling mdraid devices."
		    mdadm $_offroot -vv --stop --scan | vinfo
		    ret=$(($ret+$?))
		    if [ "x$final" != "x" ]; then
		        info "/proc/mdstat:"
		        vinfo < /proc/mdstat
		    fi
		    return $ret
		}

		if command -v mdadm >/dev/null; then
		    _do_md_shutdown $1
		else
		    :
		fi

doesn't seem to me that there's anything problematic in there ...

I'd have thought to see _some_ related error in dmesg/journal afterwards.  so far, as mentioned, haven't _noticed_ anything. yet.



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux