Do I have to rebuild my jails too when I rebuild the server?

Christian Hiris 4711 at chello.at
Mon Dec 20 16:24:18 PST 2004


On Tuesday 21 December 2004 00:41, Daniel Johansson wrote:
> On Mon, 20 Dec 2004 17:31:52 -0600, Frank Knobbe <frank at knobbe.us> 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 <4711 at chello.at> | OpenPGP KeyID 0x3BCA53BE 
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20041221/8a4202fd/attachment.bin


More information about the freebsd-questions mailing list