DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 5th January 2010
Novice Novice is offline
Rooky
 
Join Date: Jan 2010
Posts: 3
Thanked 0 Times in 0 Posts
Default Upgrade from version 3.7

Hi all,

I have actually an OpenBSD box Version 3.7. Can someone help me understand the process to upgrade the OS to the last stable version ?
Only PF is running on it.

Thank you,
Reply With Quote
  #2   (View Single Post)  
Old 5th January 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Upgrading only works between the last two releases, 4.4->4.5 and 4.5->4.6.. upgrading from 3.7 to 4.6 is unsupported.

The best method of updating this system would be to preform a clean 4.6 installation and migrate the previous configuration manually (..from a backup).

PF syntax has changed over time, copying 3.7 pf.conf verbatim will not work.. you will have to make some changes, the PF FAQ and man pages can help you with this.

Feel free to ask additional questions, we'll certainly try to help make it easier for you.

Last edited by BSDfan666; 5th January 2010 at 04:53 PM.
Reply With Quote
  #3   (View Single Post)  
Old 5th January 2010
Novice Novice is offline
Rooky
 
Join Date: Jan 2010
Posts: 3
Thanked 0 Times in 0 Posts
Default

Thank you BSDFan666,

Actually my only way to backup is to keep:
pf.conf
hostname.xx0...
resolv.conf
mygate.conf

Is that enough ?
Reply With Quote
  #4   (View Single Post)  
Old 5th January 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

I don't know enough about your system, I'd recommend that you create an archive of both /etc and /var and store them safely on another system (..tar/cpio/dump etc).

This will allow you to carefully review everything and then you can selectively merge things later.

It's better to have them and not need them, then need them and not have them.

Do you SSH to this system? you may wish to at least retain the host keys.
Reply With Quote
  #5   (View Single Post)  
Old 5th January 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,930
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by Novice View Post
Is that enough ?
Of course, there is whatever personal data you may have.

Of the files mentioned above, note that PF has radically changed since OpenBSD 3.7 -- to the point where of essentially being completely rewritten. Whatever pf.conf you have now in 3.7 is likely to incompatible, however, you can use it as the basis to rewriting in 4.6. As for the other files mentioned, I don't recall that there has been changes to resolv.conf. There are also the password file, configurations to DHCP if you are running the server, & any other daemon which you may have customized.

Note that you can upgrade from 3.7, but you will need to upgrade incrementally from 3.7 t o3.8, 3.8 to 3.9, etc.. all the way up to 4.6 Personally, I would copy anything of value, & simply reinstall given the laborious process of updating successive versions, but what you do is your choice.
Reply With Quote
  #6   (View Single Post)  
Old 5th January 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

The incremental update, while possible.. will leave additional "cruft" around the system, like previous shared libraries and perhaps binaries (..removed from newer releases).

I honestly don't know how long the OpenBSD kernel retains binary compatible with past releases, so as I mentioned.. a clean reinstall of 4.6 is probably the better option.
Reply With Quote
  #7   (View Single Post)  
Old 5th January 2010
Novice Novice is offline
Rooky
 
Join Date: Jan 2010
Posts: 3
Thanked 0 Times in 0 Posts
Default

Thank you guys,

I will try to have a better view of what look like 4.6 on a test machine. And then start rewriting every thing.. that will be a damn work ..
Reply With Quote
  #8   (View Single Post)  
Old 5th January 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Honestly, you shouldn't let systems run unmaintained for so many years.. they need to be a priority.. releases happen every 6 months, security/reliability updates are made available on the errata page.

All-in-all, a release is supported by the developers for 12 months.. plenty of time to prepare a decent upgrade policy.
Reply With Quote
  #9   (View Single Post)  
Old 5th January 2010
J65nko J65nko is online now
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,244
Thanked 182 Times in 149 Posts
Default

Buy yourself a 4GB USB stick for 10 bucks/euro's and backup the whole system to in. That way you always can get things back.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
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
kernel version 0?? Stellar OpenBSD General 5 30th August 2009 11:07 PM
My version of pkg_add :) DNAeon FreeBSD Ports and Packages 26 15th October 2008 06:58 AM
version of OpenBSD milo974 OpenBSD General 1 6th August 2008 08:24 AM
[FreeBSD] which version of PostgreSQL? MacApp FreeBSD Ports and Packages 8 12th July 2008 09:25 AM
How I can have two version of zsh mfaridi FreeBSD Ports and Packages 7 15th May 2008 05:56 PM


All times are GMT. The time now is 11:55 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick