Hi, I have installed sles 10 on a logical volume without problem using the yast installer. However, can anyone help me clone that installation onto other lv''s, I can''t seem to mount the lv in dom0 and can''t find any help on copying/cloning lv''s? I want to install once then clone the install 5 times say to make a server cluster (Websphere), changing the ip addresses etc. If there''s a better way to do it then feel free to suggest. Thanks in advance, Alex This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
You probably have an vgdomu-pool with lvmachine1, lvmachine2,... as lvm backends for your DomU''s right? These lv''s all have a partition table for their domU, you can check that with "sfdisk -l /dev/mapper/lvmachine1" Only if they are equally sized you can use "dd if=/dev/mapper/lvmachine1 of=/dev/mapper/lvmachine2 bs=1M". If they are not equally sized (which is mostly the case), those lv''s need to be -so called- loop mounted in your dom0 if you want to copy their contents and manually adjust. There''s a tool called "losetup" for that, it allows you to loop-mount a partition within another partition/lv/file. I can''t give the direct syntax for it, since it has been a while since I used it. Someone else on the list can help perhaps? I also believe SLES10 has a special "cloop" package for such situations? greets Tijl Van den Broeck On 11/17/06, Alex Bagehot <abagehot@salmon.com> wrote:> > > > > Hi, > > > > I have installed sles 10 on a logical volume without problem using the yast > installer. > > > > However, can anyone help me clone that installation onto other lv''s, I can''t > seem to mount the lv in dom0 and can''t find any help on copying/cloning > lv''s? > > > > I want to install once then clone the install 5 times say to make a server > cluster (Websphere), changing the ip addresses etc. If there''s a better way > to do it then feel free to suggest. > > > > Thanks in advance, > > Alex > > > > This message has been scanned for viruses by BlackSpider MailControl > _______________________________________________ > 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
On 21 Nov 2006 at 8:08, Tijl Van den Broeck wrote:> Only if they are equally sized you can use "dd > if=/dev/mapper/lvmachine1 of=/dev/mapper/lvmachine2 bs=1M". If theyActually the reason why I did NOT do it that way was that some filesystems assign a UUID to the filesystem (which is essential for FS repair in reiserfs for example). That way, both filesystems would have the same UUID. I preferred to mount both systems (DomUs) in Dom0 and did a "cp -a". Then unmount and boot DomUs. [...] Regards, Ulrich _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ulrich Windl wrote:> On 21 Nov 2006 at 8:08, Tijl Van den Broeck wrote: > > >> Only if they are equally sized you can use "dd >> if=/dev/mapper/lvmachine1 of=/dev/mapper/lvmachine2 bs=1M". If they >> > > Actually the reason why I did NOT do it that way was that some filesystems assign > a UUID to the filesystem (which is essential for FS repair in reiserfs for > example). That way, both filesystems would have the same UUID. I preferred to > mount both systems (DomUs) in Dom0 and did a "cp -a". Then unmount and boot DomUs.As far as I remember you used yast for the SLES10 guest. IIRC yast uses partitions on these devices so you can''t mount the easily. Jan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 21 Nov 2006 at 9:12, Jan Albrecht wrote:> Ulrich Windl wrote: > > On 21 Nov 2006 at 8:08, Tijl Van den Broeck wrote: > > > > > >> Only if they are equally sized you can use "dd > >> if=/dev/mapper/lvmachine1 of=/dev/mapper/lvmachine2 bs=1M". If they > >> > > > > Actually the reason why I did NOT do it that way was that some filesystems assign > > a UUID to the filesystem (which is essential for FS repair in reiserfs for > > example). That way, both filesystems would have the same UUID. I preferred to > > mount both systems (DomUs) in Dom0 and did a "cp -a". Then unmount and boot DomUs. > As far as I remember you used yast for the SLES10 guest. > IIRC yast uses partitions on these devices so you can''t mount the easily.Actually I only installed one dummy system using YaST, and then I built all the other systems manually via commands (setting up about 10 identical systems). YaST requires a graphical access which I don''t have. I do everything with SSH/PuTTY or serial console. Ulrich _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users