Bug 107615

Summary: smartd can't start if an USB storage device is plugged
Product: [Fedora] Fedora Reporter: Julien Olivier <julo42>
Component: kernel-utilsAssignee: Dave Jones <davej>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3CC: ballen, pfrields
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-22 02:52:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Julien Olivier 2003-10-21 10:07:55 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031009

Description of problem:
If, before starting smartd, I plug an USB storage device (usually seen as
/dev/sda1), smartd won't hapen to start:

[root@dhcppc0 julo]# /etc/rc.d/init.d/smartd start
Starting smartd:

...

If, however, I start smartd without any USB storage device plugged, it starts
without problems.

Note: removing the USB storage device while smartd is attempting to start
doesn't help.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.plug an USB storage device
2.type /etc/rc.d/init.d/smartd stop
3.type /etc/rc.d/init.d/smartd start
    

Actual Results:  It hangs forever...

Expected Results:  It should start.

Additional info:

I have disabled kudzu in this runlevel. But I don't think it's revelant...

Comment 1 Bruce Allen 2003-10-21 10:46:42 UTC
We are aware of this problem and are looking for a fix.  The underlying
problem is that USB drives only implement a subset of the mandatory SCSI
command set.

For the moment you can work around this by setting up /etc/smartd.conf so
that it does NOT scan for devices.

Comment 2 lupus 2003-11-09 18:29:34 UTC
smartd says that it starts on my federa but it takes two minutes to
start the daemon.

When I start with the usb storage removed it takes a second :)

if you need the logs just let me know ;)

Comment 3 Bruce Allen 2003-11-09 20:26:15 UTC
Lupus,

Currently, the only solution is to modify /etc/smartd.conf, so that you  
do NOT scan devices.  Then, explicitly list the devices that you want
to monitor.  Do NOT list your USB storage device.

Comment 4 Bruce Allen 2003-11-20 14:27:34 UTC
This is fixed in the smartmontools 5.25 development/testing release
and in subsequent releases, including the 5.26 stable release.

The problematic USB devices return some incorrect SCSI length data.
smartd/smartctl now detect this and exit before sending SCSI
commands that will hang the process.

Comment 5 Dave Jones 2005-04-22 02:52:14 UTC
this should be fixed in current trees, as FC3 has 5.33