qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] qemu-img problem when create a file larger than fs's si


From: yuxh
Subject: Re: [Qemu-devel] qemu-img problem when create a file larger than fs's size
Date: Thu, 09 May 2013 16:22:11 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120607 Thunderbird/10.0.5



On 05/09/2013 03:44 PM, Stefan Hajnoczi wrote:
On Wed, May 08, 2013 at 01:18:17PM +0800, yuxh wrote:
I have to consult you a qemu-img's problem.

Is this reasonable to create a file which is larger than the
available size of the fs by qemu-img cmd ?

When I use qemu-img create a file which is larger than the available
size of the fs, the creation is completed succesfully.

However when I use this file in guest as a guest's disk, and write
beyond the size the host file can provides, the guest was paused by
qemu-kvm or libvirt and was in maybe a infinite circle where the
guest just can't be used except I detach the disk from guest or
destroy the guest.

You can change the ENOSPC policy with -drive werror=,rerror=.  See the
QEMU man page.

The default behavior is to pause the guest so the host admin can free up
or add space.  Then the guest can be continued - this will retry the
I/O.

But you can also tell QEMU to pass the error through to the guest using
the -drive werror=,rerror= options.

Stefan



Oh, understand now.
Thank you so much for your explanation.

Yu




reply via email to

[Prev in Thread] Current Thread [Next in Thread]