From: Alexandre DERUMIER Subject: Re: expanding virtual disk based on lvm Date: Wed, 05 Sep 2012 11:15:34 +0200 (CEST) Message-ID: References: <5046FE66.7080207@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org, Avi Kivity To: Ross Boylan Return-path: Received: from mailpro.odiso.net ([89.248.209.98]:33630 "EHLO mailpro.odiso.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758563Ab2IEJZI convert rfc822-to-8bit (ORCPT ); Wed, 5 Sep 2012 05:25:08 -0400 In-Reply-To: <5046FE66.7080207@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: >>Certainly restart (shutting down qemu and restarting it, not a reset)= =20 >>works, I thought you wanted online resize.=20 You can resize an lvm volume online without restarting the guest. just use lvextend to extend you lvm volume then use qmp block_resize command with the same size. (so the guest wil= l see the new size) I have implemented this in the proxmox kvm distribution, and it's worki= ng fine. (tested with virtio-blk and virtio-scsi) ----- Mail original -----=20 De: "Avi Kivity" =20 =C3=80: "Ross Boylan" =20 Cc: kvm@vger.kernel.org=20 Envoy=C3=A9: Mercredi 5 Septembre 2012 09:25:26=20 Objet: Re: expanding virtual disk based on lvm=20 On 09/04/2012 09:58 PM, Ross Boylan wrote:=20 > On Tue, 2012-09-04 at 15:53 +0300, Avi Kivity wrote:=20 >> On 08/28/2012 11:26 PM, Ross Boylan wrote:=20 >> > My vm launches with -hda /dev/turtle/VD0 -hdb /dev/turtle/VD1, whe= re VD0=20 >> > and VD1 are lvm logical volumes. I used lvextend to expand them, b= ut=20 >> > the VM, started after the expansion, does not seem to see the extr= a=20 >> > space.=20 >> >=20 >> > What do I need to so that the space will be recognized?=20 >>=20 >> IDE (-hda) does not support rechecking the size. Try booting with=20 >> virtio-blk. Additionally, you may need to request the guest to resca= n=20 >> the drive (no idea how to do that). Nor am I sure whether qemu will=20 >> emulate the request correctly.=20 >>=20 > Thank you for the suggestion.=20 >=20 > I think the "physical" recognition of the new virtual disk size was=20 > accomplished when I restarted the VM, without any other steps. I've h= ad=20 > plenty of other problems, but I think at the VM level things are good= =2E=20 Certainly restart (shutting down qemu and restarting it, not a reset)=20 works, I thought you wanted online resize.=20 --=20 error compiling committee.c: too many arguments to function=20 --=20 To unsubscribe from this list: send the line "unsubscribe kvm" in=20 the body of a message to majordomo@vger.kernel.org=20 More majordomo info at http://vger.kernel.org/majordomo-info.html=20