From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Bareiro Subject: Hot resizing of partitions on HVM Date: Sun, 4 Jul 2010 12:04:38 -0300 Message-ID: <20100704150438.GA19563@defiant.freesoftware> Reply-To: dbareiro@gmx.net Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" To: KVM General Return-path: Received: from mail.gmx.net ([213.165.64.20]:49703 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752981Ab0GDPEo (ORCPT ); Sun, 4 Jul 2010 11:04:44 -0400 Received: from defiant (defiant.freesoftware [10.1.0.65]) by hermes.freesoftware (Postfix) with ESMTP id 62D8B869 for ; Sun, 4 Jul 2010 12:02:48 -0300 (ART) Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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/ --=20 Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Lenny - Linux user #188.598 --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkwwowYACgkQZpa/GxTmHTdMSgCeL4K2fN7M94PP6QDfB2pczgCJ 8poAoJR+5O1zk1F/E2Epfa/i7KNx5oaE =P54a -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--