Re: Do I have to rebuild my jails too when I rebuild the server?
On Mon, Dec 20, 2004 at 05:31:52PM -0600, Frank Knobbe typed: On Tue, Dec 21, 2004 at 12:13:08AM +0100, Daniel Johansson wrote: I see. So if I've got a synced jail and host then top will work? I thought top never worked inside jail for some memoryissue or something like that? No, I was using that as an example for the host. I don't think top will work in a jail. It works. Allthough I'm not completely sure about 4.x jails. Maybe you need to mount /proc to make it work there. Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Do I have to rebuild my jails too when I rebuild the server?
Hmm, I've mounted prioc in all my jails but top won't work anyway: $ top kvm_open: short read top: kvm_read for _ccpu: Unknown error: 0 On Tue, 21 Dec 2004 12:20:13 +0100, Ruben de Groot [EMAIL PROTECTED] wrote: On Mon, Dec 20, 2004 at 05:31:52PM -0600, Frank Knobbe typed: On Tue, Dec 21, 2004 at 12:13:08AM +0100, Daniel Johansson wrote: I see. So if I've got a synced jail and host then top will work? I thought top never worked inside jail for some memoryissue or something like that? No, I was using that as an example for the host. I don't think top will work in a jail. It works. Allthough I'm not completely sure about 4.x jails. Maybe you need to mount /proc to make it work there. Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Do I have to rebuild my jails too when I rebuild the server?
On Mon, 20 Dec 2004 23:33:33 +0100, Daniel Johansson [EMAIL PROTECTED] wrote: Okay, thank you but that page didn't help very much. I know how to rebuild and update the server, and I've done it many times but what I need to know is if I must rebuild my jails to when I rebuild the server. Maby the hostsystem and the jail gets out of sync? On Mon, 20 Dec 2004 11:31:04 -0600, Joshua Lokken [EMAIL PROTECTED] wrote: On Sun, 19 Dec 2004 23:23:26 +0100, Daniel Johansson [EMAIL PROTECTED] wrote: I'm a big fan of jails and use three on my server. I also try to keep my server up to date and I rebuild it frequently but when I rebuild my server, update to the latest version, do I also have to rebuild my jails? Apparently you missed the link and the line Some tips for updating your jails can be found at ;) -- Joshua Lokken Open Source Advocate ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Do I have to rebuild my jails too when I rebuild the server?
On Sun, 19 Dec 2004 23:23:26 +0100, Daniel Johansson [EMAIL PROTECTED] wrote: I'm a big fan of jails and use three on my server. I also try to keep my server up to date and I rebuild it frequently but when I rebuild my server, update to the latest version, do I also have to rebuild my jails? Can I have a jail built with 4.10 and use it without problems in 4.11 and so on? I do not have a specific answer to that question, however, this doc may help you determine what you need to do: http://lists.freebsd.org/pipermail/freebsd-questions/2004-August/055091.html -- Joshua Lokken Open Source Advocate ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Do I have to rebuild my jails too when I rebuild the server?
Okay, thank you but that page didn't help very much. I know how to rebuild and update the server, and I've done it many times but what I need to know is if I must rebuild my jails to when I rebuild the server. Maby the hostsystem and the jail gets out of sync? On Mon, 20 Dec 2004 11:31:04 -0600, Joshua Lokken [EMAIL PROTECTED] wrote: On Sun, 19 Dec 2004 23:23:26 +0100, Daniel Johansson [EMAIL PROTECTED] wrote: I'm a big fan of jails and use three on my server. I also try to keep my server up to date and I rebuild it frequently but when I rebuild my server, update to the latest version, do I also have to rebuild my jails? Can I have a jail built with 4.10 and use it without problems in 4.11 and so on? I do not have a specific answer to that question, however, this doc may help you determine what you need to do: http://lists.freebsd.org/pipermail/freebsd-questions/2004-August/055091.html -- Joshua Lokken Open Source Advocate ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Do I have to rebuild my jails too when I rebuild the server?
On Mon, Dec 20, 2004 at 11:33:33PM +0100, Daniel Johansson wrote: Okay, thank you but that page didn't help very much. I know how to rebuild and update the server, and I've done it many times but what I need to know is if I must rebuild my jails to when I rebuild the server. Maby the hostsystem and the jail gets out of sync? Yes. Whenever you build world for your host system, you should also build for the jail (using DESTDIR). Otherwise they get out of sync as you suspect. Regards, Frank ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Do I have to rebuild my jails too when I rebuild the server?
Okay, I see. I've not done this with my jails so I think it's time to do it But until now everything has worked anyway, upgraded from 4.9 to 4.10-p5. How important is it to rebuild the jails too? On Mon, 20 Dec 2004 17:01:13 -0600, Frank Knobbe [EMAIL PROTECTED] wrote: On Mon, Dec 20, 2004 at 11:33:33PM +0100, Daniel Johansson wrote: Okay, thank you but that page didn't help very much. I know how to rebuild and update the server, and I've done it many times but what I need to know is if I must rebuild my jails to when I rebuild the server. Maby the hostsystem and the jail gets out of sync? Yes. Whenever you build world for your host system, you should also build for the jail (using DESTDIR). Otherwise they get out of sync as you suspect. Regards, Frank ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Do I have to rebuild my jails too when I rebuild the server?
On Tue, Dec 21, 2004 at 12:04:54AM +0100, Daniel Johansson wrote: Okay, I see. I've not done this with my jails so I think it's time to do it But until now everything has worked anyway, upgraded from 4.9 to 4.10-p5. How important is it to rebuild the jails too? I don't think it has to do with importance. Rather it has to do with correctness. Jails use the running kernel. You have to rebuild kernel and world together to prevent them from getting out-of-sync (easy to test with top). Hence, you also have to rebuild your jail-world when you rebuild your kernel. Hope that clarifies it. Regards, Frank ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Do I have to rebuild my jails too when I rebuild the server?
I see. So if I've got a synced jail and host then top will work? I thought top never worked inside jail for some memoryissue or something like that? I think I should go and rebuild my jails too. It's just a bit of work with three jails, thank god that I've got a fast box :) Still the issue with config-files but I think I'll back them up and just restore them. On Mon, 20 Dec 2004 17:08:31 -0600, Frank Knobbe [EMAIL PROTECTED] wrote: On Tue, Dec 21, 2004 at 12:04:54AM +0100, Daniel Johansson wrote: Okay, I see. I've not done this with my jails so I think it's time to do it But until now everything has worked anyway, upgraded from 4.9 to 4.10-p5. How important is it to rebuild the jails too? I don't think it has to do with importance. Rather it has to do with correctness. Jails use the running kernel. You have to rebuild kernel and world together to prevent them from getting out-of-sync (easy to test with top). Hence, you also have to rebuild your jail-world when you rebuild your kernel. Hope that clarifies it. Regards, Frank ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Do I have to rebuild my jails too when I rebuild the server?
On Tue, Dec 21, 2004 at 12:13:08AM +0100, Daniel Johansson wrote: I see. So if I've got a synced jail and host then top will work? I thought top never worked inside jail for some memoryissue or something like that? No, I was using that as an example for the host. I don't think top will work in a jail. I think I should go and rebuild my jails too. It's just a bit of work with three jails, thank god that I've got a fast box :) Not really. Update kernel, then: make buildworld make installworld make DESTDIR=/jail1 installworld make DESTDIR=/jail2 installworld You only need to compile once. Still the issue with config-files but I think I'll back them up and just restore them. uhm... we're talking binaries here. I'm not sure why you would need to restore your config files. But making backups is always a good practice. Regards, Frank ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Do I have to rebuild my jails too when I rebuild the server?
On Mon, 20 Dec 2004 17:31:52 -0600, Frank Knobbe [EMAIL PROTECTED] wrote: On Tue, Dec 21, 2004 at 12:13:08AM +0100, Daniel Johansson wrote: I see. So if I've got a synced jail and host then top will work? I thought top never worked inside jail for some memoryissue or something like that? No, I was using that as an example for the host. I don't think top will work in a jail. I think I should go and rebuild my jails too. It's just a bit of work with three jails, thank god that I've got a fast box :) Not really. Update kernel, then: make buildworld make installworld make DESTDIR=/jail1 installworld make DESTDIR=/jail2 installworld You only need to compile once. Hmm true, I just have to buld it once, great! Still the issue with config-files but I think I'll back them up and just restore them. uhm... we're talking binaries here. I'm not sure why you would need to restore your config files. But making backups is always a good practice. Hmm my bad, maby installworld doesn't install any new configfiles to /etc? Only mergemaster who installes configfiles? Would still be a good idea to run mergemaster for the jail to keep the configfiles up to date. Regards, Frank ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Do I have to rebuild my jails too when I rebuild the server?
On Tuesday 21 December 2004 00:41, Daniel Johansson wrote: On Mon, 20 Dec 2004 17:31:52 -0600, Frank Knobbe [EMAIL PROTECTED] wrote: On Tue, Dec 21, 2004 at 12:13:08AM +0100, Daniel Johansson wrote: I see. So if I've got a synced jail and host then top will work? I thought top never worked inside jail for some memoryissue or something like that? No, I was using that as an example for the host. I don't think top will work in a jail. I think I should go and rebuild my jails too. It's just a bit of work with three jails, thank god that I've got a fast box :) Not really. Update kernel, then: make buildworld make installworld make DESTDIR=/jail1 installworld make DESTDIR=/jail2 installworld You only need to compile once. Hmm true, I just have to buld it once, great! Still the issue with config-files but I think I'll back them up and just restore them. uhm... we're talking binaries here. I'm not sure why you would need to restore your config files. But making backups is always a good practice. Hmm my bad, maby installworld doesn't install any new configfiles to /etc? Only mergemaster who installes configfiles? Would still be a good idea to run mergemaster for the jail to keep the configfiles up to date. Yes, run 'mergemaster -D /your_jails_rootdir' from your host. Answer the question Use 'd' to delete the old /var/tmp/temproot and continue with 'd' or simply type 'yes' when mergemaster asks, if you wish to delete what is left of /var/tmp/temproot. I mostly run a small script that runs installworld, cleans out /usr/include/* and runs mergemaster for every enabled jail it finds in /etc/rc.conf. I run it on 5.3. The bad thing is, that it depends on ng_rc-style rc.conf, so it doesn't work on 4.11. However, if you will ever run 5.3 - feel free to use it, modify it or recycle-bin it. -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpovqpb9VGs2.pgp Description: PGP signature