All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Bareiro <daniel-listas@gmx.net>
To: KVM General <kvm@vger.kernel.org>
Subject: Hot resizing of partitions on HVM
Date: Sun, 4 Jul 2010 12:04:38 -0300	[thread overview]
Message-ID: <20100704150438.GA19563@defiant.freesoftware> (raw)

[-- Attachment #1: Type: text/plain, Size: 1048 bytes --]

Hi all!

Is it possible to resize the partition of a KVM virtual machine without
it is down?

With Xen PV virtual machines, I get this by umounting the filesystem on
the VM, detaching the device and then resizing the logical volume and
file system in the VMHost. Finally, I attach the device and mount the
filesystem on virtual machine. All this without the VM is down.

The procedure that I am using at the moment to resizing a partition in a
KVM virtual machine is the following one:

* Shutdown the VM.
* Resize the logical volume which is the partition to resize.
* Boot a KVM VM with PartedMagic [1] and to extend the partition until
  it has the wished size using GParted.
* Shutdown the KVM VM with PartedMagic.
* Boot the VM with the new partition size.


There is some more efficient way to do it?


Thanks in advance for your replies.

Regards,
Daniel

[1] http://partedmagic.com/
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

                 reply	other threads:[~2010-07-04 15:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20100704150438.GA19563@defiant.freesoftware \
    --to=daniel-listas@gmx.net \
    --cc=dbareiro@gmx.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.