Re: The best way to upgrade my FreeBSD and its jails
Redd Vinylene wrote: My dedicated server is mother, its two jails are camel and box. Is this the best way to upgrade all of them? We probably should keep this to freebsd-jail@ only. Had a look at http://pastie.org/245821 and have a few notes for you: 1.- As Miroslav already mentioned - it is not a good idea to daisy chain everything. You should break the procedure into two steps. Firstly upgrade the host and make sure the upgrade went well. Once you're certain that everything is ok, then proceed upgrading jails. I personally disable jails (jail_enable="NO"), then reboot (to avoid any zombie jails), perform upgrade on all jails and then enable them back on. 2.- Your upgrading sequence is a bit off. Have a look at /usr/src/Makefile for further details and correct sequence: # make buildworld # make buildkernel # make installkernel # reboot # mergemaster -p # make installworld # make delete-old # mergemaster # reboot # make delete-old-libs 3.- You don't need kernels inside your jails. Having them won't hurt you, but they consume space. In other words, you shouldn't execute the following (or similar): # make DESTDIR=$D installkernel 4.- The "make distribution DESTDIR=$D" should be executed only once - when a jail is created. Otherwise you're nuking your configurations in jail's /etc and probably somewhere else. Have a go at this, you might find some use for it: --- JAILSDIR=/usr/local/jails cd /usr/src for jail in `ls ${JAILSDIR}`; do mergemaster -pD ${JAILSDIR}/${jail} make installworld DESTDIR=${JAILSDIR}/${jail} mergemaster -iD ${JAILSDIR}/${jail} done --- Regards, Mikhail. -- Mikhail Goriachev Webanoide ___ freebsd-jail@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-jail To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: The best way to upgrade my FreeBSD and its jails
Redd Vinylene wrote: My dedicated server is mother, its two jails are camel and box. Is this the best way to upgrade all of them? Pretty cool huh? - # FreeBSD/i386 mother.reddvinylene.no csup /etc/cvsupfile && \ cd /usr/src && \ make buildworld && \ make buildkernel && \ make installworld && \ make installkernel && \ make delete-old && \ make delete-old-libs && \ mergemaster -U&& \ export D=/usr/jail/camel && \ make installworld DESTDIR=$D && \ make installworld installkernel DESTDIR=$D && \ make delete-old DESTDIR=$D && \ make delete-old-libs DESTDIR=$D && \ cd etc/ && \ make distribution DESTDIR=$D && \ cd .. && \ mergemaster -U -D $D && \ export D=/usr/jail/box && \ make installworld DESTDIR=$D && \ make installworld installkernel DESTDIR=$D && \ make delete-old DESTDIR=$D && \ make delete-old-libs DESTDIR=$D && \ cd etc/ && \ make distribution DESTDIR=$D && \ cd .. && \ mergemaster -U -D $D && \ chflags -R noschg /usr/obj/* && \ rm -rf /usr/obj/* It would be better if you post what version you are running and to what version you want to update / upgrade. If you want to use some RELEASE, you can user freebsd-update command for binary update of base and jails. Also it is not good to do all the above steps as one chained command. Miroslav Lachman ___ freebsd-jail@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-jail To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: new multi-/no-ip4/v6 jail patches
On 2008.07.27 17:48:26 +, Bjoern A. Zeeb wrote: > On Sun, 27 Jul 2008, Bjoern A. Zeeb wrote: > >> On Sun, 27 Jul 2008, Bjoern A. Zeeb wrote: >> >> Hi, >> >> there is a regression in there with unbound udp connects. I am >> investigating and the patches are gone for the moment. I'll let you >> know once I updated them. > > the new patches are here: > > HEAD: http://people.freebsd.org/~bz/bz_jail-20080727-10-at146056.diff > 7-STABLE: http://people.freebsd.org/~bz/bz_jail7-20080727-10-at146056.diff This patch has been running since without problems on sky.FreeBSD.org (which hosts the FreeBSD wiki and more): 6:07PM up 5 days, 49 mins, 1 user, load averages: 0.00, 0.05, 0.07 -- Simon L. Nielsen ___ freebsd-jail@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-jail To unsubscribe, send any mail to "[EMAIL PROTECTED]"
The best way to upgrade my FreeBSD and its jails
My dedicated server is mother, its two jails are camel and box. Is this the best way to upgrade all of them? Pretty cool huh? - # FreeBSD/i386 mother.reddvinylene.no csup /etc/cvsupfile && \ cd /usr/src && \ make buildworld && \ make buildkernel && \ make installworld && \ make installkernel && \ make delete-old && \ make delete-old-libs && \ mergemaster -U&& \ export D=/usr/jail/camel && \ make installworld DESTDIR=$D && \ make installworld installkernel DESTDIR=$D && \ make delete-old DESTDIR=$D && \ make delete-old-libs DESTDIR=$D && \ cd etc/ && \ make distribution DESTDIR=$D && \ cd .. && \ mergemaster -U -D $D && \ export D=/usr/jail/box && \ make installworld DESTDIR=$D && \ make installworld installkernel DESTDIR=$D && \ make delete-old DESTDIR=$D && \ make delete-old-libs DESTDIR=$D && \ cd etc/ && \ make distribution DESTDIR=$D && \ cd .. && \ mergemaster -U -D $D && \ chflags -R noschg /usr/obj/* && \ rm -rf /usr/obj/* - Redd Vinylene http://www.home.no/reddvinylene ___ freebsd-jail@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-jail To unsubscribe, send any mail to "[EMAIL PROTECTED]"
The best way to upgrade my FreeBSD and its jails
My dedicated server is mother, its two jails are camel and box. Is this the best way to upgrade all of them? Pretty cool huh? - # FreeBSD/i386 mother.reddvinylene.no csup /etc/cvsupfile && \ cd /usr/src && \ make buildworld && \ make buildkernel && \ make installworld && \ make installkernel && \ make delete-old && \ make delete-old-libs && \ mergemaster -U&& \ export D=/usr/jail/camel && \ make installworld DESTDIR=$D && \ make installworld installkernel DESTDIR=$D && \ make delete-old DESTDIR=$D && \ make delete-old-libs DESTDIR=$D && \ cd etc/ && \ make distribution DESTDIR=$D && \ cd .. && \ mergemaster -U -D $D && \ export D=/usr/jail/box && \ make installworld DESTDIR=$D && \ make installworld installkernel DESTDIR=$D && \ make delete-old DESTDIR=$D && \ make delete-old-libs DESTDIR=$D && \ cd etc/ && \ make distribution DESTDIR=$D && \ cd .. && \ mergemaster -U -D $D && \ chflags -R noschg /usr/obj/* && \ rm -rf /usr/obj/* - Redd Vinylene http://www.home.no/reddvinylene ___ freebsd-jail@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-jail To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Multiple IPs
On Fri, 1 Aug 2008, Redd Vinylene wrote: Hi, # patch -p6 < bz_jail7-20080727-11-at146062.diff could be that it needs to be -p7 Try with patch -C -p6/7 (with -C) first and check that it does not complain. Yeah that's more like it ;) On Fri, Aug 1, 2008 at 10:05 AM, Redd Vinylene <[EMAIL PROTECTED]> wrote: Big ups to Bjoern A. Zeeb for his multiple IP patch as well as his friendly support service ;) I'd just like to confirm, however, if this is how it's done? # cd /usr/src # wget http://people.freebsd.org/~bz/bz_jail7-20080727-11-at146062.diff preferably use "fetch" as it comes with base;-) # patch -p6 bz_jail7-20080727-11-at146062.diff see above # make buildworld # make buildkernel KERNCONF=GENERIC # make installworld # make installkernel KERNCONF=GENERIC you do not need KERNCONF=GENERIC (that's the default) for both commands. # mergemaster -U Now to the jail part (this is exactly how I created the jail in the first place) # export D=/usr/jail/camel # mkdir -p $D # make world DESTDIR=$D that should be make installworld DESTDIR=$D # cd etc/ nope, no longer needed # make distribution DESTDIR=$D yes # mount -t devfs devfs $D/dev Rather not. Set jail_camel_devfs_enable="YES" in /etc/rc.conf (assuming the `name' of the jail will be camel). See the Jails section at the end of /etc/defaults/rc.conf for the other options. The IP addresses will need to be given as a ',' sepcarated list like: jail_camel_ip="192.0.2.1,192.0.2.17,192.0.2.255" You'll need a reboot somewhen for the new kernel etc. you can do sh /etc/rc.d/jail stop sh /etc/rc.d/jail start sh /etc/rc.d/jail stop camel sh /etc/rc.d/jail start camel ... I hope that helps. -- Bjoern A. Zeeb Stop bit received. Insert coin for new game. ___ freebsd-jail@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-jail To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Multiple IPs
Big ups to Bjoern A. Zeeb for his multiple IP patch as well as his friendly support service ;) I'd just like to confirm, however, if this is how it's done? # cd /usr/src # wget http://people.freebsd.org/~bz/bz_jail7-20080727-11-at146062.diff # patch -p6 bz_jail7-20080727-11-at146062.diff # make buildworld # make buildkernel KERNCONF=GENERIC # make installworld # make installkernel KERNCONF=GENERIC # mergemaster -U Now to the jail part (this is exactly how I created the jail in the first place) # export D=/usr/jail/camel # mkdir -p $D # make world DESTDIR=$D # cd etc/ # make distribution DESTDIR=$D # mount -t devfs devfs $D/dev Thank you all! Redd Vinylene http://www.home.no/reddvinylene ___ freebsd-jail@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-jail To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Multiple IPs
Also, under jail_X_ip in rc.conf, must I enter the IPs one by one or can I specify an entire range? Much obliged! On Fri, Aug 1, 2008 at 10:17 AM, Redd Vinylene <[EMAIL PROTECTED]> wrote: > Whooops, > > # patch -p6 < bz_jail7-20080727-11-at146062.diff > > Yeah that's more like it ;) > > On Fri, Aug 1, 2008 at 10:05 AM, Redd Vinylene <[EMAIL PROTECTED]> wrote: >> Big ups to Bjoern A. Zeeb for his multiple IP patch as well as his >> friendly support service ;) >> >> I'd just like to confirm, however, if this is how it's done? >> >> # cd /usr/src >> # wget http://people.freebsd.org/~bz/bz_jail7-20080727-11-at146062.diff >> # patch -p6 bz_jail7-20080727-11-at146062.diff >> # make buildworld >> # make buildkernel KERNCONF=GENERIC >> # make installworld >> # make installkernel KERNCONF=GENERIC >> # mergemaster -U >> >> Now to the jail part (this is exactly how I created the jail in the first >> place) >> >> # export D=/usr/jail/camel >> # mkdir -p $D >> # make world DESTDIR=$D >> # cd etc/ >> # make distribution DESTDIR=$D >> # mount -t devfs devfs $D/dev >> >> Thank you all! >> >> Redd Vinylene >> http://www.home.no/reddvinylene >> > ___ freebsd-jail@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-jail To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Multiple IPs
Whooops, # patch -p6 < bz_jail7-20080727-11-at146062.diff Yeah that's more like it ;) On Fri, Aug 1, 2008 at 10:05 AM, Redd Vinylene <[EMAIL PROTECTED]> wrote: > Big ups to Bjoern A. Zeeb for his multiple IP patch as well as his > friendly support service ;) > > I'd just like to confirm, however, if this is how it's done? > > # cd /usr/src > # wget http://people.freebsd.org/~bz/bz_jail7-20080727-11-at146062.diff > # patch -p6 bz_jail7-20080727-11-at146062.diff > # make buildworld > # make buildkernel KERNCONF=GENERIC > # make installworld > # make installkernel KERNCONF=GENERIC > # mergemaster -U > > Now to the jail part (this is exactly how I created the jail in the first > place) > > # export D=/usr/jail/camel > # mkdir -p $D > # make world DESTDIR=$D > # cd etc/ > # make distribution DESTDIR=$D > # mount -t devfs devfs $D/dev > > Thank you all! > > Redd Vinylene > http://www.home.no/reddvinylene > ___ freebsd-jail@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-jail To unsubscribe, send any mail to "[EMAIL PROTECTED]"