|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] dual personalities
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. Yes, there were some mount commands also - I was trying to save the list some of the details, but they were something like: mkdir /mnt/hdb; mount /dev/hdb1 /mnt/hdb1 mkdir /mnt/suse-root; mount /dev/xen-vg/suse-root /mnt/suse-root then the `cp` was like: cp -ax /mnt/hdb1 /mnt/suse-root and, of course, after the copy finished, I cleaned up as follows: umount /mnt/hdb1; rmdir /mnt/hdb1 umount /mnt/suse-root; rmdir /mnt/suse-root lvcreate -L256M -n suse-swap xen-vg mkswap /dev/xen-vg/suse-swapThe only other modification I made was to the start-up script as follows: From the user-guide, this appears to be the right syntax when using LVM - besides, the guest boot was almost successful... Kent _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |