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

[Xen-users] Error moving DomU image to LVM


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Johnson, Tony M" <Tony.Johnson@xxxxxxxxx>
  • Date: Tue, 1 Apr 2008 23:54:07 -0400
  • Delivery-date: Tue, 01 Apr 2008 20:54:37 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AciUdTN0sr/Uo611Ty+gaGabjR787w==
  • Thread-topic: Error moving DomU image to LVM

In creating LVMs during the Fedora install. I created the following layout;

/dev/sdb
   /dev/sdb1     /boot
   /dev/sdb2     VolGroup01
   /dev/sdb3     VolGroup02

VolGroup00
  LogVol01       swap
  LogVol00       /

VolGroup01
  LogVol00      /guest1
  LogVol01      /guest2

I then used virt-install to create HVMs. However I created them using a file system: '/xen/file.img'.
Later I used the dd command to copy the image as follows: dd if=/xen/file.img of=/dev/VolGroup01/guest1

I added the following to the config: disk = ['phy:VolGroup/guest1,xvda1,w'] and get the following error: Error: Device 770 (vbd) could not be connected. Device /dev/VolGroup01/guest1 is mounted in the privileged domain, and so cannot be mounted by a guest.

After rebooting I get this error: fsck.ext3: Bad magic number in super-block while trying to open /dev/VolGroup01/guest1

Can I recover from the above if so how? What is the correct procedure to convert the image to the LVM?
Help is greatly appreciated!



_______________________________________________
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®.