OPNsense Forum

English Forums => General Discussion => Topic started by: Kaxia on May 24, 2015, 06:54:23 am

Title: can't boot after power failer
Post by: Kaxia on May 24, 2015, 06:54:23 am
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?
Title: Re: can't boot after power failer
Post by: franco on May 24, 2015, 08:47:41 am
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
Title: Re: can't boot after power failer
Post by: Kaxia on May 24, 2015, 02:06:59 pm
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!
Title: Re: can't boot after power failer
Post by: Kaxia on May 24, 2015, 04:34:11 pm
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?
Title: Re: can't boot after power failer
Post by: chol on May 25, 2015, 10:30:24 pm
Kaxia , look here (https://knowledge.zomers.eu/pfsense/Pages/Configure-pfSense-2-0-RC1-to-use-Watchdog-functionality-Method2.aspx), please, it might help
Title: Re: can't boot after power failer
Post by: Kaxia on May 29, 2015, 03:37:19 pm
Thank you chol! i will go to study it.
Title: Re: can't boot after power failer
Post by: gratis on June 26, 2015, 06:24:59 pm
You may find this helpful: https://forum.opnsense.org/index.php?topic=755.0 (https://forum.opnsense.org/index.php?topic=755.0)
Title: Re: can't boot after power failer
Post by: lucifercipher on July 06, 2015, 11:38:37 am
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.
Title: Re: can't boot after power failer
Post by: franco on July 06, 2015, 12:28:13 pm
The latter used to be true, but we have migrating away from the read-only approach.