sata-nv hotplug feature
Hi,
First off, please let me know if I should repost this to a support mailing list. Or, if the answer is 'rtfm', please just point me to the manual. I checked the libata FAQ but can't find what I need.
I'd like some more information regarding the device hotplug feature for the sata-nv driver. The FAQ indicates that 'device hotplug' == 'yank the drive':
this seems more like 'hot-unplug' to me. Can I then plug the drive back in after I've unplugged it?
This thread:
http://www.mail-archive.com/[email protected]/msg00182.html
Seems to indicate that I can do it, but I may need to refresh the SCSI device system somehow. This suits my needs just fine, as long as a plug doesn't necessitate a reboot. But running rescan-scsi-bus.sh doesn't seem to work.
uname -a:
Linux backfire 2.6.19.2-smp #2 SMP Sat Mar 3 13:06:28 PST 2007 x86_64 x86_64 x86_64 GNU/Linux
lspci shows this:
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2) 00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3) 00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
lsmod shows that libata and sata-nv are present.
rescan-scsi-bus.sh shows this (after I boot with 1 drive plugged in and then try to plug in the other 2):
OLD: Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: ST3250824AS Rev: 3.AA
Type: Direct-Access ANSI SCSI revision: 05
(this seems correct, just that 2 other drives are missing)
The hardware is a Tyan Thunder K8W 2895 motherboard with an onboard controller. 3 250Gb Seagate Barracudas are attached, 2 are in removable drive trays made by some company called 'ByteCC'.
_Any_ advice is appreciated. I'm really in the dark here.
Thanks,
Russ
Quoted 17 lines · Russ Weeks
uname -a:
Linux backfire 2.6.19.2-smp #2 SMP Sat Mar 3 13:06:28 PST 2007x86_64x86_64x86_64GNU/Linuxlspci shows this:
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2) 00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3) 00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)lsmod shows that libata and sata-nv are present.
rescan-scsi-bus.shshows this (after I boot with 1 drive plugged in and then try to plug in the other 2):
OLD: Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: ST3250824AS Rev: 3.AA
Type: Direct-Access ANSI SCSI revision: 05
Quoted 5 lines
(this seems correct, just that 2 other drives are missing)
The hardware is a Tyan Thunder K8W 2895 motherboard with an onboard controller. 3 250Gb Seagate Barracudas are attached, 2 are in removable drive trays made by some company called 'ByteCC'.
I suppose it isn't a CK804 as just pluggin/unplugging should work on it.
Rescanning should do the job tho. Can you post the result of 'dmesg'
after boot?
Signature · 1 line
tejun
Quoted 12 lines
I'd like some more information regarding the device hotplug feature for the sata-nv driver. The FAQ indicates that 'device hotplug' == 'yank the drive':
this seems more like 'hot-unplug' to me. Can I then plug the drive back in after I've unplugged it?This thread:
http://www.mail-archive.com/[email protected]/msg00182.htmlSeems to indicate that I can do it, but I may need to refresh the SCSI device system somehow. This suits my needs just fine, as long as a plug doesn't necessitate a reboot. But running
rescan-scsi-bus.shdoesn't seem to work.
Quoted 8 lines
uname -a:
Linux backfire 2.6.19.2-smp #2 SMP Sat Mar 3 13:06:28 PST 2007x86_64x86_64x86_64GNU/Linuxlspci shows this:
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2) 00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3) 00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
Hi Russ,
I believe you need this patch from Tejun:
which is in kernel 2.6.20. Original thread is here:
http://thread.gmane.org/gmane.linux.ide/13219
-jim
Thanks, Jim, Tejun. Upgrading to 2.6.20 solved all my problems.
What I observe now is that once the drive is plugged in again, 2-3 minutes may pass before the device entry appears in /dev. This isn't a problem for me, but if you have time to explain I'd be interested to know why.
Also, if you have any tips on 'best practices' for drive yanking, I'd appreciate 'em. So far I'm just doing 'sdparm --command=stop'.
Thanks again for the great drivers!
Russ
Quoted 12 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jim Paris
Sent: Thursday, March 08, 2007 1:38 AM
To: Russ Weeks
Cc: [email protected]; [email protected]
Subject: Re: sata-nv hotplug featureQuoted 3 lines
I'd like some more information regarding the device hotplug feature for the
sata-nv driver. The FAQ indicates that 'device hotplug' ==
Quoted 8 lines
'yank the drive':
Quoted 1 line
this seems more like 'hot-unplug' to me. Can I then plug
the drive back in
Quoted 4 lines
after I've unplugged it?
This thread:
[email protected]/msg00182.ht
Quoted 20 lines
Quoted 3 lines
ml
Seems to indicate that I can do it, but I may need to
refresh the SCSI
Quoted 2 lines
device
system somehow. This suits my needs just fine, as long asa plug doesn't
Quoted 1 line
necessitate a reboot. But running
rescan-scsi-bus.shdoesn't seem to work.
Quoted 3 lines
uname -a:
Linux backfire 2.6.19.2-smp #2 SMP Sat Mar 3 13:06:28 PST2007
x86_64Quoted 5 lines
x86_64x86_64GNU/Linuxlspci shows this:
00:06.0 IDE interface: nVidia Corporation CK804 IDE (revf2) 00:07.0
Quoted 1 line
IDE interface: nVidia Corporation CK804 Serial ATA
Quoted 9 lines
Controller (rev f3)
Quoted 1 line
00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA
Controller
Quoted 1 line
(rev f3)
Hi Russ,
I believe you need this patch from Tejun:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commi
t;h=722420fe6e2ab63bebc5a9ea346016b59076d75d
which is in kernel 2.6.20. Original thread is here:
http://thread.gmane.org/gmane.linux.ide/13219
-jim
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hello,
Quoted 1 line · Russ Weeks
Thanks, Jim, Tejun. Upgrading to 2.6.20 solved all my problems.
Great.
Quoted 4 lines
What I observe now is that once the drive is plugged in again, 2-3 minutes may pass before the device entry appears in /dev. This isn't a problem for me, but if you have time to explain I'd be interested to know why.
Please post the result of dmesg and lspci -nn.
Quoted 2 lines
Also, if you have any tips on 'best practices' for drive yanking, I'd appreciate 'em. So far I'm just doing 'sdparm --command=stop'.
That should do the job.
Signature · 1 line
tejun