• Bug#1078223: kpartx is not ran from dmraid udev rules with latest multi

    From Mitchell Dzurick@21:1/5 to All on Thu Aug 8 17:20:02 2024
    Package: dmraid
    Version: 1.0.0.rc16-12

    Hello,

    dmraid has an issue where kpartx is not run on boot.

    This is due to the udev rule being triggered by DM_STATE, which is no
    longer set. It used to be set by multipath-tools, but no longer does
    since multipath-tools version 0.8.8-1[0].

    What this means is that dmraid will work so you can see the block
    device itself, but upon boot no partitions will be shown, and users
    will have to manually run kpartx. This is the good case when the
    partition is not the boot drive, if a user is using the latest
    multipath-tools and dmraid for a boot drive, the partitions will not
    be seen and fail to boot.

    We can either reinstate the env file, or change the trigger. I'm
    thinking about changing the trigger which looks like:

    diff --git a/debian/dmraid.udev b/debian/dmraid.udev
    index a4a1ab7..407d57b 100644
    --- a/debian/dmraid.udev
    +++ b/debian/dmraid.udev
    @@ -4,5 +4,5 @@

    SUBSYSTEM=="block", ACTION=="add", ENV{ID_TYPE}=="disk", ENV{ID_FS_USAGE}=="raid", KERNEL=="hd[a-z]|sd[a-z]", \
    RUN+="/sbin/dmraid-activate %k"
    -ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="DMRAID-*", \
    - RUN+="/sbin/kpartx -a /dev/$kernel"
    \ No newline at end of file
    +ENV{DM_ACTIVATION}=="1", ENV{DM_UUID}=="DMRAID-*", \
    + RUN+="/sbin/kpartx -a /dev/$kernel"

    Relevant Ubuntu bug [1].

    [0] - https://salsa.debian.org/linux-blocks-team/multipath-tools/-/commit/4ab9ce259ffa75ed3e2d145b3f2effc22af7b4c6
    [1] - https://bugs.launchpad.net/ubuntu/+source/dmraid/+bug/2047303

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Hofstaedtler@21:1/5 to Mitchell Dzurick on Thu Aug 8 18:40:01 2024
    Hi Mitchell,

    On Thu, Aug 08, 2024 at 08:11:41AM -0700, Mitchell Dzurick wrote:
    Package: dmraid

    dmraid has an issue where kpartx is not run on boot.
    [..]

    dmraid is dead upstream and was removed from trixie. IIRC in the
    bookworm release notes it was announced that bookworm will be the
    last release supporting it.

    It's not entirely gone from unstable yet, but I'll expect it to go
    away completely sometime soon.

    Best,
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Hofstaedtler@21:1/5 to Chris Hofstaedtler on Thu Aug 8 18:40:01 2024
    On Thu, Aug 08, 2024 at 06:32:39PM +0200, Chris Hofstaedtler wrote:
    It's not entirely gone from unstable yet, but I'll expect it to go
    away completely sometime soon.

    Sorry, was confused. It's already gone from unstable too.

    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mitchell Dzurick@21:1/5 to All on Thu Aug 8 19:00:01 2024
    Thanks Chris.

    I haven't tested it yet, but I would imagine that bookworm is still
    suffering from this issue, since multipath-tools is at 0.9.4-3+deb12u1.

    I totally understand removing this project, but feel free to consider
    making a patch such as this for users who are interested in the stable
    release.

    No worries if not - I'll look at patching this on the Ubuntu side since
    there's some clear desire for it even if the upstream project is dead.

    -Mitch

    <div dir="ltr"><div dir="ltr">Thanks Chris.<br><br>I haven&#39;t tested it yet, but I would imagine that bookworm is still suffering from this issue, since multipath-tools is at 0.9.4-3+deb12u1.<br><br>I totally understand removing this project, but
    feel free to consider making a patch such as this for users who are interested in the stable release.<br></div><br>No worries if not - I&#39;ll look at patching this on the Ubuntu side since there&#39;s some clear desire for it even if the upstream
    project is dead.<br><br>-Mitch</div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Evgeny Grin@21:1/5 to All on Fri Aug 9 09:40:01 2024
    Hi all,

    bookworm (the current stable) still has dmraid package. Combined with multipath-tools 0.9.4-3+deb12u1, it is broken: partitions are not mounted.
    A one-line patch for the rules file may easily fix the this.

    SID still has dmraid for riscv64. I am not sure whether it is some
    leftover or intentional.

    --
    Evgeny

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)