All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomasz Chmielewski <mangoo@wpkg.org>
To: Gabor Gombas <gombasg@sztaki.hu>
Cc: Linux IDE <linux-ide@vger.kernel.org>,
	Linux-Raid <linux-raid@vger.kernel.org>,
	LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: can I freeze I/O for some time to a given disk / md / dm	device?
Date: Tue, 16 Dec 2008 17:19:21 +0100	[thread overview]
Message-ID: <4947D509.6080005@wpkg.org> (raw)
In-Reply-To: <20081216161312.GI18423@boogie.lpds.sztaki.hu>

Gabor Gombas schrieb:
> 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.

Thanks, I think I have enough hints now.

Bryn M. Reeves on linux-lvm list suggested using dmsetup's 
suspend/resume, which seems to be the easiest way for this purpose 
(requires device mapper / LVM).


-- 
Tomasz Chmielewski
http://wpkg.org

WARNING: multiple messages have this Message-ID (diff)
From: Tomasz Chmielewski <mangoo@wpkg.org>
To: Gabor Gombas <gombasg@sztaki.hu>
Cc: Linux-Raid <linux-raid@vger.kernel.org>,
	Linux IDE <linux-ide@vger.kernel.org>,
	LVM general discussion and development <linux-lvm@redhat.com>
Subject: [linux-lvm] Re: can I freeze I/O for some time to a given disk / md / dm	device?
Date: Tue, 16 Dec 2008 17:19:21 +0100	[thread overview]
Message-ID: <4947D509.6080005@wpkg.org> (raw)
In-Reply-To: <20081216161312.GI18423@boogie.lpds.sztaki.hu>

Gabor Gombas schrieb:
> 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.

Thanks, I think I have enough hints now.

Bryn M. Reeves on linux-lvm list suggested using dmsetup's 
suspend/resume, which seems to be the easiest way for this purpose 
(requires device mapper / LVM).


-- 
Tomasz Chmielewski
http://wpkg.org

  reply	other threads:[~2008-12-16 16:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-16 12:01 can I freeze I/O for some time to a given disk / md / dm device? Tomasz Chmielewski
2008-12-16 12:01 ` [linux-lvm] " Tomasz Chmielewski
2008-12-16 12:35 ` Bryn M. Reeves
2008-12-16 12:53   ` Tomasz Chmielewski
2008-12-16 16:13 ` Gabor Gombas
2008-12-16 16:19   ` Tomasz Chmielewski [this message]
2008-12-16 16:19     ` [linux-lvm] " Tomasz Chmielewski

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=4947D509.6080005@wpkg.org \
    --to=mangoo@wpkg.org \
    --cc=gombasg@sztaki.hu \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-lvm@redhat.com \
    --cc=linux-raid@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.