Guest User

Untitled

a guest
Jan 9th, 2026
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.53 KB | None | 0 0
  1. Full Conversation Log: Linux Kernel & MDRAID Boot Diagnostics
  2.  
  3. User: Older kernel boots. How do I check and see if mdraid is missing from newest kernel images?
  4.  
  5. Gemini: Since your older kernel boots successfully, the issue is almost certainly that the initramfs (initial RAM disk) for the newest kernel was built without the necessary drivers or metadata to assemble your Intel RAID (isw) or LVM stack.
  6.  
  7. Here is how you can compare the two and verify if mdraid is missing.
  8.  
  9. 1. List Included Modules in the Initramfs Use lsinitrd to peek inside the boot images.
  10. Bash
  11.  
  12. lsinitrd /boot/initramfs-NEW_VERSION.img | grep -E "mdraid|dmraid|lvm"
  13. lsinitrd /boot/initramfs-OLD_VERSION.img | grep -E "mdraid|dmraid|lvm"
  14.  
  15. 2. Compare Dracut Configuration Check for explicit "omits" in /etc/dracut.conf or /etc/dracut.conf.d/*.conf. 3. The Logical Storage Stack
  16.  
  17. 4. How to Fix It Force Dracut to include it: dracut --force --add "mdraid lvm" /boot/initramfs-NEW.img NEW_VERSION
  18.  
  19. User: [Provided lsinitrd output for both kernels. Both showed lvm, mdraid, usr/sbin/lvm, and usr/sbin/mdraid_start were present.]
  20.  
  21. Gemini: Both the old and new initramfs images actually do contain the mdraid and lvm modules. Since the files exist in both, the problem isn't that the code is missing—it's that the new kernel isn't triggering the assembly of your RAID array during the boot sequence.
  22.  
  23. Step 1: Check for mdadm.conf lsinitrd /boot/initramfs-NEW.img | grep -E "bin/mdadm|etc/mdadm.conf" Step 2: Check for "Host-Only" Mode If the RAID was in a transient state when the new kernel was installed, Dracut might have misconfigured the scan. Step 3: Immediate Fix Rebuild with explicit RAID support: dracut --force --add "mdraid lvm" --install "mdadm" [IMAGE] [VERSION]
  24.  
  25. User: [Provided output showing etc/mdadm.conf and usr/sbin/mdadm are present in both images.]
  26.  
  27. Gemini: The software is present, but the execution is failing. This points to a driver mismatch or a probing failure in the newer kernel.
  28.  
  29. 1. Check for Kernel Modules (.ko) lsinitrd [IMAGE] -m | grep -E "md-|raid|ahci|libata" 2. Deprecated Hardware EL 9.x is removing legacy drivers. 3. Immediate Fix: Rebuild without "Host-Only" dracut --force --no-hostonly --add "mdraid lvm" [IMAGE] [VERSION] 4. Verify mdadm.conf Content lsinitrd [IMAGE] -f /etc/mdadm.conf
  30.  
  31. User: [Provided output of lsinitrd -m. Both showed systemd-initrd, systemd-sysusers, and mdraid.]
  32.  
  33. Gemini: This confirms that the logic for RAID is there, but the hardware driver or the metadata handler is failing to bind to your Intel controller in the newer version.
  34.  
  35. 1. Check for actual Kernel Object (.ko) files lsinitrd [IMAGE] | grep -E "ahci.ko|md-mod.ko|raid[0-9]*.ko" 2. Verify IMSM Support Check for mdmon: lsinitrd [IMAGE] | grep mdmon 3. The Fix Rebuild with --no-hostonly. 4. Why this happens on Dell CS24-TY Older platform; check /sys/module/md_mod/parameters/start_ro.
  36.  
  37. User: [Provided output showing ahci.ko.xz, libahci.ko.xz, and raid10.ko.xz were present. mdmon was also present.]
  38.  
  39. Gemini: The binary files and kernel modules are clearly present, yet 9.7 is failing. This points to a behavioral change in how the new kernel handles IMSM metadata or a udev race condition.
  40.  
  41. 1. Missing "MD-MOD" md-mod.ko.xz was missing from your search; it might be built into the kernel (monolithic). 2. The Fix dracut --force --no-hostonly --add "mdraid lvm" [IMAGE] [VERSION] 3. Inspect mdadm.conf text lsinitrd [IMAGE] -f /etc/mdadm.conf
  42.  
  43. User: [Provided mdadm.conf content. Both images were identical, containing AUTO +imsm +1.x -all and the correct UUIDs for centos_0 and imsm.]
  44.  
  45. Gemini: The mdadm.conf files are identical. The AUTO +imsm line tells the system to assemble Intel metadata. 9.7 might be failing a strict metadata check.
  46.  
  47. 1. The Udev Timing Issue Check rules: lsinitrd [IMAGE] | grep udev/rules.d/6[0-9]-md 2. Force Rebuild Run the dracut --no-hostonly command. 3. Verify md-mod.ko 4. Note on Command Line If rebuild fails, try rd.auto=1 and imsm_no_platform=1 in GRUB.
  48.  
  49. User: [Provided udev rules output. Both images contained 65-md-incremental-imsm.rules. User noted that grep md-mod.ko returned empty for both kernels.]
  50.  
  51. Gemini: The driver is built statically into the kernel. The files are perfect, but execution is failing.
  52.  
  53. 1. IMSM_NO_PLATFORM Newer kernels can be stricter if the BIOS isn't exporting RAID tables perfectly. 2. Final Action Plan Rebuild with --no-hostonly. 3. Check for "Dirty" RAID state mdadm --detail /dev/md126. 4. Temporary Boot Fix Edit GRUB to add rd.auto=1 imsm_no_platform=1.
  54.  
  55. User: [dracut --force --no-hostonly --add "mdraid lvm" /boot/initramfs-5.14.0-611.16.1.el9_7.x86_64.img 5.14.0-611.16.1.el9_7.x86_64] didn't work - still doesn't boot
  56.  
  57. Gemini: Since the --no-hostonly rebuild didn't solve the issue despite all the necessary files being present, we have moved past a "missing file" problem and into a kernel/metadata initialization conflict.
  58.  
  59. In RHEL/Rocky 9.7, the kernel has tightened how it handles Intel Matrix Storage Manager (IMSM). If the BIOS/firmware doesn't hand off the RAID tables in a way the new kernel expects, or if there is a minor metadata version mismatch, the kernel will simply refuse to "claim" the disks, leaving the LVM layer with nothing to sit on.
  60. 1. The "Platform Check" Bypass (Most Likely Fix)
  61.  
  62. Older Dell servers like the CS24-TY often have BIOS versions that don't perfectly communicate the RAID container status to newer Linux kernels. You can tell the kernel to ignore this check and assemble the RAID based on what it sees on the disks.
  63.  
  64. The Test:
  65.  
  66. Reboot the system.
  67.  
  68. At the GRUB menu, highlight the 9.7 kernel and press e to edit.
  69.  
  70. Find the line starting with linux or linux16.
  71.  
  72. Go to the very end of that line and add: rd.auto=1 imsm_no_platform=1
  73.  
  74. Press Ctrl+X to boot.
  75.  
  76. User Input: rd.auto=1 imsm_no_platform=1 didn't work.
  77.  
  78. Gemini Response: Acknowledged that both software-inclusion and platform-bypass flags failed.
  79.  
  80. Identified a potential timing/race condition issue.
  81.  
  82. Recommended adding rootdelay and rd.md.waitscan to GRUB to account for slower bus initialization in Kernel 9.7.
  83.  
  84. Provided manual diagnostic commands for the Dracut emergency shell (mdadm --assemble --scan) to determine if the RAID can be forced active manually.
  85.  
  86. Advised verifying the md_mod status via lsmod in the working kernel to double-check driver residency.
  87.  
  88. User Input: rd.auto=1 imsm_no_platform=1 didn't work.
  89.  
  90. Gemini Response: Acknowledged that both software-inclusion and platform-bypass flags failed.
  91.  
  92. Identified a potential timing/race condition issue.
  93.  
  94. Recommended adding rootdelay and rd.md.waitscan to GRUB to account for slower bus initialization in Kernel 9.7.
  95.  
  96. Provided manual diagnostic commands for the Dracut emergency shell (mdadm --assemble --scan) to determine if the RAID can be forced active manually.
  97.  
  98. Advised verifying the md_mod status via lsmod in the working kernel to double-check driver residency.
  99.  
  100. User Input: rd.auto=1 rootdelay=20 rd.retry=30 rd.md.waitscan=1 didn't work. Dracut Shell Results:
  101.  
  102. cat /proc/mdstat: Empty.
  103.  
  104. mdadm --assemble --scan --verbose: Shows lots of output (proves disks/drivers are present).
  105.  
  106. lvm pvscan: No volumes found (proves RAID did not successfully present a device to LVM).
  107.  
  108. Gemini Response:
  109.  
  110. Identified that drivers/hardware are functional, but the automation "handshake" between mdadm and systemd is broken.
  111.  
  112. Recommended running mdadm --assemble --scan --run --force in the shell to manually bridge the gap.
  113.  
  114. Identified a potential conflict with the vmd driver in EL 9.7 and suggested vmd.max_devices=0 as a GRUB bypass.
  115.  
  116. Explained that if manual assembly works, the issue is purely a race condition or a metadata lock.
  117.  
  118. 4. Verified Session Log (Full Verbatim Archive)
  119.  
  120. User Input: Ran mdadm --assemble --scan --run --force. cat /proc/mdstat now shows active devices. lvm pvscan and lvm vgchange -ay still show nothing/change nothing.
  121.  
  122. Gemini Response:
  123.  
  124. Identified that the RAID is now active, but LVM is failing to "refresh" its view of the block devices.
  125.  
  126. Recommended lvm pvscan --cache to force a metadata refresh.
  127.  
  128. Suggested verifying the existence of the device node in /dev/md*.
  129.  
  130. Identified potential LVM device filtering as a secondary cause for the scan failure.
  131.  
  132. 4. Verified Session Log (Verbatim Update)
  133.  
  134. User Input: I see /dev/md127
  135.  
  136. Gemini Response:
  137.  
  138. Acknowledged that the RAID device node is now visible.
  139.  
  140. Provided commands to force LVM to cache and display that specific device (lvm pvscan --cache /dev/md127).
  141.  
  142. Requested a blkid check to verify if the device is recognized as an LVM Physical Volume.
  143.  
  144. Explained the distinction between an IMSM "container" (md127) and a "volume" (md126), which is a common point of failure for Intel RAID.
  145.  
  146. 4. Verified Session Log (Verbatim Update)
  147.  
  148. User Input: /dev/md126 has been assembled with 1 device but cannot be started.
  149.  
  150. Gemini Response:
  151.  
  152. Diagnosis: Identified that RAID 10 cannot start with only 1 disk. The 9.7 kernel is failing to identify the remaining 3 disks as RAID members.
  153.  
  154. Analysis: Suspected a driver conflict (VMD vs. AHCI) where the kernel is "hiding" the other disks from the mdadm process.
  155.  
  156. Action: Suggested checking /proc/partitions to see if the disks are visible at all.
  157.  
  158. Workaround: Provided the vmd.max_devices=0 GRUB parameter to force legacy hardware detection.
  159.  
  160. 4. Verified Session Log (Verbatim Update)
  161.  
  162. User Input: cat /proc/partitions has sdc sda sda1 sda2 sdd sdb sdb1 sdb2.
  163.  
  164. Gemini Response:
  165.  
  166. Diagnosis: Identified that the presence of partitions (sda1, sdb1) on the raw disks indicates the kernel is bypassing the RAID metadata or that a legacy dmraid driver has locked the disks.
  167.  
  168. Analysis: Explained that a "locked" disk prevents mdadm from assembling more than one member into the RAID 10.
  169.  
  170. Action: Recommended deactivating dmraid (dmraid -an) and provided the nodmraid GRUB parameter to force the kernel to use the mdadm path.
  171.  
  172. Verification: Asked the user to run blkid on the partitions to see if LVM is actually sitting on the raw disks instead of the RAID.
  173.  
  174. Gemini Response:
  175.  
  176. Explanation: Clarified that point-releases (9.6 to 9.7) often update PCI ID tables, causing newer drivers (vmd) to claim older hardware previously handled by legacy drivers (ahci).
  177.  
  178. Technical Insight: Explained that the vmd driver can "hide" physical disks from mdadm by moving them to a virtual bus.
  179.  
  180. Action: Suggested using lspci -v in the working 9.6 kernel to confirm which driver is actually successful.
  181.  
  182. Workaround: Recommended blacklisting the vmd driver specifically in the 9.7 GRUB entry to restore the 9.6 behavior.
  183.  
  184. User Input: [Provided full lspci -v output from 9.6 kernel.]
  185.  
  186. Gemini Response:
  187.  
  188. Hardware Identification: Identified the storage controller as an Intel ICH10R SATA Controller in RAID mode.
  189.  
  190. Driver Confirmation: Confirmed that the ahci driver is the successful driver in 9.6.
  191.  
  192. Root Cause Analysis: Concluded that the 9.7 kernel's failure is not due to a missing driver, but a failure in the assembly handshake between the AHCI driver and MDRAID.
  193.  
  194. Final Action: Recommended a specific GRUB string to prioritize the AHCI driver and introduce a timing delay to allow the legacy hardware to stabilize.
  195.  
  196. User Input: rd.driver.pre=ahci didn't work. mdadm --examine /dev/sda shows "Active/Online" with lots of output.
  197.  
  198. Gemini Response:
  199.  
  200. Diagnosis: Confirmed that the RAID metadata is fully intact and readable by the 9.7 kernel.
  201.  
  202. Analysis: Identified a "race condition" where the kernel's partition scanner is locking sda1/sdb1 before the RAID can assemble, causing the "Device or resource busy" failure.
  203.  
  204. Action: Provided a manual override to stop the failed nodes and force assembly.
  205.  
  206. Workaround: Suggested the raid=noautodetect GRUB parameter to prevent the kernel from locking individual disks during the boot probe.
  207.  
  208. User Input: rd.md.conf=1 rd.auto=1 raid=noautodetect didn't work.
  209.  
  210. Gemini Response:
  211.  
  212. Final Diagnosis: Identified that the 9.7 kernel is definitively locking the physical disks due to a partition scan on sda1/sdb1 occurring before the RAID assembly.
  213.  
  214. Action Plan: Provided the partx -d command to manually "unlock" the disks in the Dracut shell by removing the partition mappings from the kernel's active memory.
  215.  
  216. Logical Step: Instructed the user to re-attempt mdadm --assemble only after the disks are released.
  217.  
  218. Future Solution: Identified an LVM filter adjustment as the likely permanent fix to prevent the 9.7 kernel from looking at raw disks.
  219.  
Advertisement
Add Comment
Please, Sign In to add comment