Summary: | sys-kernel/gentoo-sources-6.1.81 prevents sys-apps/smartmontools (smartd) from starting | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andy Figueroa <andy> |
Component: | Current packages | Assignee: | Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | andy, base-system, floppym |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
/var/log/dmesg as requested
This is output of dmesg from bash shell. |
Description
Andy Figueroa
2024-03-15 16:37:39 UTC
No problems here with gentoo-sources-6.1.81 and smartd Attach your full dmesg and your smartmontools version. Created attachment 887703 [details]
/var/log/dmesg as requested
sys-apps/smartmontools Installed versions: 7.4(11:11:30 PM 03/13/2024)(daemon update-drivedb -caps -selinux -static -systemd) $ sudo /etc/init.d/smartd start Password: * Starting smartd ... * start-stop-daemon: failed to start `/usr/sbin/smartd' * Failed to start smartd [ !! ] * ERROR: smartd failed to start and from boot log: Fri Mar 15 13:24:19 2024: * Starting saned ... Fri Mar 15 13:24:19 2024: [ ok ] Fri Mar 15 13:24:19 2024: * Starting smartd ... Fri Mar 15 13:24:19 2024: * start-stop-daemon: failed to start `/usr/sbin/smartd' Fri Mar 15 13:24:19 2024: * Failed to start smartd Fri Mar 15 13:24:19 2024: [ !! ] Fri Mar 15 13:24:19 2024: * ERROR: smartd failed to start Fri Mar 15 13:24:20 2024: * Starting sshd ... Fri Mar 15 13:24:21 2024: [ ok ] Is there something in dmesg after you start smartd ? The full dmesg after you start smartd After trying to start smartd there is nothing relevant in dmesg, just two elogin lines. [Fri Mar 15 13:24:19 2024] </TASK> [Fri Mar 15 13:24:19 2024] ---[ end trace 0000000000000000 ]--- [Fri Mar 15 13:24:27 2024] elogind-daemon[2216]: Removed session 1. [Fri Mar 15 13:24:27 2024] elogind-daemon[2216]: New session 2 of user figueroa. Created attachment 887704 [details]
This is output of dmesg from bash shell.
Output of dmesg from bash shell, dmesg > dmesg.txt in attachment.
Is there any syslog output from smartd? Actually, yes. I'm running metalog and /var/log/everything shows for for the current boot instance: # grep smart current Mar 15 13:24:19 [smartd] smartd 7.4 2023-08-01 r5530 [x86_64-linux-6.1.81-gentoo] (local build) Mar 15 13:24:19 [smartd] Opened configuration file /etc/smartd.conf Mar 15 13:24:19 [smartd] Configuration file /etc/smartd.conf parsed. Mar 15 13:24:19 [smartd] Device: /dev/sda, opened Mar 15 13:24:19 [smartd] Device: /dev/sda, not ATA, no IDENTIFY DEVICE Structure Mar 15 13:24:19 [smartd] Unable to register ATA device /dev/sda at line 24 of file /etc/smartd.conf Mar 15 13:24:19 [smartd] Unable to register device /dev/sda (no Directive -d removable). Exiting. Mar 15 13:24:19 [smartd] smartd is exiting (exit status 16) Mar 15 13:24:19 [kernel] [ 38.831326] CPU: 7 PID: 4067 Comm: smartd Not tainted 6.1.81-gentoo #1 Mar 15 13:24:19 [/etc/init.d/smartd] start-stop-daemon: failed to start `/usr/sbin/smartd' Mar 15 13:24:19 [/etc/init.d/smartd] ERROR: smartd failed to start Mar 15 13:26:27 [sudo] figueroa : TTY=pts/1 ; PWD=/var/log ; USER=root ; COMMAND=/etc/init.d/smartd start Mar 15 13:26:27 [smartd] smartd 7.4 2023-08-01 r5530 [x86_64-linux-6.1.81-gentoo] (local build) Mar 15 13:26:27 [smartd] Opened configuration file /etc/smartd.conf Mar 15 13:26:27 [smartd] Configuration file /etc/smartd.conf parsed. Mar 15 13:26:27 [smartd] Device: /dev/sda, opened Mar 15 13:26:27 [smartd] Device: /dev/sda, not ATA, no IDENTIFY DEVICE Structure Mar 15 13:26:27 [smartd] Unable to register ATA device /dev/sda at line 24 of file /etc/smartd.conf Mar 15 13:26:27 [smartd] Unable to register device /dev/sda (no Directive -d removable). Exiting. Mar 15 13:26:27 [smartd] smartd is exiting (exit status 16) Mar 15 13:26:27 [/etc/init.d/smartd] start-stop-daemon: failed to start `/usr/sbin/smartd' Mar 15 13:26:27 [/etc/init.d/smartd] ERROR: smartd failed to start Mar 15 13:30:23 [sudo] figueroa : TTY=pts/1 ; PWD=/var/log ; USER=root ; COMMAND=/etc/init.d/smartd start Mar 15 13:30:24 [smartd] smartd 7.4 2023-08-01 r5530 [x86_64-linux-6.1.81-gentoo] (local build) Mar 15 13:30:24 [smartd] Opened configuration file /etc/smartd.conf Mar 15 13:30:24 [smartd] Configuration file /etc/smartd.conf parsed. Mar 15 13:30:24 [smartd] Device: /dev/sda, opened Mar 15 13:30:24 [smartd] Device: /dev/sda, not ATA, no IDENTIFY DEVICE Structure Mar 15 13:30:24 [smartd] Unable to register ATA device /dev/sda at line 24 of file /etc/smartd.conf Mar 15 13:30:24 [smartd] Unable to register device /dev/sda (no Directive -d removable). Exiting. Mar 15 13:30:24 [smartd] smartd is exiting (exit status 16) Mar 15 13:30:24 [/etc/init.d/smartd] start-stop-daemon: failed to start `/usr/sbin/smartd' Mar 15 13:30:24 [/etc/init.d/smartd] ERROR: smartd failed to start Log entries from 13:24 are during boot, 13:26 is an attempt to start manually (/etc/init.d/smartd start), and 13:30 another start attempt. Please test with 6.8.1 to see if a fix has been implemented already Yes, booting with gentoo-sources-6.8.1 does the trick. smartd runs on startup without error and no other apparent errors. Thank you. Feels strange being out here on the bleeding edge. It would be good to know what changed. Was it fixed in a gentoo kernel patch? (In reply to Andy Figueroa from comment #10) > Yes, booting with gentoo-sources-6.8.1 does the trick. smartd runs on > startup without error and no other apparent errors. Thank you. Feels strange > being out here on the bleeding edge. > > It would be good to know what changed. Was it fixed in a gentoo kernel patch? Nothing from us, glad to see it's working. Sounds like a regression in the 6.1 stable series though. Probably best to work with upstream to figure that out. |