On 04/07/2011 12:37 AM, Steven R. Gerber wrote:
On 4/6/2011 8:57 PM, Amit Kulkarni wrote:
Is this in the FAQ? Never thought I would read such a question.

Don't see that one too often, no. :)

On Wed, Apr 6, 2011 at 7:06 PM, Nick Holland
<[email protected]>  wrote:
On 04/06/11 18:46, Steven R. Gerber wrote:
I ran the upgrade from CD.
from i386 to amd64?  No.  Don't do this.

Boot off the CD again, and this time pick "install".
You can save your /home directory and config files.

amd64 and i386, for OpenBSD, are totally different platforms.  You can't
"upgrade" from one platform to another safely, you have to reinstall.

I want to be sure that packages are OK.
Is "pkg_add -u" sufficient?  (It looks like nothing changed.)
Should I try "pkg_add -u -D update" or something else?
nuke from orbit, only way to be sure.

Sure, you might be able to get away with this, but one left over library
or binary will really ruin your day at some point.

Nick.


Sorry for the stupid question?
But, this is a real scenario.
Testing for bug system/6586: rdist (file larger than 2GB) times out but
will not die.
I need(ed) one of my configured/development machines to go from i386 to
amd64.  I did not want to lose my configuration in /etc nor /home nor
/root ...

hey, sometimes you can get away with it. In fact, you may get away with it most of the times on a "normal" OpenBSD install.

But man. you get one binary left behind (library file, perhaps?) and you will have a bad time, so the "proper" advice for a production machine is to reload. You want to improvise, go ahead, it's your computer. We supply the bullets, you provide the foot, but we try not to help you put them together.

In the bigger picture, many users/admins will probably be doing similar
things as we can use more physical memory.
An appropriate FAQ entry would be terrific.
http://www.openbsd.org/faq/faq12.html#amd64 :
'Note that the OpenBSD/amd64 and OpenBSD/i386 boot loaders will load each other's kernels, making it easier to reinstall a system with the "other" platform. However, it has to be a complete "wipe and reinstall" operation -- left-over binaries from the "previous" installation will most likely make your life unpleasant.'

Perhaps not where you might have been looking, but unfortunately, when it comes to doing things wrong, there is a nearly unlimited number of ways. It is hard to cover it all. :)

I did save my /etc, /home, /root, etc. to an array
and did a full reinstall.
Some thoughts: Having to redo partitions/mounts was a pain.
        Going through /etc manually or by sysmerge is tedious.

Thanks,
Steven

re: another message in this thread, yes, the amd64 and i386 /etc directories are very very very similar. So is the sparc64 and i386 /etc directories. That's the nature of OpenBSD, they try to keep things as machine independent as they can. It's pretty amazing, really.

Nick.

Reply via email to