b49b How to know if your jails are out of sync with the host system - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old May 12th, 2009, 10:22
ironmikie ironmikie is offline
Junior Member
 
Join Date: Nov 2008
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to know if your jails are out of sync with the host system

Gents,

I have this little question about updating jails. I run a couple of jails on my system. After updating the world of the host system i nullfs mount /usr/src and /usr/obj to the jails to do an installworld on the jails.

If i don't remember myself which jail i already update and which not, how can i find this information. Running uname -a doesn't tell me anything cause there is only one kernel.

Is there an easy way to see if a jail is out of sync with the host system? I hope it's not just a matter of comparing versions of updated binaries.

It would be nice to have something like /etc/VERSION.

Thanks in advance
Reply With Quote
  #2  
Old May 12th, 2009, 11:17
vivek's Avatar
vivek vivek is offline
Member
 
Join Date: Nov 2008
Location: Hyper Space
Posts: 809
Thanks: 3
Thanked 184 Times in 102 Posts
Default

Jail shares same kernel so yo cannot use differnet kernles. However, apps and releated libs can be upgraded as and when required.
__________________
Neither in this world nor elsewhere is there any happiness in store for him who always doubts. If you enjoyed my answer please consider donating some money to FreeBSD foundation @ http://www.freebsdfoundation.org/
Reply With Quote
  #3  
Old May 12th, 2009, 13:53
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,849
Thanks: 30
Thanked 1,892 Times in 1,335 Posts
Default

Vivek, I think you missed the point (twice)

I agree that it would be nice to have a way to ask an application or some 'version file' "Which userland am I running at the moment?". If the host's kernel and the jail's userland are out of sync (say, the kernel was built May 1, and the userland was built Mar 1), there is no apparent way of knowing, because (as far as I know), uname is the only tool to get version information, but only from the kernel.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #4  
Old May 12th, 2009, 14:47
mousaka mousaka is offline
Junior Member
 
Join Date: Nov 2008
Location: Switzerland
Posts: 56
Thanks: 5
Thanked 7 Times in 7 Posts
Default

Some days ago I was wondering about the same issue. On the German forum www.bsdforen.de was a thread about the ability to use ezjail-admin update -u to upgrade jails.
Currently it seems, that freebsd-update (and therefor ezjail-admin) isn't able to to upgrade a directory (containing a jail) using the switches -b and/or -d.
There was no answer how to check the status of the userland inside a jail to check a successful upgrade.

Maybe some one here can give us a suggestion or is this a missing feature

mousaka
__________________
I thought of that while riding my bicycle.
--- Albert Einstein
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] sendmail and unqualified host name abarmot Web & Network Services 4 April 28th, 2013 16:17
Jails: 32bit Jail on 64bit system asg General 2 September 10th, 2012 08:56
where is /root/cvsup/ports-sync.sh? osx-addict Installing & Upgrading 5 March 19th, 2009 18:19
host redirection via ipfw SaveTheRbtz Web & Network Services 6 December 26th, 2008 07:49
how to sync LDAP with windows AD? cpliu903 Web & Network Services 0 December 7th, 2008 08:18


All times are GMT +1. The time now is 00:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0