From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=55897 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPa93-0000UQ-7n for qemu-devel@nongnu.org; Mon, 06 Dec 2010 07:26:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPa8f-0007Vu-M7 for qemu-devel@nongnu.org; Mon, 06 Dec 2010 07:26:17 -0500 Received: from penha.inf.furb.br ([201.54.201.4]:48837 helo=mailserver.inf.furb.br) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPa8f-0007TG-3W for qemu-devel@nongnu.org; Mon, 06 Dec 2010 07:25:53 -0500 Date: Mon, 6 Dec 2010 10:25:36 -0200 (BRST) From: Vandeir Eduardo In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="919143625-842140128-1291638336=:4150" Subject: [Qemu-devel] Re: Block device resize detection List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Kevin Wolf , qemu-devel Developers , KVM list This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --919143625-842140128-1291638336=:4150 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Humm, unfortunately I'm not a developer, only a sys admin, but this would be a nice feature to avoid restarting vm guests. I didn't want, but I think I will have to add another software layer (LVM) inside the guest vm. This way, when I need more space, I hot-add another device and add it to the volume group of the guest vm. Thanks. On Mon, 6 Dec 2010, Alexander Graf wrote: > Hi Vandeir, >=20 >=20 > On 06.12.2010, at 11:49, Vandeir Eduardo wrote: >=20 > > Hi guys, > >=20 > > I have a KVM guest machine, lets name it VMTEST, > > using an iSCSI LUN as a virtio device. Something like this: > >=20 > > > > > > > dev=3D'/dev/disk/by-path/ip-w.x.y.z:3260-iscsi-iqn.2010-10.br.furb.inf:= disk0-lun-4'/> > > > > > >=20 > > On iSCSI server, if I resize this LUN, this resize is detected > > on KVM host, but not on the VMTEST. The device resize is only > > detected if I restart VMTEST. Is there a way to make VMTEST detect > > the /dev/vda resize without restarting it? > >=20 > > On VMTEST I already tried commands like partprobe /dev/vda,=20 > > hdparm -z /dev/vda and blockdev --rereadpt /dev/vda, but none of > > was capable to detect the block device (/dev/vda) resize. >=20 > The probing of an image is only done at initialization time of the block = backend driver, which in your case is the bootup. The only chance you have = of reevaluating it would be to hot-add another virtio device with the resiz= ed image. >=20 > Alternatively, you could also try to write a patch for reevaluation plumb= ing, so that the hba emulation layer can trigger reevaluation in the disk l= ayer. >=20 >=20 > Alex >=20 >=20 __________________________________________ Vandeir Eduardo (CCNA, LPIC-2, MCSA 2003 Server) Laborat=F3rio de Computa=E7=E3o e Inform=E1tica (LCI) - Campus III Fundacao Universidade Regional de Blumenau (FURB) Rua S=E3o Paulo, 2171 - Sala A009 - CEP: 89.030-000 Blumenau, SC, Brasil. Fone: +55 47 3321-7342 --919143625-842140128-1291638336=:4150--