Re: [Vserver] Cloning a vserver
Herbert Poetzl a écrit : On Tue, Jun 27, 2006 at 10:34:52AM +0200, Christian Knauber wrote: Yes you can leave it without, but in this case if you defined it in the old vserver you would have to change it in the new vserver. Also, I do not know if this is really the case, but I felt that having fixed context IDs is much more stable than having dynamic ones. more important, dynamic contexts are deprecated for some time now (as they cause nothing but troubles) and will go away in the (near) future ... so please, handle the context assignment in userspace by either assigning them explicitely or extending the tools to handle that properly how do you set the context ID ? 1) from the beginning : my newvserver command (from Debian vserver-debiantools) does not have any --cid option 2) afterwards : I tried to echo a reasonable 5-figures number into /etc/vservers/myvs/context, but now if I try to start it: --% # vserver myvs start chbind: vc_net_create(): Invalid argument An error occured while executing the vserver startup sequence; when there are no other messages, it is very likely that the init-script (/etc/init.d/rc 3) failed. Common causes are: * /etc/rc.d/rc on Fedora Core 1 and RH9 fails always; the 'apt-rpm' build method knows how to deal with this, but on existing installations, appending 'true' to this file will help. best, Herbert -- Odile Bénassy, ingénieure informaticienne Service de la Recherche et des Études Doctorales Faculté Jean Monnet, Université Paris Sud 11 54 bd Desgranges, 92331 Sceaux Cedex Tél : +33 (0)1 40 91 18 77 - Fax : +33 (0)1 40 91 18 56 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] Cloning a vserver
Hello, I hope not to disturb with a low-level question, I still hope will be useful to others. I'm very happy with my vservers in general, I must say, and the users too, of course. I want to copy a vserver into a second one, because the second one will run the same software. So I had an IP .xxx and a name old And I want a new IP .yyy and a new name new 1) I copied all the /vservers/old to /vservers/new 2) I copied all the /etc/vservers/old to /etc/vservers/new and also /etc/vservers/old.conf to /etc/vservers/new.conf 3) I went into /etc/vservers/new.conf, into /etc/vservers/new, into /vservers/new/etc and change there every string .xxx into .yyy, and old into new 4) I fixed the /etc/vservers/new symlink Now both vservers can start and stop. I can ping both IPs. But if I enter new I am in old. What do I have left behind? -- Odile Bénassy, ingénieure informaticienne Service de la Recherche et des Études Doctorales Faculté Jean Monnet, Université Paris Sud 11 54 bd Desgranges, 92331 Sceaux Cedex Tél : +33 (0)1 40 91 18 77 - Fax : +33 (0)1 40 91 18 56 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Cloning a vserver
Youri LACAN-BARTLEY a écrit : Hi Odile, you might have missed out on the vserver hostname. You should specify new in /etc/vservers/new/uts/nodename All the rest seems fine to me but I might also be missing something obvious, Good luck to you, Youri Thanks, it works!! Odile Bénassy wrote: Hello, I hope not to disturb with a low-level question, I still hope will be useful to others. I'm very happy with my vservers in general, I must say, and the users too, of course. I want to copy a vserver into a second one, because the second one will run the same software. So I had an IP .xxx and a name old And I want a new IP .yyy and a new name new 1) I copied all the /vservers/old to /vservers/new 2) I copied all the /etc/vservers/old to /etc/vservers/new and also /etc/vservers/old.conf to /etc/vservers/new.conf 3) I went into /etc/vservers/new.conf, into /etc/vservers/new, into /vservers/new/etc and change there every string .xxx into .yyy, and old into new 4) I fixed the /etc/vservers/new symlink Now both vservers can start and stop. I can ping both IPs. But if I enter new I am in old. What do I have left behind? ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] Vservers and RAID (5 hard)
Hello,Jacques, hello all! I have set up a few vservers for hosting different web sites on the same machine and keep a separate control of each, and so far I'm happy, thanks! Time comes to get it running for the public, and as the server has a RAID controler (it is Dell's Megaraid), I'm about to get a few disks ordered. The normal setup would be : 2 * 36 Go for the system, 3 * 73 or 4 * 73 for the data. Meaning the contents of /var, with the vservers in it. So I would welcome any advice about what to purchase and how to use the disks, especially if there is some verser peculiarities. Thanks in advance, -- Odile Bénassy, ingénieure informaticienne Service de la Recherche et des Études Doctorales Faculté Jean Monnet, Université Paris Sud 11 54 bd Desgranges, 92331 Sceaux Cedex tél : +33 (0)1 40 91 18 77 - fax : +33 (0)1 40 91 18 56 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver