From: Philipp Hahn <hahn@univention.de>
To: day knight <back2games@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: qcow2 eating up space when formattng Centos
Date: Mon, 24 Oct 2011 09:17:14 +0200 [thread overview]
Message-ID: <201110240917.18718.hahn@univention.de> (raw)
In-Reply-To: <CAHaoJr+tMksHPMEYU49H9BJ5yH11AY_PzKa0OWYnE2bVPObBcg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1586 bytes --]
Hello Anonnymous,
On Monday 24 October 2011 03:22:15 day knight wrote:
> I am not sure if this is the right behaviour but qcow2 image seems to
> grow when Centos is only formatting the image. I mean it goes upto 30
> Gig once evrything is formatted and installed and it is minimal Centos
> install with no gui or apps just baseline.
>
> OS = Centos5
> Virtualization: KVM
> Total Qcow2 Image Created = 1TB
>
> Once Centos is installed the qcow2 image shows as around 30 Gig. I
> have done several install and they were all less than 4 gig or even
> lesser but this seems to not make sense
>
> Can someone please explain what is going on?
You didn't tell which file system you're using. ext3 needs to initialize its
meta data (super blocks, inote tables), which are scattered all over the
image. Depending on your cluster size fpr the qcow2 file, each (small) write
takes the space of a full cluster. Add to that the meta-data needed by qcow2
itself (a two-level tree), 30 GiB seem to be okay.
You might want to try ext4 with "delayed allocation" (IMHO enabled by
default), which doesn't write all over the range, since initialization of the
superblock and inode tables is delayed until they are acually needed.
Sincerely
Philipp
--
Philipp Hahn Open Source Software Engineer hahn@univention.de
Univention GmbH Linux for Your Business fon: +49 421 22 232- 0
Mary-Somerville-Str.1 D-28359 Bremen fax: +49 421 22 232-99
http://www.univention.de/
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2011-10-24 7:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-24 1:22 qcow2 eating up space when formattng Centos day knight
2011-10-24 7:17 ` Philipp Hahn [this message]
[not found] ` <CAHaoJrJfYgtAw2rA7yHmzxf3n9CqaVJk1n6=2+-UMNVdW_rCJQ@mail.gmail.com>
2011-10-28 5:47 ` Philipp Hahn
2011-10-28 20:05 ` day knight
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=201110240917.18718.hahn@univention.de \
--to=hahn@univention.de \
--cc=back2games@gmail.com \
--cc=kvm@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).