Re: src upgrading jails (no ezjail, no service jails)
On Wed, Jun 1, 2011 at 4:44 PM, Greg Larkin glar...@freebsd.org wrote: Those commands will update the base system in the jail directory jaildir1 with the latest bits that were previously compiled with make buildworld. don't believe they will disturb any other data in /usr/local, if that's what you are concerned about. Yeah, I ran it and it mostly worked, although running mergemaster -p -D /path/to/jail before installworld didn't really back up files like it normally does, but I was able to pull the most recent backup and fix that. I use ezjail here, and it will automate a lot of these steps for you. Is there a reason that you can't use it? I didn't create these jails with ezjails, so I was working under the impression that I could not use ezjail to upgrade them. Is that not correct? Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: src upgrading jails (no ezjail, no service jails)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/31/11 11:00 PM, Aleksandr Miroslav wrote: I have 4 jails that are running 8.2-RELEASE that I would like to upgrade. The host system, which was also running 8.2-RELEASE, has been successfully upgraded to 8.2-p2. I have /usr/src ready with the new world and new kernel. I did not create the jails using ezjails, so I cannot use that utility to upgrade it. I did not create the jails using the template method described in Handbook (section 15.6.1.2), so the method recommended to upgrade them, i.e.: http://www.freebsd.org/doc/handbook/jails-application.html#JAILS-SERVICE-JAILS-UPGRADING would not work for me. What is the proper way for me to upgrade these jails? thanks, Alex Hi Alex, You can do this: cd /usr/src make installworld DESTDIR=jaildir1 make distribution DESTDIR=jaildir1 ... ... make installworld DESTDIR=jaildirN make distribution DESTDIR=jaildirN Then restart your jails. Regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3mOp0ACgkQ0sRouByUApAvyQCfYDh/dwd5/PB2zElwPuz1NC+D I8kAoJ+tS9UaQqMDHmxophZ8F+dBuMuI =eiBQ -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
src upgrading jails (no ezjail, no service jails)
I have 4 jails that are running 8.2-RELEASE that I would like to upgrade. The host system, which was also running 8.2-RELEASE, has been successfully upgraded to 8.2-p2. I have /usr/src ready with the new world and new kernel. I did not create the jails using ezjails, so I cannot use that utility to upgrade it. I did not create the jails using the template method described in Handbook (section 15.6.1.2), so the method recommended to upgrade them, i.e.: http://www.freebsd.org/doc/handbook/jails-application.html#JAILS-SERVICE-JAILS-UPGRADING would not work for me. What is the proper way for me to upgrade these jails? thanks, Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Upgrading jails to 7.2-RELEASE with freebsd-update
Hi everyone, It's the first time I'm using freebsd-update to upgrade my system to a new release. I just upgraded the base system from 7.1-RELEASE to 7.2-RELEASE and everything went fine. I now wanted to upgrade my jails to the new release but freebsd-update is telling me that's already updated... freebsd-update -b /usr/jail/mysql/ upgrade -r 7.2-RELEASE freebsd-update: Cannot upgrade from 7.2-RELEASE to itself I understand that the jails are sharing the kernel and that freebsd-update must be verifying the version of the kernel. So I tried to just fetch install the update in the jail. freebsd-update -b /usr/jail/mysql/ fetch install Looking up update.FreeBSD.org mirrors... 6 mirrors found. Fetching metadata signature for 7.2-RELEASE from update5.FreeBSD.org... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files... done. No updates needed to update system to 7.2-RELEASE-p0. No updates are available to install. Run '/usr/sbin/freebsd-update fetch' first. I already used the -b option to update my jails with security updates, but never to a new release. What am I doing wrong? Thanks everyone for sharing! Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrading jails to 7.2-RELEASE with freebsd-update
On Tuesday 05 May 2009 17:37:42 Martin Turgeon wrote: Hi everyone, It's the first time I'm using freebsd-update to upgrade my system to a new release. I just upgraded the base system from 7.1-RELEASE to 7.2-RELEASE and everything went fine. I now wanted to upgrade my jails to the new release but freebsd-update is telling me that's already updated... freebsd-update -b /usr/jail/mysql/ upgrade -r 7.2-RELEASE freebsd-update: Cannot upgrade from 7.2-RELEASE to itself Should be able to trick it using: env UNAME_r=7.1-RELEASE-p5 freebsd-update -b /path/to/jail (based on a quick source scan, untested). -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrading jails to 7.2-RELEASE with freebsd-update
Mel Flynn a écrit : On Tuesday 05 May 2009 17:37:42 Martin Turgeon wrote: Hi everyone, It's the first time I'm using freebsd-update to upgrade my system to a new release. I just upgraded the base system from 7.1-RELEASE to 7.2-RELEASE and everything went fine. I now wanted to upgrade my jails to the new release but freebsd-update is telling me that's already updated... freebsd-update -b /usr/jail/mysql/ upgrade -r 7.2-RELEASE freebsd-update: Cannot upgrade from 7.2-RELEASE to itself Should be able to trick it using: env UNAME_r=7.1-RELEASE-p5 freebsd-update -b /path/to/jail (based on a quick source scan, untested). Thanks for your answer, it worked great! But, I'm still wondering why this is necessary? I didn't have to do this last time. Thanks for the info, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrading Jails
On Fri, Jan 16, 2009 at 06:06:49AM -0800, David Allen wrote: I have a test system where I've accumulated a large number of jails. To update them (I'm not using the method outlined in the Handbook), I'd like to avoid mounting /usr/src and /usr/obj within each and then jexec-ing a shell but instead, perform everything on the host system directly. Would the following be appropriate? Why bother with updating each jail and waste diskspace when you can have ezjail (sysutils/ezjail) to create and update your jails in one go? -- Oliver PETER, email: oli...@peter.de.com, ICQ# 113969174 If it feels good, you're doing something wrong. -- Coach McTavish ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Upgrading Jails
I have a test system where I've accumulated a large number of jails. To update them (I'm not using the method outlined in the Handbook), I'd like to avoid mounting /usr/src and /usr/obj within each and then jexec-ing a shell but instead, perform everything on the host system directly. Would the following be appropriate? /etc/rc.d/jail stop cd /usr/src myjail=/home/jails/myjail mergemaster -p -t $myjail/var/tmp/temproot -D $myjail make installworld DESTDIR=$myjail mergemaster -t $myjail/var/tmp/temproot -D $myjail ... /etc/rc.d/jail start The second question relates to applying patches. One of the latest security advisories, for example, provides these instructions: cd /usr/src patch /path/to/patch cd /usr/src/lib/bind make obj make depend make make install cd /usr/src/usr.sbin/named make obj make depend make make install /etc/rc.d/named restart Can the make install part be modified to include DESTDIR? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org