On Sat, Sep 27, 2025 at 10:27:04PM -0700, Jonathan Thornburg wrote:
> The /sdN/ information is printed by the kernel, but that's not readily
> accessible to my script.

Out of interest, as well as the kernel console output bioctl will also write
an '... attached as sdx' line to stdout.

Why is this not readily accessible in your script?

E.G.

sr_dev=`bioctl -c C -l sd1d softraid0`

then process $sr_dev with something like:

echo $sr_dev | grep -o sd[0-9]*$

... to get the actual device.

(Obviously add more error-checking as required.)

Reply via email to