[xen-tools] Re: Traffic accouting with xen
Steve Kemp
steve at steve.org.uk
Sun Aug 20 10:51:41 CEST 2006
On Sun, Aug 20, 2006 at 08:25:06AM +0530, George Cherian wrote:
> I have another problem now. How do I dynamically increase the size
> of the disk image? Is this possible?
[Any questions like this are probably better suited to the
Xen lists:
http://lists.xensource.com/xen-users ]
> That is, I first create say 1Gb disk as root, and then I later
> want to increase it to 2GB.
If you're using LVM to store your images you'd resize them as
normal for LVM:
http://www.debian-administration.org/articles/410
If you're using loopback images to store your disks then you'd
resize those as you would normally too:
Use dd to extend the image file to some new size, eg 20Gb:
>dd if=/dev/zero of=<image-name> bs=1 count=1 seek=20G conv=notrunc
Check the filesystem for errors:
>e2fsck -f -y <imagename>
Resize the filesystem on the volume:
[ext2 / ext3:]
>resize2fs <image name>
(You might use other tools if you want to use a different filesystem
on your image.)
In both cases you must shut down the Xen guest first, or you'll
have corruption.
Steve
--
More information about the xen-tools-discuss
mailing list