can't boot after power failer

Started by Kaxia, May 24, 2015, 06:54:23 AM

Previous topic - Next topic
Hi,
After the electricity interrupted, then restored, my OPNsense can't reboot. VGA mode, it shows: no media...

So i had to reinstall by my USB flash disk and configure lan ip, then restore configuration.

what is the reason? how can i do to prevent this failure happen again?

Hi there,

power failures may be mitigated by using gmirror (RAID) configurations, but that does not address the real problem. Power failures in itself make the file system inconsistent and this can translate to unrecoverable system states. We have inherited gmirror support whilst forking, but I don't think anybody has looked at the state of things (users and developers -- if that's not true please speak up).

If it's cirical infrastructure companies go with UPS to at least power down the servers in case of emergency (they don't last forever) or have a generator ready to make up for the lost power.

https://www.freebsd.org/doc/en/books/handbook/geom-mirror.html
https://en.wikipedia.org/wiki/Uninterruptible_power_supply


Cheers,
Franco

we use a UPS, but it only support 20 minutes, so still meet this fault.
if OPnsense will support detecting power status automatic and shutdown by itself?add  watchdog on OPNsense?

Thanks!

smart log:
smartctl 6.3 2014-07-26 r3976 [FreeBSD 10.1-RELEASE-p10 i386] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

Warning! SMART Attribute Data Structure error: invalid SMART checksum.
=== START OF READ SMART DATA SECTION ===
Warning! SMART ATA Error Log Structure error: invalid SMART checksum.
SMART Error Log Version: 10
Invalid Error Log index = 0x08 (T13/1321D rev 1c Section 8.41.6.8.2.2 gives valid range from 1 to 5)

is it my ssd bad?

Kaxia , look here, please, it might help

Thank you chol! i will go to study it.


The ISO installs do that . On the other hand, the image based installs are mostly mounted as Read Only and chances of a corrupt file system are rare.

The latter used to be true, but we have migrating away from the read-only approach.