linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robert Hancock <hancockrwd@gmail.com>
To: Todd and Margo Chester <ToddAndMargo@verizon.net>
Cc: linux-ide@vger.kernel.org
Subject: Re: no hotplugging support (FIXME)
Date: Tue, 24 Feb 2009 17:59:14 -0600	[thread overview]
Message-ID: <49A489D2.9080404@gmail.com> (raw)
In-Reply-To: <49A46D65.1030008@verizon.net>

Todd and Margo Chester wrote:
> 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,
> 
> I have
> 
> $ modprobe --dry-run -v ahci
> insmod /lib/modules/2.6.18-92.1.22.el5/kernel/drivers/ata/ahci.ko
> 
> in my system.  Do I just use "modprobe" to install the module
> and go edit /etc/modprobe.conf?
> 
> And, does the modprobe insertion stay permanent (survives a reboot)?

Running modprobe only loads the module for the current session. You have 
to edit /etc/modprobe.conf to get it to be loaded on boot-up. Also, 
since this driver is needed to mount the root filesystem, you have to 
rebuild the initrd afterwards so that it will contain that driver - you 
should be able to do:

mkinird -f /boot/initrd-2.6.18-92.1.22.el5.img 2.6.18-92.1.22.el5

> 
> I am confused   :-[   Can you point me to a link that gives the
> directions?
> 
> -T


      reply	other threads:[~2009-02-24 23:59 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
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 [this message]

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=49A489D2.9080404@gmail.com \
    --to=hancockrwd@gmail.com \
    --cc=ToddAndMargo@verizon.net \
    --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).