OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • can't boot after power failer
« previous next »
  • Print
Pages: [1]

Author Topic: can't boot after power failer  (Read 7334 times)

Kaxia

  • Newbie
  • *
  • Posts: 29
  • Karma: 4
    • View Profile
can't boot after power failer
« 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?
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 15133
  • Karma: 1309
    • View Profile
Re: can't boot after power failer
« Reply #1 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
Logged

Kaxia

  • Newbie
  • *
  • Posts: 29
  • Karma: 4
    • View Profile
Re: can't boot after power failer
« Reply #2 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!
Logged

Kaxia

  • Newbie
  • *
  • Posts: 29
  • Karma: 4
    • View Profile
Re: can't boot after power failer
« Reply #3 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?
Logged

chol

  • Jr. Member
  • **
  • Posts: 99
  • Karma: 17
    • View Profile
Re: can't boot after power failer
« Reply #4 on: May 25, 2015, 10:30:24 pm »
Kaxia , look here, please, it might help
Logged

Kaxia

  • Newbie
  • *
  • Posts: 29
  • Karma: 4
    • View Profile
Re: can't boot after power failer
« Reply #5 on: May 29, 2015, 03:37:19 pm »
Thank you chol! i will go to study it.
Logged

gratis

  • Newbie
  • *
  • Posts: 15
  • Karma: 5
    • View Profile
Re: can't boot after power failer
« Reply #6 on: June 26, 2015, 06:24:59 pm »
You may find this helpful: https://forum.opnsense.org/index.php?topic=755.0
Logged

lucifercipher

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 9
    • View Profile
Re: can't boot after power failer
« Reply #7 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.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 15133
  • Karma: 1309
    • View Profile
Re: can't boot after power failer
« Reply #8 on: July 06, 2015, 12:28:13 pm »
The latter used to be true, but we have migrating away from the read-only approach.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • can't boot after power failer
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2