From: Hanno =?utf-8?q?B=C3=B6ck?= Subject: Re: kvm hangs on mkfs Date: Wed, 8 Dec 2010 21:47:09 +0100 Message-ID: <201012082147.09426.hanno@hboeck.de> References: <201012082009.26073.hanno@hboeck.de> <201012081348.23220.iggy@theiggy.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1687971.2vn2oYDSiV"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Brian Jackson Return-path: Received: from zucker.schokokeks.org ([78.46.69.5]:43255 "EHLO zucker.schokokeks.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751856Ab0LHVAa (ORCPT ); Wed, 8 Dec 2010 16:00:30 -0500 In-Reply-To: <201012081348.23220.iggy@theiggy.com> Sender: kvm-owner@vger.kernel.org List-ID: --nextPart1687971.2vn2oYDSiV Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Am Wednesday 08 December 2010 schrieb Brian Jackson: > qcow2 (I hope you are using that vs just qcow) is known to be a tad on the > slow side on metadata heavy operations (i.e. mkfs, installing lots of > files, etc.). One trick some of us use is to use the -drive syntax (vs > -hda) and set the cache option to unsafe or writeback for the install > process. The other alternative is to use preallocated raw images (i.e. > made with dd vs qemu-img). I've been informed that in 0.12.5 the writeback > trick won't do any good due to some extra fsync()s. So your best bet is to > upgrade to 0.13 and use cache=3Dunsafe. This helped, thanks a lot. (Maybe this could be documented at a more obvious place? I tried googling=20 quite a lot for the solution - a faq entry explicitely mentioning mkfs? It= =20 seems a quite common task to me) =2D-=20 Hanno B=C3=B6ck Blog: http://www.hboeck.de/ GPG: 3DBD3B20 Jabber/Mail: hanno@hboeck.de http://schokokeks.org - professional webhosting --nextPart1687971.2vn2oYDSiV Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEABECAAYFAkz/7s0ACgkQr2QksT29OyDnsACeJDykcVc8sc/vl0kG+zcaz4J7 F4oAn3u2YqxHtd14X2VV0kHdHx6b7747 =xL63 -----END PGP SIGNATURE----- --nextPart1687971.2vn2oYDSiV--