From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Hajnoczi Subject: Re: Inconsistent guest OS disk size compared to volume.img size Date: Wed, 14 Oct 2015 10:01:29 +0100 Message-ID: <20151014090129.GA1220@stefanha-thinkpad> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Jay Fishman Return-path: Received: from mail-wi0-f170.google.com ([209.85.212.170]:37426 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753343AbbJNNqL (ORCPT ); Wed, 14 Oct 2015 09:46:11 -0400 Received: by wijq8 with SMTP id q8so82677786wij.0 for ; Wed, 14 Oct 2015 06:46:10 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Sep 29, 2015 at 12:02:17AM -0700, Jay Fishman wrote: > I have looked all over the internet but I can not even find a > reference to this issue. > > > I have installed the following on Linux Mint 17.1 > QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.19), Fabrice Bellard > > On that, I have created a Ubuntu 14.04.3 LTS guest and created a > storage volume of 12.88GB. The format that I used was raw. > > The host uses a physical mirrored drive and I did NOT use LVM (ext4 > was the format type) > > When installing the guest, I selected to "use entire disk" and again I > did NOT use LVM (ext4 was the format type) > > > After installation, the guest reports I am using 23.8% of 4.84GB. Why > is the disk size 4.84GB instead of 12.88GB? > > The size of the guest virtual disk is being reduced by almost a third? If you still need help with this, please provide the following information: 1. Output of "fdisk -lu /dev/vda" and "df -h /" from inside the guest. You may need to adjust the block device path if the root file system isn't on the first virtio-blk device (e.g. /dev/vdb or /dev/sda). 2. Output of "stat disk.img" from the host, where "disk.img" is the filename. Thanks, Stefan