From: Todd and Margo Chester <ToddAndMargo@verizon.net>
To: Robert Hancock <hancockrwd@gmail.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: no hotplugging support (FIXME)
Date: Sat, 21 Feb 2009 20:09:35 -0800 [thread overview]
Message-ID: <49A0CFFF.3050806@verizon.net> (raw)
In-Reply-To: <49A0C8F5.30405@gmail.com>
Robert Hancock wrote:
> Todd and Margo Chester wrote:
>> Robert Hancock wrote:
>>> Todd and Margo Chester wrote:
>>>> Hi Jeff,
>>>>
>>>> I am having a nasty problem with hot swapping a removable (not
>>>> eSATA) drive I use for backup on several servers. It is reported
>>>> over on
>>>> http://bugs.centos.org/view.php?id=3391
>>>>
>>>> Trying to help me find a work around to the problem at
>>>> http://www.centos.org/modules/newbb/viewtopic.php?topic_id=18608&start=0#forumpost68783
>>>>
>>>> Alan posted your ata_piix.c code at
>>>> http://centos.toracat.org/ajb/tmp/toddandmargo/ata_piix.c
>>>> He pointed out
>>>>
>>>> 1483 /* no hotplugging support (FIXME) */
>>>> 1484 if (!in_module_init)
>>>> 1485 return -ENODEV;
>>>>
>>>> What do you mean by the comment in line 1483? Is there some
>>>> know issue with hot swapping SATA drives?
>>>
>>> If you're using the ata_piix driver then it means your motherboard is
>>> not in AHCI mode, so hotplugging is not supported by either the
>>> driver or controller. You have to enable AHCI for SATA hotplug to
>>> work on Intel controllers.
>>>
>>
>> Hi Robers,
>>
>> As far as I can tell, ACHI is turned on on my motherboard.
>> I have tried all variation in bios (one of them turns /dev/sdb
>> into /dev/hda). Does not mean ACHI is working right.
>>
>> Do you know of any reason why my kernel
>> (CentOS 5.2: 2.6.18-92.1.22.el5) would not support
>> (bugs, etc.) hotplugging?
>>
>> Also, do you know of a utility that I can use to
>> ask ACHI what is has for me (give me a report)?
>>
>> Many thanks,
>> -T
>
> If the device is in AHCI mode then the ata_piix driver won't load for it
> - at least it won't in current kernels, I can't say for sure that it
> won't in the CentOS 5 version.. You do need to get it using the ahci
> driver instead of ata_piix or hotplug definitely won't work.
>
> You can try changing the boot initrd to try to load the AHCI driver
> instead by changing the scsi_hostadapter entry in /etc/modprobe.conf to
> be ahci instead of ata_piix, then rebuilding the initrd or reinstalling
> the kernel RPM. However, if the BIOS isn't set up properly for AHCI mode
> to work, you'll have to either boot up in rescue mode and fix it, or
> boot up from a different kernel entry in grub.
Hi Robert,
Thank you. I take it there is no probe of the AHCI module. Rats!
My /etc/modprobe.conf (BIOS: Enhanced SATA Mode):
alias scsi_hostadapter sata_sil
alias eth1 e1000e
alias scsi_hostadapter1 megaraid_mbox
alias scsi_hostadapter2 ata_piix
alias snd-card-0 snd-intel8x0
options snd-card-0 index=0
options snd-intel8x0 index=0
remove snd-intel8x0 { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ;
}; /sbin/modprobe -r --ignore-remove snd-intel8x0
While fooling around with my BIOS, trying to see what happens
in the various SATA modes, the one called "ACHI Compatibility mode"
changed my removable drive from /dev/sdb to /dev/hda. ("mount /dev/hda"
still hangs for two minutes, then the kernel freezes.)
I am wondering if there is a clue here. Does the ACHI module load
drives as /dev/sd* or /dev/hd*?
Many thanks,
-T
p.s., just of curiosity, what would the ACHI module look
like in my modprobe.conf?
next prev parent reply other threads:[~2009-02-22 4:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.10.10301040547120.421-100000@master.linux-ide.org>
2009-02-20 20:48 ` no hotplugging support (FIXME) Todd and Margo Chester
2009-02-20 21:37 ` Alan Cox
2009-02-21 1:03 ` Robert Hancock
[not found] ` <49A0B1D8.10303@verizon.net>
[not found] ` <49A0C8F5.30405@gmail.com>
2009-02-22 4:09 ` Todd and Margo Chester [this message]
2009-02-22 4:15 ` Robert Hancock
2009-02-22 4:40 ` Todd and Margo Chester
2009-02-22 4:43 ` Robert Hancock
2009-02-22 4:50 ` Todd and Margo Chester
2009-02-22 7:40 ` Robert Hancock
2009-02-24 21:52 ` Todd and Margo Chester
2009-02-24 21:57 ` Todd and Margo Chester
2009-02-24 23:59 ` Robert Hancock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49A0CFFF.3050806@verizon.net \
--to=toddandmargo@verizon.net \
--cc=hancockrwd@gmail.com \
--cc=linux-ide@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).