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: Rubén Marrero <ruben@xxxxxxxx>
Subject: Re: [Xen-users] how to expand disk inside of domU?
From: Dan Waterloo <dan.waterloo@xxxxxxxxx>
Date: Mon, 26 Apr 2010 16:00:00 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 26 Apr 2010 14:02:13 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type; bh=tieXmvk2VPbJ9iFUSbYHogdBHnZXH10kgJQEyKmD4f0=; b=jfnnCqcDat31VvLWg7Nrbz5BJnAME6mqihp3gZ2pSBHBWjHw5l+tyeILgaIquYmzoD xalS3Cv2Kd2xDJ+AGkfKqyQ4815FLlCqPxAzK7ivXk0r/Ua2O8F4uNbC22WsMgIrrRpf a2YksLieLsOnpGwtibd98ocE1c9Xwu5nAfuTk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; b=nZcbaoORIswbKRM1wUPEWmox1SjFh6QWHsuYkbglPjl9GSoXyMpyRMMWp/eEtjFIcp hgzFJj3o5102TgIt/VKgH3Fp8ReIrGa/3iwZivRNHAT8uRtotrkKwYdSWNLgBiuwaPYw +1mM0uxMAvIL8yGktpILChggws5eNy35B/NxY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <391216056.448.1272315074081.JavaMail.root@xxxxxxxxxxxxxxx>
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: <391216056.448.1272315074081.JavaMail.root@xxxxxxxxxxxxxxx>
Reply-to: Dan Waterloo <dan.waterloo@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.24 (Windows/20100228)


Rubén Marrero wrote:

The "webs.img" file is a LVM partition, which primarily resides in /dev/mapper and then you decided to mount it ?
 


De: "Dan Waterloo" <dan.waterloo@xxxxxxxxx>
Para: xen-users@xxxxxxxxxxxxxxxxxxx
Enviados: Lunes, 26 de Abril 2010 15:36:02
Asunto: [Xen-users] how to expand disk inside of domU?

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

No, the webs.img file exists in the dom0, and is located at:
/mnt/iscsi/webs.img
which is on an iscsi drive...
I haven't mounted webs.img, the domU 'webs' uses that file as it's hard drive(s).
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users