Hi all! I''m using a CD with a basic instalation generated by means of debootstrap to create new domU''s. Then I mount the cdrom and the logical volumes and, using rsync, I copy the cd files to the domU''s logical volumes. But the problem with this method is the owner/group in the copied files: they are not correct. It is because of a inconsistency between the UID/GID of cdrom files and UID/GID of dom0 files, I think. What another method is recommended? Thanks in advance. Regards, Daniel -- Daniel Bareiro - System Administrator Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Etch - Linux user #188.598 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Try to use ''rsync --numeric-ids'' Philip Daniel Bareiro schreef:> Hi all! > > I''m using a CD with a basic instalation generated by means of > debootstrap to create new domU''s. Then I mount the cdrom and the logical > volumes and, using rsync, I copy the cd files to the domU''s logical > volumes. But the problem with this method is the owner/group in the > copied files: they are not correct. It is because of a inconsistency > between the UID/GID of cdrom files and UID/GID of dom0 files, I think. > > What another method is recommended? > > Thanks in advance. > > Regards, > Daniel > > > ------------------------------------------------------------------------ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi,> I''m using a CD with a basic instalation generated by means of > > debootstrap to create new domU''s. Then I mount the cdrom and the logical > > volumes and, using rsync, I copy the cd files to the domU''s logicalcreate you installation to a harddisk and use tar/cpio or similar to create an archive from your installation. burn that to a cd and use tar/cpio to unpack this archiv to your target lv. If it is on the same Dom0 you can also dd the lvs. regards Martin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Monday, 26 March 2007 16:22:37 +0200, Christo Buschek wrote:> If you are not attached to using a cd, you can also use ssh + tar to > secure copy a file over the network. try > http://ultra.ap.krakow.pl/~bar/DOC/ssh_backup.htmlInteresting link. dd + ssh can be useful to clone a productive domU from local lvm to remote lvm or conversely since the content is directly transferred to the destination without to pass through the xenhost. It would avoid the permission problem what I said. By all means, I''d wish to found a method to copy a basic installation ---in a removable media, or not--- to local or remote lvm without get permission problems in the copied files. Thanks for your answer, Christo. Regards, Daniel -- Daniel Bareiro - System Administrator Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Etch - Linux user #188.598 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thursday, 29 March 2007 09:25:20 -0700, Tom Mornini wrote:> It means: Set the UID/GID to the numeric value, rather than whatever > ID the UID/GID *names* match on the destination system.> i.e. if the user/group on the source system is tmornini/tmornini and > the numeric values of those are 100/1000, then on the destination > system set the UID/GID to 100/1000, not whatever tmornini/tmornini > matches on that system.I''ve understood, I think. Then, if I''ve a cdrom with a basic installation mounted on dom0, and I''d wish rsync from the local cdrom to a mounted local (or remote) lvm, should I chroot the cdrom mounting point in addition to using --numeric-ids? Thanks for you answer. Regards, Daniel -- Daniel Bareiro - System Administrator Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Etch - Linux user #188.598 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sunday, 25 March 2007 13:14:15 +0200, Martin Hierling wrote:> > I''m using a CD with a basic instalation generated by means of > > debootstrap to create new domU''s. Then I mount the cdrom and the > > logical volumes and, using rsync, I copy the cd files to the domU''s > > logical> create you installation to a harddisk and use tar/cpio or similar to > create an archive from your installation. burn that to a cd and use > tar/cpio to unpack this archiv to your target lv.But in this case, I figure that it will produce the same problem that I got with rsync at the moment to unpack the archive in the mounted lvm. Or not?> If it is on the same Dom0 you can also dd the lvs.It will not work, I think, since the cdrom is formatted with iso9660. Thanks for you answer. Regards, Daniel -- Daniel Bareiro - System Administrator Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Etch - Linux user #188.598 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users