Hi all, I''m currently using Xen 3 with file-backed VBDs and have just setup a new Xen0 server. What''s the best way of copying the image files across to the new server (currently stored locally on the old Xen0)? I want a copy because I''m duplicating the XenU''s. I''ve tried scp but the image files take up their full disk allocation rather than their actual usage (eg 5GB instead of the 1.1GB actually used). Would rsync using rsyncd be better, or NFS? I''m thinking of using LVM VBDs instead so what would be the best way in this scenario? The reason I''m currently using the file-backed VBD''s is for the ease of handling and the fact that the XenU''s perform little IO. If it makes any difference I don''t have local access, these are remote servers but I do have console and PXE boot ability. Thanks, Matt. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Am Dienstag 11 April 2006 15:22 schrieb In-Tuition Xen:> I''m currently using Xen 3 with file-backed VBDs and have just setup a > new Xen0 server. What''s the best way of copying the image files across > to the new server (currently stored locally on the old Xen0)? I want a > copy because I''m duplicating the XenU''s. I''ve tried scp but the image > files take up their full disk allocation rather than their actual usage > (eg 5GB instead of the 1.1GB actually used). Would rsync using rsyncd > be better, or NFS?Personally, I would tar the image, copy the tar file and untar it on the destination machine. tar has proper handling of sparse files (see the commandline options for the options you need to specify for sparse file handling), and should unpack the domU file to the proper size you''re seeing on your old dom0. --- Heiko. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Am Dienstag 11 April 2006 15:22 schrieb In-Tuition Xen:> I''m currently using Xen 3 with file-backed VBDs and have just setup a > new Xen0 server. What''s the best way of copying the image files across > to the new server (currently stored locally on the old Xen0)? I want a > copy because I''m duplicating the XenU''s. I''ve tried scp but the image > files take up their full disk allocation rather than their actual usage > (eg 5GB instead of the 1.1GB actually used). Would rsync using rsyncd > be better, or NFS?Personally, I would tar the image, copy the tar file and untar it on the destination machine. tar has proper handling of sparse files (see the commandline options for the options you need to specify for sparse file handling), and should unpack the domU file to the proper size you''re seeing on your old dom0. --- Heiko. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
In-Tuition Xen wrote:> Hi all, > > I''m currently using Xen 3 with file-backed VBDs and have just setup a > new Xen0 server. What''s the best way of copying the image files across > to the new server (currently stored locally on the old Xen0)? I want a > copy because I''m duplicating the XenU''s. I''ve tried scp but the image > files take up their full disk allocation rather than their actual usage > (eg 5GB instead of the 1.1GB actually used). Would rsync using rsyncd > be better, or NFS? >You can use rsync with the -S or --sparse options to deal with sparse files. Thank you, Matt Ayres _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Heiko Wundram scribbled on 11 April 2006 14:47:> Am Dienstag 11 April 2006 15:22 schrieb In-Tuition Xen: >> I''m currently using Xen 3 with file-backed VBDs and have just setup a >> new Xen0 server. What''s the best way of copying the image files >> across to the new server (currently stored locally on the old Xen0)? >> I want a copy because I''m duplicating the XenU''s. I''ve tried scp >> but the image files take up their full disk allocation rather than >> their actual usage (eg 5GB instead of the 1.1GB actually used). >> Would rsync using rsyncd be better, or NFS? > > Personally, I would tar the image, copy the tar file and untar it on > the destination machine. tar has proper handling of sparse files (see > the commandline options for the options you need to specify for > sparse file handling), and should unpack the domU file to the proper > size you''re seeing on your old dom0.Great, thanks for the tip. And what''s the best way for handling LVM VBD migration? Matt. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I would suggest using the sparse copy operation, first you zip your image into say img.bz2, ship it over, and then use - cp -p --sparse=always <(cat img.bz2 | bunzip2 -c -) img -Himanshu On Tue, Apr 11, 2006 at 02:22:12PM +0100, In-Tuition Xen wrote:> Hi all, > > I''m currently using Xen 3 with file-backed VBDs and have just setup a > new Xen0 server. What''s the best way of copying the image files across > to the new server (currently stored locally on the old Xen0)? I want a > copy because I''m duplicating the XenU''s. I''ve tried scp but the image > files take up their full disk allocation rather than their actual usage > (eg 5GB instead of the 1.1GB actually used). Would rsync using rsyncd > be better, or NFS? > > I''m thinking of using LVM VBDs instead so what would be the best way in > this scenario? > > The reason I''m currently using the file-backed VBD''s is for the ease of > handling and the fact that the XenU''s perform little IO. > > If it makes any difference I don''t have local access, these are remote > servers but I do have console and PXE boot ability. > > Thanks, > > Matt. > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- ------------------------------------------------------------------------- Himanshu Raj PhD Student, GaTech (www.cc.gatech.edu/~rhim) I prefer to receive attachments in an open, non-proprietary format. ------------------------------------------------------------------------- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users