[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: Vivien Bernet-Rollande <vivien.bernet-rollande@xxxxxxxxxxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.