Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-122261

[RHEL10.2] device-mapper: reload ioctl on temporary-cryptsetup-c3e21bd4-18a3-40e9-a1cc-1e4f1d0f0c86 (253:3) failed: Invalid argument

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.2
    • cryptsetup
    • None
    • None
    • None
    • rhel-storage-crs
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      INFO: [2025-10-11 03:53:17] Running: 'integritysetup  close  jPRVzsSmpY  -q '...
      
      INFO: [2025-10-11 03:53:27] Running: 'wipefs -a /dev/md/TESTRAID'...
      /dev/md/TESTRAID: 8 bytes were erased at offset 0x00000000 (DM_integrity): 69 6e 74 65 67 72 74 00
      INFO: [2025-10-11 03:53:27] Running: 'dd if=/dev/zero of=/dev/md/TESTRAID bs=4k count=1'...
      1+0 records in
      1+0 records out
      4096 bytes (4.1 kB, 4.0 KiB) copied, 0.000112647 s, 36.4 MB/s
      INFO: [2025-10-11 03:53:27] Running: 'readlink /dev/md/TESTRAID'...
      ../md127
      INFO: [2025-10-11 03:53:27] Running: 'basename ../md127'...
      md127
      INFO: [2025-10-11 03:53:27] Running: 'cat /sys/block/md127/integrity/format'...
      nop
      [2025-10-11 03:53:27] [1;32m INFO: the add_device_inline device md127 support npo2 [0m
      INFO: [2025-10-11 03:53:27] Running: 'cat /sys/block/md127/size'...
      6291456
      6291456
      False
      INFO: [2025-10-11 03:53:27] Running: 'lsblk'...
      NAME                        MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
      sda                           8:0    0 278.9G  0 disk  
      sda1                        8:1    0     1M  0 part  
      sda2                        8:2    0     1G  0 part  /boot
      sda3                        8:3    0 277.9G  0 part  
        rhel_storageqe--64-root 253:0    0    70G  0 lvm   /
        rhel_storageqe--64-swap 253:1    0  27.9G  0 lvm   [SWAP]
        rhel_storageqe--64-home 253:2    0   180G  0 lvm   /home
      nvme0n1                     259:3    0   1.5T  0 disk  
      md127                       9:127  0     3G  0 raid1 
      nvme2n1                     259:4    0   1.5T  0 disk  
      md127                       9:127  0     3G  0 raid1 
      nvme1n1                     259:5    0   1.5T  0 disk
      INFO: [2025-10-11 03:53:27] Running: 'integritysetup --integrity 'sha256' --sector-size '4096'  format /dev/md/TESTRAID   --integrity-legacy-padding  -q  --integrity-inline '...
      device-mapper: reload ioctl on temporary-cryptsetup-d2209a3c-3ac2-47fb-b2cd-eb8eca2d7106 (253:3) failed: Invalid argument
      Cannot format integrity for device /dev/md/TESTRAID.
      INFO: [2025-10-11 03:53:27] Running: 'lsblk'...
      NAME                        MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
      sda                           8:0    0 278.9G  0 disk  
      sda1                        8:1    0     1M  0 part  
      sda2                        8:2    0     1G  0 part  /boot
      sda3                        8:3    0 277.9G  0 part  
        rhel_storageqe--64-root 253:0    0    70G  0 lvm   /
        rhel_storageqe--64-swap 253:1    0  27.9G  0 lvm   [SWAP]
        rhel_storageqe--64-home 253:2    0   180G  0 lvm   /home
      nvme0n1                     259:3    0   1.5T  0 disk  
      md127                       9:127  0     3G  0 raid1 
      nvme2n1                     259:4    0   1.5T  0 disk  
      md127                       9:127  0     3G  0 raid1 
      nvme1n1                     259:5    0   1.5T  0 disk
      INFO: [2025-10-11 03:53:27] Running: 'integritysetup --integrity 'sha256' --sector-size '4096'  format /dev/md/TESTRAID   --integrity-legacy-padding  -q  --integrity-inline  --debug '...
      # cryptsetup 2.8.1 processing "integritysetup --integrity sha256 --sector-size 4096 format /dev/md/TESTRAID --integrity-legacy-padding -q --integrity-inline --debug"
      # Running command format.
      # Allocating context for crypt device /dev/md/TESTRAID.
      # Trying to open device /dev/md/TESTRAID with direct-io.
      # Initialising device-mapper backend library.
      # Blkid check (filter none).
      # Formatting device /dev/md/TESTRAID as type INTEGRITY with inline tags.
      # Crypto backend (OpenSSL 3.5.1 1 Jul 2025 [default][legacy][threads][argon2]) initialized in cryptsetup library version 2.8.1.
      # Detected kernel Linux 6.12.0-138.el10.x86_64 x86_64.
      # Inline integrity is supported (0).
      # Wipe device /dev/md/TESTRAID [0], offset 0, length 4096, block 4096, bsize 4096, align 4096.
      # dm version   [ opencount flush ]   [16384] (*1)
      # dm versions   [ opencount flush ]   [16384] (*1)
      # Detected dm-ioctl version 4.50.0.
      # Detected dm-crypt version 1.28.0.
      # Detected dm-integrity version 1.13.0.
      # Device-mapper backend running with UDEV support enabled.
      # Trying to format INTEGRITY device on top of /dev/md/TESTRAID, tmp name temporary-cryptsetup-c3e21bd4-18a3-40e9-a1cc-1e4f1d0f0c86, tag size 32 (inline).
      # DM-UUID is CRYPT-INTEGRITY-temporary-cryptsetup-c3e21bd4-18a3-40e9-a1cc-1e4f1d0f0c86
      # Udev cookie 0xd4df9a3 (semid 3833874) created
      # Udev cookie 0xd4df9a3 (semid 3833874) incremented to 1
      # Udev cookie 0xd4df9a3 (semid 3833874) incremented to 2
      # Udev cookie 0xd4df9a3 (semid 3833874) assigned to CREATE task(0) with flags DISABLE_SUBSYSTEM_RULES DISABLE_DISK_RULES DISABLE_OTHER_RULES DISABLE_LIBRARY_FALLBACK         (0x2e)
      # dm create temporary-cryptsetup-c3e21bd4-18a3-40e9-a1cc-1e4f1d0f0c86 CRYPT-INTEGRITY-temporary-cryptsetup-c3e21bd4-18a3-40e9-a1cc-1e4f1d0f0c86 [ opencount flush ]   [16384] (*1)
      # dm reload   (253:3) [ opencount flush securedata ]   [16384] (*1)
      # Udev cookie 0xd4df9a3 (semid 3833874) decremented to 1
      # Udev cookie 0xd4df9a3 (semid 3833874) incremented to 2
      # Udev cookie 0xd4df9a3 (semid 3833874) assigned to REMOVE task(2) with flags DISABLE_SUBSYSTEM_RULES DISABLE_DISK_RULES DISABLE_OTHER_RULES DISABLE_LIBRARY_FALLBACK         (0x2e)
      # dm remove temporary-cryptsetup-c3e21bd4-18a3-40e9-a1cc-1e4f1d0f0c86  [ opencount flush securedata ]   [16384] (*1)
      # Uevent not generated! Calling udev_complete internally to avoid process lock-up.
      # Udev cookie 0xd4df9a3 (semid 3833874) decremented to 1
      # DM create task failed, dm_task errno: -22.
      # dm versions   [ opencount flush ]   [16384] (*1)
      # dm status temporary-cryptsetup-c3e21bd4-18a3-40e9-a1cc-1e4f1d0f0c86  [ opencount noflush ]   [16384] (*1)
      # Device status returned -19.
      # Data device /dev/md/TESTRAID is OK.
      # No referenced device missing, some device in use.
      # Udev cookie 0xd4df9a3 (semid 3833874) decremented to 0
      # Udev cookie 0xd4df9a3 (semid 3833874) waiting for zero
      # Udev cookie 0xd4df9a3 (semid 3833874) destroyed
      # Releasing crypt device /dev/md/TESTRAID context.
      # Releasing device-mapper backend.
      # Closing read write fd for /dev/md/TESTRAID.
      Command failed with code -5 (device already exists or device is busy).
      device-mapper: reload ioctl on temporary-cryptsetup-c3e21bd4-18a3-40e9-a1cc-1e4f1d0f0c86 (253:3) failed: Invalid argument
      Cannot format integrity for device /dev/md/TESTRAID. 

      https://beaker.engineering.redhat.com/recipes/19732146#task203569788,task203569790

       

       

              okozina@redhat.com Ondrej Kozina
              guazhang@redhat.com Guangwu Zhang
              Ondrej Kozina Ondrej Kozina
              Guangwu Zhang Guangwu Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: