[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Libguestfs] How to emulate block I/O timeout on qemu s
From: |
Richard W.M. Jones |
Subject: |
Re: [Qemu-devel] [Libguestfs] How to emulate block I/O timeout on qemu side? |
Date: |
Tue, 6 Nov 2018 09:43:06 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Nov 06, 2018 at 09:14:57AM +0000, Richard W.M. Jones wrote:
> This link shows how to combine delay and error filters together:
>
> https://rwmj.wordpress.com/2018/11/04/nbd-graphical-viewer/
Oops, that's in a forthcoming blog post not this one. Not enough
caffeine this morning.
Combining the filters is easy however:
nbdkit --filter=error --filter=delay \
memory size=$size \
rdelay=$delay wdelay=$delay \
error-rate=100% error-file=/tmp/error
Then touching /tmp/error will inject errors, and removing /tmp/error
will stop injecting errors.
The documentation says you should be able to write error-rate=1
instead of error-rate=100%, but in fact that was broken until
recently, and fixed in:
https://github.com/libguestfs/nbdkit/commit/ee2d3b4fea6d4b7618262f85f882374c23674b4a
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
- Re: [Qemu-devel] How to emulate block I/O timeout on qemu side?, (continued)
- Re: [Qemu-devel] How to emulate block I/O timeout on qemu side?, John Snow, 2018/11/02
- Re: [Qemu-devel] How to emulate block I/O timeout on qemu side?, Dongli Zhang, 2018/11/03
- Re: [Qemu-devel] How to emulate block I/O timeout on qemu side?, John Snow, 2018/11/05
- Re: [Qemu-devel] How to emulate block I/O timeout on qemu side?, Marc Olson, 2018/11/12
- Re: [Qemu-devel] How to emulate block I/O timeout on qemu side?, Dongli Zhang, 2018/11/12
- Re: [Qemu-devel] How to emulate block I/O timeout on qemu side?, Marc Olson, 2018/11/12
- Re: [Qemu-devel] How to emulate block I/O timeout on qemu side?, Dongli Zhang, 2018/11/12
Re: [Qemu-devel] How to emulate block I/O timeout on qemu side?, Eric Blake, 2018/11/05