[ltp] is Ultrabay hot swappable

mario linux-thinkpad@linux-thinkpad.org
Fri, 10 Feb 2006 21:27:08 -0800 (PST)


Thank you Michael,

So, Michael Gaber wrote:
> mario wrote:
>> hello everybody,
>>
>> i have a t42p with a 60g/7.2k hard drive running ubuntu breezy.
>> - I'm i correct in the assumption that the 60g will work in the
>> ultrabay provided i get the right drive adapter (just want to be sure
>> i'm not missing any gotchas there). I blew the rescue partition away,
>> so i'm not concerned about any of that.
>>
> it will!

i did just that today and it worked fine :)

>> - Is it possible to hot swap these devices? And if not is it possible
>> to swap them without rebooting by loading and unloading modules or
>> some other voodoo?
>
> hotswapping is possible via the ibm-acpi-modules, but you'll lose dma
> for the drive, don't know how to avoid that
>
You mean like this?
[root@perky ~]#hdparm -d1 /dev/hdc

/dev/hdc:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)

This is after running hotswap.
The drives are swappable just fine.
Unfortunately no DMA on the hard drive translates into 2MB throughput.
This time i googled before i wrote, but to no avail.

Has anybody figured out howto fix this?

Just for the record i do not have duplicate ide1 listings as several posts
pointed out:
[root@perky ~]#ll /proc/ide/
total 2
dr-xr-xr-x    4 root root 0 2006-02-10 21:16 .
dr-xr-xr-x  191 root root 0 2006-02-10 20:37 ..
-r--r--r--    1 root root 0 2006-02-10 21:16 drivers
lrwxrwxrwx    1 root root 8 2006-02-10 21:16 hda -> ide0/hda
lrwxrwxrwx    1 root root 8 2006-02-10 21:16 hdc -> ide1/hdc
dr-xr-xr-x    3 root root 0 2006-02-10 21:16 ide0
dr-xr-xr-x    3 root root 0 2006-02-10 21:16 ide1

I'm not sure if this is related but hotswap constantly complains with this:
[quote]
No IDE device has been found in the module bay.  If you are sure that
the device you want to configure connects to the IDE bus, make sure
that the module is inserted completely.

Do you want to try again?
[/quote]

After saying no it exits and the drives work fine, outside of the dma issue.

Any clues on this would be very appreciated.

Thanks

mario;>