linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sata-nv hotplug feature
@ 2007-03-08  4:39 Russ Weeks
  2007-03-08  8:21 ` Tejun Heo
  2007-03-08  9:38 ` Jim Paris
  0 siblings, 2 replies; 5+ messages in thread
From: Russ Weeks @ 2007-03-08  4:39 UTC (permalink / raw)
  To: linux-ide

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/ubuntu-server@lists.ubuntu.com/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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sata-nv hotplug feature
  2007-03-08  4:39 sata-nv hotplug feature Russ Weeks
@ 2007-03-08  8:21 ` Tejun Heo
  2007-03-08  9:38 ` Jim Paris
  1 sibling, 0 replies; 5+ messages in thread
From: Tejun Heo @ 2007-03-08  8:21 UTC (permalink / raw)
  To: rweeks; +Cc: linux-ide

Russ Weeks wrote:
> 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'.

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?

-- 
tejun

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sata-nv hotplug feature
  2007-03-08  4:39 sata-nv hotplug feature Russ Weeks
  2007-03-08  8:21 ` Tejun Heo
@ 2007-03-08  9:38 ` Jim Paris
  2007-03-10  6:36   ` Russ Weeks
  1 sibling, 1 reply; 5+ messages in thread
From: Jim Paris @ 2007-03-08  9:38 UTC (permalink / raw)
  To: Russ Weeks; +Cc: linux-ide, htejun

> 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/ubuntu-server@lists.ubuntu.com/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)

Hi Russ,

I believe you need this patch from Tejun:

  http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=722420fe6e2ab63bebc5a9ea346016b59076d75d

which is in kernel 2.6.20.  Original thread is here:
  
  http://thread.gmane.org/gmane.linux.ide/13219

-jim

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: sata-nv hotplug feature
  2007-03-08  9:38 ` Jim Paris
@ 2007-03-10  6:36   ` Russ Weeks
  2007-03-12  5:41     ` Tejun Heo
  0 siblings, 1 reply; 5+ messages in thread
From: Russ Weeks @ 2007-03-10  6:36 UTC (permalink / raw)
  To: 'Jim Paris'; +Cc: linux-ide, htejun

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

> -----Original Message-----
> From: linux-ide-owner@vger.kernel.org 
> [mailto:linux-ide-owner@vger.kernel.org] On Behalf Of Jim Paris
> Sent: Thursday, March 08, 2007 1:38 AM
> To: Russ Weeks
> Cc: linux-ide@vger.kernel.org; htejun@gmail.com
> Subject: Re: sata-nv hotplug feature
> 
> 
> > 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/ubuntu->
server@lists.ubuntu.com/msg00182.ht
> > ml
> > 
> > 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)
> 
> 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 majordomo@vger.kernel.org More majordomo info
at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sata-nv hotplug feature
  2007-03-10  6:36   ` Russ Weeks
@ 2007-03-12  5:41     ` Tejun Heo
  0 siblings, 0 replies; 5+ messages in thread
From: Tejun Heo @ 2007-03-12  5:41 UTC (permalink / raw)
  To: rweeks; +Cc: 'Jim Paris', linux-ide

Hello,

Russ Weeks wrote:
> Thanks, Jim, Tejun.  Upgrading to 2.6.20 solved all my problems.

Great.

> 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.

> 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.

-- 
tejun

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-03-12  5:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-08  4:39 sata-nv hotplug feature Russ Weeks
2007-03-08  8:21 ` Tejun Heo
2007-03-08  9:38 ` Jim Paris
2007-03-10  6:36   ` Russ Weeks
2007-03-12  5:41     ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).