From: "Bryn M. Reeves" <bmr@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] can I freeze I/O for some time to a given disk / md / dm device?
Date: Tue, 16 Dec 2008 12:35:36 +0000 [thread overview]
Message-ID: <4947A098.5020703@redhat.com> (raw)
In-Reply-To: <49479897.1080500@wpkg.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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?
You can suspend/resume dm devices via the dmsetup command.
> If not, is it possible to reset a link repeatedly, like ATA does when it
> hits certain disk problems? I.e., can I do the below manually?
>
> ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
> ata4.00: cmd 25/00:08:b8:c2:78/00:00:21:00:00/e0 tag 0 dma 4096 in
> res 40/00:00:bb:c2:78/40:00:21:00:00/e0 Emask 0x4 (timeout)
> ata4.00: status: { DRDY }
> ata4: hard resetting link
This (or something close to it) should be possible using the SCSI fault
injection framework, a project that uses systemtap for injecting faults
under controlled conditions:
http://sourceforge.net/projects/scsifaultinjtst/
http://lwn.net/Articles/265187/
http://lwn.net/Articles/289932/
Regards,
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAklHoJgACgkQ6YSQoMYUY94xEwCeOJ/epr+4QipelzzeH22M52az
53MAoLOZTNPlwq6t1PyLgNA/Ous64++z
=apWm
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2008-12-16 12:38 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 [this message]
2008-12-16 12:53 ` Tomasz Chmielewski
2008-12-16 16:13 ` Gabor Gombas
2008-12-16 16:19 ` Tomasz Chmielewski
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=4947A098.5020703@redhat.com \
--to=bmr@redhat.com \
--cc=linux-lvm@redhat.com \
/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.