WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Expanding a virtual block device

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Expanding a virtual block device
From: Vivien Bernet-Rollande <vivien.bernet-rollande@xxxxxxxxxxxxxxxxx>
Date: Mon, 02 May 2011 14:42:26 +0200
Delivery-date: Mon, 02 May 2011 05:43:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4DBE8AF9.9050905@xxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4DB95EAF.2040502@xxxxxxxxxxxxxxxxx> <BANLkTikRxrb1ANDpy6fDA1emd_hYnH7NNQ@xxxxxxxxxxxxxx> <4DBE6629.6000208@xxxxxxxxxxxxxxxxx> <4DBE8AF9.9050905@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110419 Lightning/1.0b2 Thunderbird/3.1.9

I tried this and it's actually not a Xen issue. A resized volume in dom0
(even on DRBD :) ) is noticed by the domU.
So if your disk was 100G before and you add another 100G, fdisk(in domU)
will report a 200G disk after the resize in dom0.

This is interesting, as it is not the behaviour I have observed.

Let's check the disk (in dom0) at the start :
> x1:/home/vbernetr# blockdev --getsize64 /dev/sdc
> 42954915840

And in the domU :
> root@x-debian:~# blockdev --getsize64 /dev/xvdd
> 42954915840

Now I resize the iSCSI Lun :
> group01> volume select voltest01 size 70G

On the dom0, I rescan the connected targets, and check the size of the device :
> x1:/home/vbernetr# iscsiadm -m node -R
> x1:/home/vbernetr# blockdev --getsize64 /dev/sdc
> 75167170560

However, in domU, I still have the old size :
> root@x-debian:~# blockdev --getsize64 /dev/xvdd
> 42954915840

After a reboot domU sees the correct size.
> root@x-debian:~# blockdev --getsize64 /dev/xvdd
> 75167170560

Are you sure the experience you are describing happens without a reboot ? And if so, how are your virtual block devices configured ? Are you using "phy", "file", "tap:aio", or something else ?

--
Vivien Bernet-Rollande
Systems&  Networking Engineer
Alter Way Hosting


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users