Attempt to assemble RAID times out and drives go busy?

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

 



If I start kernel 5.15.60 with parameter "nodmraid" then attempt to
run the script below, it will fail (attempts to assemble but it will
timeout and sda/sdb become busy).  Yet, loading through the udev rules
the raid is created okay.  Although dmraid overtakes the mdadm.

Here's the script that always worked until updating to both 5.15.x and
all the various libraries and utilities.

#! /bin/bash

if [ ! -e /proc/mdstat ]; then
    echo "Software RAID drivers not loaded"
    exit 0
fi

if [ ! -e /etc/mdadm/mdadm.conf-default ]; then
    echo "Default config file not found in /etc/mdadm"
    exit 0
else
    cp /etc/mdadm/mdadm.conf-default /etc/mdadm/mdadm.conf
fi

mdadm --examine --scan >> /etc/mdadm/mdadm.conf
mdadm --assemble --scan --no-degraded -v



[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