Power Failure

Status
Not open for further replies.

Poppa

Explorer
Joined
Jun 3, 2017
Messages
87
I just experienced a momentary power failure while moving data to my FreeNAS server. What is the first thing I should check/do to make sure my drives and ZFS pool and data are ok?
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
Run a Scrub.
Next buy an UPS and put your FreeNAS on it to prevent this type of issue from happening in the future.
 

Poppa

Explorer
Joined
Jun 3, 2017
Messages
87
Run a Scrub.
Next buy an UPS and put your FreeNAS on it to prevent this type of issue from happening in the future.

I don't understand how to run a scrub right now. There is one scheduled that I didn't set up but I don't know how to start a one time immediate scrub. I also don't know to to view the results.

By the way, I have a UPS, two in fact with and extra bank of batteries for one but due to their enormous power requirements (100amps) they are not installed.
 

rs225

Guru
Joined
Jun 28, 2014
Messages
878
If the pool is up, then it is very likely 100% ok. You would want to check files that were modified in the last ten seconds or so before the power outage to make sure they are there and complete.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
I don't understand how to run a scrub right now.
Read the User Guide, it will tell you how.

By the way, I have a UPS, two in fact with and extra bank of batteries for one but due to their enormous power requirements (100amps) they are not installed.
That is a serious UPS! But they do no good if they are not connected.
 

Poppa

Explorer
Joined
Jun 3, 2017
Messages
87
I found out how to run the scrub.

Any idea how long it will take my 36x6TB pool with 24TB used to complete?
 

Stux

MVP
Joined
Jun 2, 2016
Messages
4,419
The time it takes to scan 24TB.
 

Stux

MVP
Joined
Jun 2, 2016
Messages
4,419
If you use the console to run zpool status

You can see an estimate of how long
 

Poppa

Explorer
Joined
Jun 3, 2017
Messages
87
If you use the console to run zpool status

You can see an estimate of how long

Does not work. It does not show all the information and does not give me a way to scroll up or select all the text.
 

farmerpling2

Patron
Joined
Mar 20, 2017
Messages
224
While you are learning use the "| more" to see all of the text in order of occurrence...

Code:
# zpool status -v | more

  pool: freenas-boot
state: ONLINE
  scan: scrub repaired 0 in 0h1m with 0 errors on Sat Sep 30 21:16:50 2017
config:

  NAME  STATE  READ WRITE CKSUM
  freenas-boot  ONLINE  0  0  0
  da0p2  ONLINE  0  0  0

errors: No known data errors

  pool: data1
state: ONLINE
  scan: scrub repaired 0 in 1h39m with 0 errors on Tue Sep 19 16:56:26 2017
config:

  NAME  STATE  READ WRITE CKSUM
  data1  ONLINE  0  0  0
	raidz2-0  ONLINE  0  0  0
	  gptid/f8be2dcd-9372-11e7-8f10-d8cb8a9edb89  ONLINE  0  0  0
	  gptid/379cff72-942e-11e7-8f10-d8cb8a9edb89  ONLINE  0  0  0
	  gptid/6c190144-95c4-11e7-8738-d8cb8a9edb89  ONLINE  0  0  0
	  gptid/80ad21b4-9a6e-11e7-959a-d8cb8a9edb89  ONLINE  0  0  0
	  gptid/2806b657-048d-11e7-b6f6-d8cb8a9edb89  ONLINE  0  0  0

errors: No known data errors
 
Last edited by a moderator:

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
It is going a lot faster than I thought.
It depends on the pool structure, how much data you have, and your hardware. Some systems will fly, some will seem like they are crawling.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,079
I don't understand how to run a scrub right now. There is one scheduled that I didn't set up but I don't know how to start a one time immediate scrub. I also don't know to to view the results.

By the way, I have a UPS, two in fact with and extra bank of batteries for one but due to their enormous power requirements (100amps) they are not installed.
If they are not installed, you don't have any.
Get something you can use and use it.

Sent from my SAMSUNG-SGH-I537 using Tapatalk
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Over $8k in just disks. This seems fishy since you don't know how to use a command line.

Read the manual cover to cover, read the noon guide, read the burn in guide. Read everything before you actually start to use this thing.
 
Last edited:

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,079
I just experienced a momentary power failure while moving data to my FreeNAS server. What is the first thing I should check/do to make sure my drives and ZFS pool and data are ok?
You need to learn how to use SSH to get a remote session to the shell, then you can scroll to see what you missed.
Why did you put 24TB of data in before learning to use the system?
Why would you put any data into the system with no UPS?
I have a UPS on my laptop and it has a built-in battery.

Sent from my SAMSUNG-SGH-I537 using Tapatalk
 

Poppa

Explorer
Joined
Jun 3, 2017
Messages
87
I knew there was a good reason I ignored this guy...

So you ignored me (but are still able to see my posts?) because I was using hardware the FreeNAS was incompatible with? Excuse me for not knowing everything and for not being an expert. We all got to start somewhere...

Don't be a superior snob.
 

Poppa

Explorer
Joined
Jun 3, 2017
Messages
87
You need to learn how to use SSH to get a remote session to the shell, then you can scroll to see what you missed.
Why did you put 24TB of data in before learning to use the system?
Why would you put any data into the system with no UPS?
I have a UPS on my laptop and it has a built-in battery.

Because all my drives were full and I needed to start storing my data right away. I spent several months familiarizing myself with FreeNAS. Do you expect me or anyone else to spend several years learning everything there is about FreeNAS or BSD or maybe even learning to code before using it? Isn't the point of something like FreeNAS is that it is supposed to be easy to setup and use by the average person?
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,079
Isn't the point of something like FreeNAS is that it is supposed to be easy to setup and use by the average person?
No. That is not the point at all. That is why there are so many resources available here, so you can learn. I spent months doing my research before I built my first system for testing and, based on what I learned, I bought better hardware before I moved my important data onto the system.
I acknowledge that everyone has to start somewhere, but the proper start is to read, ask questions to further understanding, learn more, ask more questions, then build. Plan ahead, don't wait until you need it right now and then try to rush into it before you are ready.
 
Status
Not open for further replies.
Top