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] Convert CentOS system to Xen image?

To: "Ross S. W. Walker" <rwalker@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] Convert CentOS system to Xen image?
From: Igor Chubin <igor@xxxxxxx>
Date: Wed, 2 Apr 2008 18:47:38 +0300
Cc: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>, Javier Guerra <javier@xxxxxxxxxxx>
Delivery-date: Wed, 02 Apr 2008 08:48:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <E2BB8074E5500C42984D980D4BD78EF9022A7085@xxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <90eb1dc70804020814n5ce384c2w515cc710089e213a@xxxxxxxxxxxxxx> <E2BB8074E5500C42984D980D4BD78EF9022A7085@xxxxxxxxxxxxxxxxxxxxx>
Reply-to: Igor Chubin <igor@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.17+20080114 (2008-01-14)
On Mi, Apr 02, 2008 at 11:18:42 -0400, Ross S. W. Walker wrote:
> Javier Guerra wrote:
> > On Wed, Apr 2, 2008 at 9:52 AM, Igor Chubin <igor@xxxxxxx> wrote:
> > >  If I understand you right,
> > >  you say that
> > >
> > >
> > >  hostA# dump / | ssh hostB restore
> > >
> > >  is more effective than:
> > >
> > >  hostA# rsync -a / hostB:/
> > 
> > i like to use rsync to replicate running servers.  of course, for
> > one-shot copy it's no faster than other dump-transfer-restore schemas;
> > but it's quite easy to use to quickly converge almost to a 'snapshot'
> > capability:
> > 
> > 1: do a full rsync, might take tooo long, lots of stuff wouldn't be
> > really consistent

To solve the problem (if you use LVMs)
you should make snapshots and than sync files 
from them.

> > 2: repeat rsync, should be far faster, copying only the differences.
> > 3: keep repeating until the whole copy is comfortably short. usually
> > the third iteration is less than a couple minutes
> > 4: quick: shut down services, one last rsync, start services.
> > 5: done!
> 
> Or, take a snapshot, mount it, then rsync off that.

Don't forget to make sync before snapshotting.
It will work without syncing to but it's better
to use it to be sure that there no information
cached by FS and not written to LVs.

# sync; lvcreate -n snap -L2G /dev/VG/source




> 
> -Ross
> 
> ______________________________________________________________________
> This e-mail, and any attachments thereto, is intended only for use by
> the addressee(s) named herein and may contain legally privileged
> and/or confidential information. If you are not the intended recipient
> of this e-mail, you are hereby notified that any dissemination,
> distribution or copying of this e-mail, and any attachments thereto,
> is strictly prohibited. If you have received this e-mail in error,
> please immediately notify the sender and permanently delete the
> original and any copy or printout thereof.
> 
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users

-- 
WBR, i.m.chubin


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

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