[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] dual personalities



Kent Watsen wrote:


I have a working DomU when located on a physical partition (i.e. hdb, a 2nd HD that I'm using to stage guest domains), but it all goes bad when I copy the root/swap partitions into LVM-based partitions. Specifically, I have a working guest domain on hdb2 (swap is hdb1). I created the logical volumes using the usual mix of pvcreate, vgcreate, and lvcreate:

   pvcreate /dev/hda5vgcreate xen-vg /dev/hda5
   lvcreate -L5G -n suse-root xen-vg
   mkfs.reiserfs /dev/xen-vg/suse-root
   cp -ax /<the real parition> /<the new partition> (yes, this seemed
   to work as expected)

Sorry, I am confused by this. Are you copying
a filesystem image or a tree of files on a mounted
filesystem?

The absence on any mount commands suggests the former.
The presence of the mkfs.reiserfs command suggests the latter.

Incidently I tend to avoid using cp because I can never
remember how it works. I tend to dd to copy disk images
and a pair of tar commnds in a pipeline to copy file trees
around.

   lvcreate -L256M -n suse-swap xen-vg
   mkswap /dev/xen-vg/suse-swap

The only other modification I made was to the start-up script as follows:

   < disk = [ 'phy:xen-vg/suse-root,hdb2,w',
   'phy:xen-vg/suse-swap,hdb1,w' ]
   ---
    > disk = [ 'phy:hdb2,hdb2,w', 'phy:hdb1,hdb1,w' ]

I am using xen-2.0.7

For my domU configuration file I have:

  disk = [ 'phy:/dev/system/domU1_root,hda1,w',
           'phy:/dev/system/domU1_swap,hda2,w']

i.e. are you missing a /dev/ prefix somewhere?

I'm not sure this is causing you a problem though,
it just seems better to use an explicit path.

If you fsck and mount your LVM filesystem images,
do they check OK, mount OK, contain all the
files you expect to be there?

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.