* Re: can I freeze I/O for some time to a given disk / md / dm
@ 2009-04-07 9:23 Tomasz Chmielewski
0 siblings, 0 replies; only message in thread
From: Tomasz Chmielewski @ 2009-04-07 9:23 UTC (permalink / raw)
To: Linux IDE, Gabor Gombas
> On Tue, Dec 16, 2008 at 01:01:27PM +0100, Tomasz Chmielewski wrote:
>
>> Is it possible to "freeze I/O" for some time to a given disk / md / dm
>> device?
>>
>> Say, "freeze I/O" so that userspace waits for any response for 30, 60
>> seconds or more?
>
> For real disks you can use /sys/block/sdX/device/unload_heads to achieve
> something similar (see Documentation/laptops/disk-shock-protection.txt
> in the kernel source about how to use it). That won't work for md/dm
> devices though.
For drives which don't support "unload_heads" plain hdparm should work:
hdparm -Y /dev/sdX
(possibly repeated in a loop for some time).
--
Tomasz Chmielewski
http://wpkg.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-07 9:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-07 9:23 can I freeze I/O for some time to a given disk / md / dm Tomasz Chmielewski
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).