public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Block device resize detection
@ 2010-12-06 10:49 Vandeir Eduardo
  2010-12-06 11:29 ` Alexander Graf
  0 siblings, 1 reply; 4+ messages in thread
From: Vandeir Eduardo @ 2010-12-06 10:49 UTC (permalink / raw)
  To: kvm

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1114 bytes --]

Hi guys,

I have a KVM guest machine, lets name it VMTEST,
using an iSCSI LUN as a virtio device. Something like this:

<disk type='block' device='disk'>
   <driver name='qemu' type='raw' cache='none'/>
   <source 
dev='/dev/disk/by-path/ip-w.x.y.z:3260-iscsi-iqn.2010-10.br.furb.inf:disk0-lun-4'/>
      <target dev='vda' bus='virtio'/>
</disk>

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?

On VMTEST I already tried commands like partprobe /dev/vda, 
hdparm -z /dev/vda and blockdev --rereadpt /dev/vda, but none of
was capable to detect the block device (/dev/vda) resize.

Thanks in advance. 

__________________________________________
Vandeir Eduardo
(CCNA, LPIC-2, MCSA 2003 Server)
Laboratório de Computação e Informática (LCI) - Campus III
Fundacao Universidade Regional de Blumenau (FURB)
Rua São Paulo, 2171 - Sala A009 - CEP: 89.030-000
Blumenau, SC, Brasil.
Fone: +55 47 3321-7342

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-12-06 13:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-06 10:49 Block device resize detection Vandeir Eduardo
2010-12-06 11:29 ` Alexander Graf
2010-12-06 12:25   ` Vandeir Eduardo
2010-12-06 13:12   ` Kevin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox