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] dom0's LVM partition in domU

To: "Markus Gerber" <markus@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] dom0's LVM partition in domU
From: "Emre Erenoglu" <erenoglu@xxxxxxxxx>
Date: Thu, 6 Dec 2007 14:40:49 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 06 Dec 2007 05:41:41 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=jVcQnxlnKs9t6pklUaPoMe5YhuZZuIWl9pgOsTOAcNY=; b=s13YRhz6Xu4swWe+QgCUNy3+b5YxSrz+MkXscMFIE69s/VYxPuNLECCPLn7fChoYHg0jpPzdtHs8v4X3nfywAnIZdl5rkUye3Kqy8IP7CmZto+SetDNe2ybXtfC2ietnnHtX1GQVTmfJvgIMRbdC0N9tqGI8u84Lq4RBLTRIG0c=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=gY8TH+/coXV401YriN/uksewcXj0SEFi+UutyGoMKZ8HDfX1xfi1KPQqHuoAdoWzv+zkcx+Q6e7c3qJuJlkJ06W/JPr72EolWAbCt7XNM0wS2xwSZ4QAB0Etaxuk33+sKSSzCpbq8nyHz//XQVigvwdjqEIGc3V++/qXRmbaq2M=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <3C8A71D5-EA82-476F-932B-D3D06C84C03C@xxxxxxxxxxxxx>
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: <6A2EB997-1378-42A7-8D55-D0B1A986BE0E@xxxxxxxxxxxxx> <6F7D82CF-22B2-4A45-9359-42877488D24A@xxxxxxxxxxxxx> <fe9771a80712060208k3e72c5fy1bcbe0ae5bfee3bf@xxxxxxxxxxxxxx> <1BB0525F-0F51-4993-82A3-ECC1DE059BCC@xxxxxxxxxxxxx> <fe9771a80712060457m3116b538ybf22711d66abec8d@xxxxxxxxxxxxxx> <DFAAD8D1-663A-4242-8F2C-2DDB2BA98F2C@xxxxxxxxxxxxx> <fe9771a80712060520l4906f0efndb4e09f437d1b8e6@xxxxxxxxxxxxxx> <3BCCB0CA-CECD-4425-A675-BB29D3BB8EDB@xxxxxxxxxxxxx> <fe9771a80712060532n163c59edhd4c3af6b1e23cd3d@xxxxxxxxxxxxxx> <3C8A71D5-EA82-476F-932B-D3D06C84C03C@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
It's getting strange. Normally, the DomU kernel shall detect the xvda that we are exporting. Last point, can you paste your kernel and initramfs lines in DomU config file as well as the disk= line ?

Another: do you have the modules of 2.6.22-14-xen kernel in /lib/modules of the DomU system?  have you issued a depmod -a even though these modules shall be in the kernel or initramfs anyway (just to make sure).

Emre

On Dec 6, 2007 2:36 PM, Markus Gerber < markus@xxxxxxxxxxxxx> wrote:
dom1:
uname -a
Linux dom1 2.6.22-14-xen #1 SMP Mon Oct 15 00:35:38 GMT 2007 i686 GNU/Linux

dom0:
uname -a
Linux dom0 2.6.22-14-xen #1 SMP Mon Oct 15 00:35:38 GMT 2007 i686 GNU/Linux

While installing xen, I only used official released XEN packages - no backports etc. I installed dom1 using bootstrap.

Markus



On 06.12.2007, at 14:32, Emre Erenoglu wrote:

Which kernel are you using? can you tell us the output of  uname -a   ?

If /dev/xvd* does not exist even though you're put disk= line in the DomU config file, it may mean that your kernel is not a PV-enabled one. Usually, what we do is to use DomU kernel of the specific distribution, or worst case, use the dom0 kernel for domU also.

Emre


On Dec 6, 2007 2:29 PM, Markus Gerber <markus@xxxxxxxxxxxxx> wrote:
ls -la /dev/xv*
ls: /dev/xv*: No such file or directory

(in dom1 and dom0)


I'm using para virtualization.

When I uncomment the line in dom1's fstab, I can boot without any error, but I don't get another output calling ls -la /dev/xv*

Markus


On 06.12.2007, at 14:20, Emre Erenoglu wrote:

Can you please give the output of the following command:

ls -la /dev/xv*

Are you using a PV domain or a HVM domain? (full or para virtualization?)

Emre

On Dec 6, 2007 2:17 PM, Markus Gerber < markus@xxxxxxxxxxxxx > wrote:
What I did so far:
- Added the LVM-partition to the dom1's config ('phy:/dev/mapper/data-share,xvda1,w') in dom0
- Added /dev/xvda1 /mnt/share ext3 defaults 0 1              to /etc/fstab in dom1

I still get the very same error while booting.

Are there more steps to do? Mounting /dev/mapper/data-share in dom0 works and i can copy files to it.

Markus


On 06.12.2007, at 13:57, Emre Erenoglu wrote:

As Sadique indicated, try using xvda instead of sda or hda.

Emre

On Dec 6, 2007 1:49 PM, Markus Gerber wrote:
Hello Emre,

These devices do not exist in dom1.

Can I create them manually? Or do I need to install additional packages.

Uups: I've just seen that there is a typo in my first post - dom1 is running Debian Etch and not Ubuntu. Sorry about that!

Thanks and regards,
Markus



On 06.12.2007, at 11:08, Emre Erenoglu wrote:

Markus,

Does it really not exist or just not formatted?

mkfs.ext3 /dev/sda3

and instead of sda, I think you shall consider using xvda (if you're on a PV domU or HVM with PV drivers)

can you see these devices in /dev?

Emre

On Dec 6, 2007 10:51 AM, Markus Gerber <markus@xxxxxxxxxxxxx> wrote:
Hello,

Thank you for your tipp. Unfortunatly, I get an error when booting dom1 saying:

Loading device-mapper support.
Checking file systems...fsck 1.40-WIP (14-Nov-2006)
fsck.ext3: No such file or directory while trying to open /dev/sda3
/dev/sda3: 
The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

fsck died with exit status 8
failed (code 8).
* File system check failed. 


In my dom1's config file I added the last 'phy' to the disk
disk = [ 'phy:data/dom1-disk,sda1,w', 'phy:data/dom1-swap,sda2,w', 'phy:/dev/mapper/data-share,sda3,w' ]


How does the /etc/fstab in dom1 has to look like? I added:
/dev/sda3 /mnt/share ext3 defaults 0 1

With the line above it does not work. /dev/sda3 does not exist.

Thank you for some more hints.

Regards,
Markus


On 06.12.2007, at 10:13, Emre Erenoglu wrote:

Just a disk= line would suffice. example:

disk = [ 'phy:/dev/volume-group/volume-name,hda1,w' , 'phy:/dev/md1,hda2,w' , 'phy:/dev/volume-group/volume-2,hda3,w' ]

/dev/volume-group/volume-name being one of your LVM volume. (or /dev/mapper/volume_group-volume_name

Br,

Emre


On Dec 6, 2007 9:37 AM, Markus Gerber < markus@xxxxxxxxxxxxx> wrote:
Hello,

In my dom0 (Ubuntu 7.10) I have several LVM partitions (for mp3s,
photos, ...).
Since I do not want to have any services in dom0, I have a domU (also
Ubuntu 7.10) with Samba. So my users connect to that domU. How can I
export and import these LVM partitions from dom0 into domU?

Using nfs could work, but I prefer a solution where my LVM partitions
are 'natively' in domU.

Thank you for some hints and tipps.

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



--
Emre Erenoglu
erenoglu@xxxxxxxxx




--
Emre Erenoglu
erenoglu@xxxxxxxxx




--
Emre Erenoglu
erenoglu@xxxxxxxxx




--
Emre Erenoglu
erenoglu@xxxxxxxxx




--
Emre Erenoglu
erenoglu@xxxxxxxxx




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