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-devel

Re: [Xen-devel] The Problem of Creating a domain

To: "Ian Pratt" <Ian.Pratt@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] The Problem of Creating a domain
From: "Inaba" <m9244001@xxxxxxxxxxxxxxxxx>
Date: Sun, 15 Feb 2004 17:23:05 +0800
Cc: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 16 Feb 2004 08:39:15 +0000
Envelope-to: steven.hand@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <E1ArBwC-0007tx-00@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
I have editted the /etc/fstab like this

/dev/hda1               /                       ext3    defaults        1 1
none                       /dev/pts                devpts  gid=5,mode=620  0
0
/dev/hda5               /domain                 ext3    defaults        1 2
none                       /proc                   proc    defaults        0
0
none                       /dev/shm                tmpfs   defaults        0
0
/dev/hda2               /work                   ext3    defaults        1 2
/dev/hda3               swap                    swap    defaults        0 0

but when I created a new domain, some errors still occurred in filesystem
checking as below

[1] Checking filesystems
[1] fsck.ext3Possibly non-existent or swap device?
[1] Possibly non-existent or swap device?
[1] Checking all file systems.
[1] [/sbin/fsck.ext3 (1) -- /domain] fsck.ext3 -a /dev/hda5
[1] [/sbin/fsck.ext3 (1) -- /work] fsck.ext3 -a /dev/hda2
[1] : No such device or address while trying to open /dev/hda5
[1] fsck.ext3: No such device or address while trying to open /dev/hda2
[1] [FAILED]
[1]
[1] *** An error occurred during the file system check.
[1] *** Dropping you to a shell; the system will reboot
[1] *** when you leave the shell.
[1] Give root password for maintenance

I think may be there are some errors in  /etc/fstab but I could not find it

Is there any step I missed?

# fdisk -l /dev/hdaDisk /dev/hda: 30.6 GB, 30606151680 bytes

255 heads, 63 sectors/track, 3720 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id     System
/dev/hda1   *         1      1305  10482381   83  Linux
/dev/hda2          1306      2610  10482412+  83  Linux
/dev/hda3          2611      2675    522112+  82  Linux swap
/dev/hda4          2676      3720   8393962+   f  Win95 Ext'd (LBA)
/dev/hda5          2676      3720   8393931   83  Linux

another dumb problem:

my vbd_list is set like this

vbd_list = [ ('phy:hda5','hda5','w' ), ('phy:hda3','hda3','w') ]

but it shows the error message as below

Warning: one or more hard disk extents are
         writeable by two or more domains simultaneously.
ERROR: This kind of disk sharing is not allowed
        at the current safety level (0).

and then I changed the vbd_list as

vbd_list = [ ('phy:hda1','hda1','w' ), ('phy:hda3','hda3','w') ]

It could continue the domain booting sequence

Why I can't use /dev/hda5 as the vbd_list?

Is there any clear document that descirbe how to install Xen from
xeno-1.2.tar.gz step by step?

Cheers!

Inaba

> Edit your /etc/fstab on /dev/hda8 so that it includes a device
> name rather than a Label for your filesystems (The standard
> kernel configuration doesn't have devfs)
>
> Also, if you want to use hda7 for swap in the new domain you'll
> need to make it available:
>
> vbd_list = [ ('phy:hda8','hda8','w'), ('phy:hda7','hda7','w') ]
>
> However, your fdisk output suggests that you might be using
> hda7 as swap for domain0. Don't use the same swap partition for
> domain 1 !!!
>
>
> Ian
>





-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel