On 05/15/13 15:56, [email protected] wrote:
Hello everyone.
I failed to upgrade my server from 5.2 to 5.3, probably because of a
bad answer to the 'Root filesystem?' question.
Setup:
- HP ProLiant MicroServer N40L server, amd64, GENERIC kernel
- Two disks (sd0, sd1) in softraid (sd2)
- I followed the 'Upgrading by install kernel' process, with the 5.3
version of bsd.rd which I placed in /.
- at the 'Root filesystem? [sd0]' question, instead of accepting the
first physical disk detected, I answered 'sd2', thinking that I
shouldn't indicate a particular disk among the two physical ones. I
followed a similar advice found on a couple of blog pages [1, 2].
Hi,
I upgraded a system with a softraid from 5.2 to 5.3 where the softraid
consisted of wd0 and wd1 and the softraid was sd0, I chose sd0 here.
Result:
- At the end of the upgrade process, following message :
Failed to install bootblocks.
You will not be able to boot OpenBSD from sd2
When I got that message I did not reboot but went into /dev and did sh
MAKEDEV wd1 which was missing, in your case you likely had missing
/dev/[r]sd1* perhaps? I then repeated the install process but instead
of installing the tarballs I typed done and it then wrote a bootblock to
both wd0 and wd1 and was nice after. I could reboot and everything went
well.
- Indeed, can't boot anymore, boot process stalled with the following
message:
Using drive 0, partition 3
Loading...
- Powered off the server.
Questions :
- did I break things irremediably, hense will have to reinstall
everything from scratch and backups?
- alternatively, should I try something else like removing one disk or
the other, then try to rebuild the RAID?
I don't think you did anything bad. You just need to go back to the
bsd.rd and escape to shell with S then "cd /dev; sh MAKEDEV sd1 sd2" and
exit the shell, then install on sd2, you can skip installing like I did
by going directly to done because you did it before. That's my theory,
practice always is different, why don't you give it a try?
Thanks in advance. I must confess that the first softraid building and
5.2 install was a real pain for me, and I still do not fully grasp
softraid, and the way it may interact with the upgrade process.
I don't fully grasp it either I don't think, but I sticked to my
installation guide found online somewhere and it worked out so far. I
guess I'm lucky.
I wish you luck too!
-peter
Olivier Debre
Refs.
[1]
http://spiritedblowfish.wordpress.com/2012/07/19/installing-openbsd-5-1-amd64-using-softraid/
[2]
http://blog.cochard.me/2012/03/openbsd-51-installation-on-sofraid4.html