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] Is it possible to copy the contents of one domU to anoth

To: Eamonn Kenny <Eamonn.Kenny@xxxxxxxxx>
Subject: RE: [Xen-users] Is it possible to copy the contents of one domU to another domU?
From: Chris Edwards <cedwards@xxxxxxxxxxxxxxxx>
Date: Mon, 27 Oct 2008 10:56:48 -0400
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 27 Oct 2008 07:57:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <48C7CD61.2080500@xxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <695200da0809100443w429967fld067b116f60d41d6@xxxxxxxxxxxxxx> <48C7CD61.2080500@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AckTSk71P/1qAwttQNG9mhqw0IBuvwk+bdkQ
Thread-topic: [Xen-users] Is it possible to copy the contents of one domU to another domU?
In this section....

# mount both LVMs
mount /dev/mapper/VolGroup00--LogVol00 /mnt/oldroot
mount /dev/mapper/VolGroup00--LogVol01 /mnt/newroot

The system tells me that I need to specify the file system type.  For the life 
of me I cannot determine the file system type.  Any hints would be appreciated.

Thanks!
---

Chris Edwards


-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Eamonn Kenny
Sent: Wednesday, September 10, 2008 9:37 AM
To: Rudi Ahlers
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Is it possible to copy the contents of one domU to 
another domU?

Hi Rudi,

# create two directories for mount points
mkdir -p /mnt/oldroot /mnt/newroot

# create the 30G LVM
lvcreate -L 30G -n VolGroup00-LogVol01 /dev/VolGroup00
mkfs -t ext3 /dev/VolGroup00-LogVol01

# mount both LVMs
mount /dev/mapper/VolGroup00--LogVol00 /mnt/oldroot
mount /dev/mapper/VolGroup00--LogVol01 /mnt/newroot

# sync the data
rsync -au /mnt/oldroot/* /mnt/newroot
Alternatively use cp -ax as described in the Xen manual.

#unmount partitions
umount /mnt/oldroot

# change networking on new domU
chroot /mnt/newroot
edit /etc/hosts, /etc/resolv.conf, /etc/sysconfig/network,
/etc/sysconfig/network-scripts/ifcfg-*
exit
umount /mnt/newroot

Hope the syntax is right, but you get the idea...

Rudi Ahlers wrote:
> Hi all
>
> I hope this can be solved.
>
> I have a 50GB CentOS domU, and I want to copy the contents of the domU
> to another domU, of smaller size (30GB) - is this possible?
>
> --
>
> Kind Regards
> Rudi Ahlers
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


--
_________________
With Best regards,
      Eamonn Kenny

_________________________________________________________________________
 Dr. Eamonn M. Kenny,          Telephone:               00+353-1-8961536
 Webcom-G Manager,             Facsimile:               00+353-1-6772204
 Computer Architecture Group,  Email:             Eamonn.Kenny@xxxxxxxxx
 Computer Science Department,  www:    http://www.cs.tcd.ie/Eamonn.Kenny
 Rm-005, CALab1, INS building, Map:    http://www.tcd.ie/Maps/lloyd.html
 TCD, Dublin 2, Ireland.       Map: http://www.tcd.ie/Maps/tcd_east.html
_________________________________________________________________________


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

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

<Prev in Thread] Current Thread [Next in Thread>