|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
||||
Power outage during OpenBSD upgrade from 6.7 to 6.8
Hello,
i'm looking for help with a specific problem I encountered due to power outage during OpenBSD upgrade from 6.7 to 6.8 At the very beginning I need to point out that I'm have somewhat limited experience with Linux/Unix but managed to install the system, set up the neccesary httpd/ftp and ssh for the purpose I needed, and kept the system upgraded and patched without problems so far. Now I'm not confident what to do at the moment. The system has been installed for over a year on an ancient hardware running 6.7 version just fine. I followed the upgrade using sysupgrade command. The /usr had over 1,3 GB free space, I've checked that before. The upgrade packages were downloaded, and the script started the unpacking and upgrade processs. After reboot, at some point, presumably during unpacking some userland - the system shut down probably due to power outage. After recoupling the power it booted into 6.8 as it says: Quote:
however it fails relinking the kernel Quote:
Quote:
It seems that no data that was previously downloaded is present on the hdd, as the amount of freespace on /usr is almost without change to what was before running the sysupgrade Quote:
However veryfying else seems to work fine which means at least that I can boot up, login and main services such as networking, httpd, ftp, sshd, and ntpd work as before. Now I'm unsure in what exactly state the system is, which means I'm unsure if it upgraded correctly as there was forced break during the process. So my question is - what should I do to make sure that the system upgraded or not? Where can I check any logs of what the sysupdate has done and where it stopped? How to sanitize the situation? I wouldn't like to mess up more so before I start to do anything, I'd like to kindly ask for your assistance and some help. Thank you in advance. |
|
|||
Should that be enough? Is there any way to check if there arn't any files missing or corrupted?
And what about sysmerge? Should I use this command? |
|
|||
Check root's mailbox. The upgrade process should email you a bunch of messages if it completed.
|
|
|||
Unfortunately the root mailbox has not been touched since installation of the system
Quote:
|
|
|||
The mailbox is /var/mail/root
I would rerun the upgrade by booting the bsd.rd and doing it the old fashioned way. If the install didn't finish, who knows what userland files are old. Installboot wouldn't have been run, etc. |
|
|||
/var/mail/root is nonexistent
Quote:
running the interactive upgrade as described here: https://www.openbsd.org/faq/upgrade68.html Which if I get it correctly means that I should manually download bsd.rd, then boot it and follow the upgrade path. Sounds reasonable |
|
|||
Yes. Someone correct me if I am wrong, but I think sysupgrade will believe you are already upgraded and won't run again so you'll have to do it with the bsd.rd
I suppose you can try sysupgrade again but we're right on the edge of the 6.9 release and I suppose it's possible that it might try to upgrade you to 6.9 unexpectedly. |
|
|||
Thank you.
I've gone through the process as advised, and it went smoothly from the beginning to the end. It has als sent me the e-mails about the sysmerge and fristrun so I suppose it's ok now. Thank you. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem after upgrade from OpenBSD 6.1 to 6.2 | Trihex | OpenBSD Installation and Upgrading | 4 | 17th October 2017 10:31 AM |
Soft power button doesn't power down | ffonz | OpenBSD General | 4 | 11th May 2015 02:55 PM |
Upgrade from Openbsd 4.6 to Opbsd 4.7 | Ultiny | OpenBSD Installation and Upgrading | 4 | 21st May 2010 11:07 PM |