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] how to expand disk inside of domU?

To: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] how to expand disk inside of domU?
From: Matej Zary <zary@xxxxxxxxx>
Date: Tue, 4 May 2010 22:24:07 +0200
Accept-language: en-US
Acceptlanguage: en-US
Delivery-date: Tue, 04 May 2010 13:34:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <2fc1-4be02700-17-9e01b00@40496849>
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: 4BD59F62.9070807@xxxxxxx,<2fc1-4be02700-17-9e01b00@40496849>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcrrmZHwNJ1e2Rq4QvWDCA4g+0U+NAAK3GeE
Thread-topic: [Xen-users] how to expand disk inside of domU?
Sounds more like he will need resize the physical volume in the DomU first - 
pvresize (to initialize the new added space in his volume group). (this could 
be done also in Dom0 with DomU in shut down state).

Regards

Matej


________________________________________
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
[xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Donny Brooks 
[dbrooks@xxxxxxxxxxxxxxxx]
Sent: 04 May 2010 15:54
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] how to expand disk inside of domU?

 You will need to extend your lv and then expand the underlying filesystem. 
lvextend and resize2fs will be the tools you will want to use.

With an img file I am not sure of the exact steps, but it can't be too hard. 
You will need to do this with the domu stopped.

--

Donny B.

On Monday, April 26, 2010 09:12 AM CDT, Dan Waterloo <dan@xxxxxxx> wrote:

> i'm trying to find a way to expand a selected partition in my DomU...
>
> when in a console in the domU, here are the disks available:
>
> [root@localhost ~]# df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/mapper/VolGroup00-LogVol00
>                        13G  3.5G  8.1G  30% /
> /dev/xvda1             99M   21M   74M  22% /boot
> tmpfs                 257M     0  257M   0% /dev/shm
>
> I'd like to expand the /dev/mapper/VolGroup00-LogVol00 disk to 25G
>
> The domU is based on an image file, 'webs.img' that resides on a disk in
> the Dom0.
> In the dom0, I add space to the webs.img file with the following command:
>
> |dd if=/dev/zero bs=1024k count=12288 >> webs.img
>
> then, when i create the webs domu, i.e. xm create webs;
> it starts, and the new space shows up as "unintialized' space |
> in the domu. (I see this using vnc to reach the desktop, and
> open the LVM tool to see the new space).
>
> The problem that I'm having is to 'attach' the unintialized space in the
> domU to the /dev/mapper/VolGroup00-LogVol00 disk, and then to expand the
> LogVol00 disk to take advantage of the space.
>
> I'm running Centos5 on the dom0, and in the domU. Xen is version 3.
>
> Any suggestions? if so, can you please be explicit as to _where_ to run the 
> various
> commands, in the Dom0 or DomU? At this point, I'm pretty confused about
> what to do where....
>
> Thanks!
>
>




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

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

<Prev in Thread] Current Thread [Next in Thread>