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: Vivien Bernet-Rollande <vivien.bernet-rollande@xxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Expanding a virtual block device
From: Victor Ramirez Lorca <vramirez@xxxxxxxxx>
Date: Mon, 2 May 2011 08:35:42 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 02 May 2011 05:36:53 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ipgreTpNkbnshC4/Jn4SgIi5LbObgoT+9sl0GSpkXg8=; b=daisY/asHHFKeNc0RMCDYmbBjRAyInWm4GPiqnJBfKW2MHLlnh/W7fXaIm2Rz5l0gs 191uT0zU+jw9sdY25tjdg4QF7u8Yk6xuSyrzvHSv7ouQxcFT65D7G9TnNTdQBULmzWfG 7PhvU5hAdSYbQX7Y7oH6QT7SPb1IU+Qd9CbU8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=KB7BWv/HvwcX3tIal8ycEbozIsBM0/rA0kgWc3r62wfV5baMDg/AfAoTpikD6F+M19 dglY5r2AeG8QhupPmrJtiilDjgG0JV8dejI0N4kShyIqPO4ljzfLLZwh7v35w4AVO4u7 9k+RutqVcj3V2UiQEeGYsZB/CFkY57QBmHqII=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4DBE6629.6000208@xxxxxxxxxxxxxxxxx>
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, May 2, 2011 at 5:07 AM, Vivien Bernet-Rollande
<vivien.bernet-rollande@xxxxxxxxxxxxxxxxx> wrote:
> in my case the domU resides in a lv at the dom0 too, i've used
>>
>> lvextend instead of  vdi-resize
>>
>>  Dom0#  lvextend -L +5G /dev/vg_r710/vol_xyz
>>
>> and followed the remaining steps from this link
>>
>>
>> http://www.michelem.org/2009/01/16/how-to-resize-a-disk-partition-on-a-xen-guest-linux-host/
>>
>> at the end  used  resizefs
>>
>> DomU# resize2fs /dev/vg_vm/lv_root
>>
>
> The solution you are offering requires a reboot of the VM, which I'm trying
> to avoid. I know how to resize a LV and filesystem.
> I want to resize my disk, and have Xen and the domU notice it, without
> having to reboot the domU.
>
> Is this actually possible with Xen ?

  i have not tested it but this should work on DomU  in the stage of
"reboot domU"
  partprobe(8)  part of gnuparted.

http://www.cyberciti.biz/tips/re-read-the-partition-table-without-rebooting-linux-system.html



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

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