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/
Home Products Support Community News


Re: [Xen-users] Creation of additional image within a domU

To: "Xen Users" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Creation of additional image within a domU
From: "john maclean" <jayeola@xxxxxxxxx>
Date: Sun, 25 Feb 2007 00:05:22 +0000
Delivery-date: Sat, 24 Feb 2007 16:04:52 -0800
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hOOMELzO/51/ZCCGWQPUnPdDvkiH6oclodccWUzwGAMqCVNnc50clSRaPsZWc+IEY7sSIzCorxVHFY973FqCNipUt+RggzViLzQmsiPBUg08GHxz7YMFmAkcQPJWcJAkgzTJlXCkvQcCJQHJjaVO/ljMfjXQJQaUF60nmEKqyTY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HtWhtjcSR7QAFjPhlfQUZaE47KWaaehNP719s4fYHOh45xvXrXjZC4S0F1aCFH5QBUQVbMNQNRWxWpWf3zjNxdpM+Y+UNi4pDTi5gGeoFs1gMjGDTfmJGZTuMPN3wLlg8C9Z6ahF1MkOlUwRCp9iXlxYd7yx2v/hO7OvnS7fKvQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4170c1720702240426u2bf8b90fiae16455b75d7ed0b@xxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4170c1720702240346o453c7c2ay4208df5ab3a4ccae@xxxxxxxxxxxxxx> <1172319613.15528.605.camel@xxxxxxxxxxxxxxxxxxxxx> <4170c1720702240425l5cf6cb11r8dd64e91ec79d72a@xxxxxxxxxxxxxx> <4170c1720702240426u2bf8b90fiae16455b75d7ed0b@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Um, for some reason I don't get any output when i run `fdisk -l`
within a domU. Here is the /etc/fstab for the domU.

[root@cpxvm ~]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
# /etc/fstab: static file system information.
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/sda1       /               ext3    defaults        1 1
/dev/sda2       none            swap    sw              0 0
/dev/sda3       /alpha         ext3    defaults        1 1
none            /dev/pts        devpts  gid=5,mode=620  0 0
none            /dev/shm        tmpfs   defaults        0 0
none            /proc           proc    defaults        0 0
none            /sys            sysfs   defaults        0 0

Created image and run 'xm block attach`. All ok so far. Now it should
be a case of running fdisk within the domU, right?

On 24/02/07, john maclean <jayeola@xxxxxxxxx> wrote:
Thanks for that speedy reply! Didn't expect any one to make sense of
my jumbled initial message.

 -*- mode fingers_crossed -*-

On 24/02/07, Tim Post <tim.post@xxxxxxxxxxxxxxx> wrote:
> John, sorry I forgot to mention something to you. If you do slice up a
> virtual block device into partitions, you will need to use one of the
> quemu tools known as 'lomount' to mount them from dom-0.
> You should probably get familiar with it before putting anything serious
> on the drive.
> I have also never attempted to fsck a sliced lv or file backed vbd image
> from dom-0, I'm not quite sure how you would go about doing that if
> necessary.
> Best,
> --Tim
> On Sat, 2007-02-24 at 11:46 +0000, john maclean wrote:
> > Chaps,
> >
> > Perhaps this question is a little basic for this list but I'm not
> > really sure of the simplest method or best tool for the job.
> >
> > I've created some images with `dd=/dev/zero ....` and I'm using them
> > for the domUs now. Some of them have been running for a few months
> > with no probs. Trouble is that I'd like to create a separate partition
> > within the domU. Options:-
> > 1 - use fdisk? Not sure if that's possible for a file-based image.
> > Can't run it within the domU
> > 2 - run dd to create another partiton? Not sure how that would work
> > 3 - create the new image from scratch and create the new partition as
> > required and tell /etc/fstab about it.
> >

John Maclean  - 07739 171 531

John Maclean  - 07739 171 531

John Maclean  - 07739 171 531

Xen-users mailing list