linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michel Lespinasse <walken@zoy.org>
To: linux-ide@vger.kernel.org
Subject: SATA hotswap and write caches
Date: Sun, 3 Jun 2007 03:43:35 -0700	[thread overview]
Message-ID: <20070603104334.GH18680@zoy.org> (raw)

Hi,

I have a few questions about disk cache synchronization. I'm running a
setup with several SATA drives (seagate ST3500630AS), installed in
hot-swap bays. The host controller is an Intel ICH8 running in AHCI
mode, if that makes any difference. Also my kernel is from kernel.org,
version 2.6.20.12.

When hot-removing a drive, I get messages such as:
Jun  1 23:48:50 server kernel: ata3.00: detaching (SCSI 2:0:0:0)
Jun  1 23:48:50 server kernel: Synchronizing SCSI cache for disk sdb: 
Jun  1 23:48:50 server kernel: FAILED
Jun  1 23:48:50 server kernel:   status = 0, message = 00, host = 4, driver = 00
Jun  1 23:50:22 server kernel:   <3>ata3: exception Emask 0x10 SAct 0x0 SErr 0x4050002 action 0x2 frozen

When the drive is plugged it mentions about caching:
Jun  1 23:50:32 server kernel: SCSI device sdb: write cache: enabled, read cache: enabled, doesn't support DPO or FUA.

I tried to google for more information about caching but could not come out
with much. Mainly I found http://linux-ata.org/shutdown.html but this only
talks about server poweron/down and suspend operations, not hotswap issues.

I'm a bit confused about this caching and have two questions:

* Is there anything one needs to know before hot-removing a drive ?
  Maybe a file under /sys that asks the drive to flush its cache ?

* Does the kernel issue such cache flushing commands when executing
  sync() or umount() operations ?

Please CC me in replies - I have subscribed to the list but did not get
the majordomo confirmation message yet so who knows if that worked :)

Thanks,

-- 
Michel "Walken" Lespinasse
"Bill Gates is a monocle and a Persian cat away from being the villain
in a James Bond movie." -- Dennis Miller

             reply	other threads:[~2007-06-03 11:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-03 10:43 Michel Lespinasse [this message]
2007-06-03 14:24 ` SATA hotswap and write caches Jeff Garzik
2007-06-04  0:53   ` Michel Lespinasse
2007-06-08 13:05     ` Tejun Heo

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=20070603104334.GH18680@zoy.org \
    --to=walken@zoy.org \
    --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).