SOLVED FreeNAS USB drive has failed

Status
Not open for further replies.

Benjovy

Dabbler
Joined
Aug 14, 2014
Messages
10
My USB drive has failed that the Freenas was booting from. How do I go about retrieving the data on the disk on my NAS (was running v9.2.1.7 I think)?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Install FreeNAS to new media, boot, upload your config and you're good to go.
 

Benjovy

Dabbler
Joined
Aug 14, 2014
Messages
10
How do I go about uploading the config? I thought the config was on the USB stick that has gone to god....
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
How do I go about uploading the config? I thought the config was on the USB stick that has gone to god....

It might be.. but you were a good admin and made a backup of your config file, right? Right!?
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Yes, except if you backup a bad copy, then continue checking against the bad copy, you'll keep having a bad copy. That's why ProtoSD and I don't use that. We'd rather just have another copy every day. Besides that, FreeNAS makes internal changes that seem to happen almost daily, so you aren't exactly saving yourself much for a feature that, if you need it, you'll want as many copies available as you can get your hands on. :)
 

Benjovy

Dabbler
Joined
Aug 14, 2014
Messages
10
Lets assume that there is no backup of config file. Is there anyway to access the files and folders?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Yes. Reinstall FreeNAS and everything will be there. You'll just have to reconfigure shares and stuff from scratch.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
I have a copy of every configuration change I've made since I started. And unless I make a change, I don't get a backup copy. I'm not sure what configuration changes FreeNas makes internally, but it hasn't seemed to affect me.

What do you use to make your daily copy, and where do you store them?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
I use the script I wrote and posted in the forums way back when to backup the file every night automatically. 11:05PM I get a pretty file in my folder. Here's what my backups look like right now.. ;)

Code:
[root@freenas] /mnt/tank/.scripts/ConfigBackups# ls -l
total 12976
drwxrwxrwx  2 root  wheel  129 Jan 18 23:05 ./
drwxrwxrwx  4 root  wheel  11 Sep 14 02:24 ../
-rw-r-----  1 root  wheel  266240 Sep 14 23:05 20140914_9.2.1.7.db
-rw-r-----  1 root  wheel  266240 Sep 15 23:05 20140915_9.2.1.7.db
-rw-r-----  1 root  wheel  266240 Sep 16 23:05 20140916_9.2.1.7.db
-rw-r-----  1 root  wheel  266240 Sep 17 23:05 20140917_9.2.1.7.db
-rw-r-----  1 root  wheel  266240 Sep 18 23:05 20140918_9.2.1.7.db
-rw-r-----  1 root  wheel  266240 Sep 19 23:05 20140919_9.2.1.7.db
-rw-r-----  1 root  wheel  266240 Sep 20 23:05 20140920_9.2.1.7.db
-rw-r-----  1 root  wheel  266240 Sep 21 23:05 20140921_9.2.1.7.db
-rw-r-----  1 root  wheel  266240 Sep 22 23:05 20140922_9.2.1.7.db
-rw-r-----  1 root  wheel  266240 Sep 23 23:05 20140923_9.2.1.7.db
-rw-r-----  1 root  wheel  266240 Sep 24 23:05 20140924_9.2.1.7.db
-rw-r-----  1 root  wheel  266240 Sep 25 23:05 20140925_9.2.1.7.db
-rw-r-----  1 root  wheel  266240 Sep 26 23:05 20140926_9.2.1.7.db
-rw-r-----  1 root  wheel  266240 Sep 27 23:05 20140927_9.2.1.7.db
-rw-r-----  1 root  wheel  266240 Sep 28 23:05 20140928_9.2.1.7.db
-rw-r-----  1 root  wheel  266240 Sep 29 23:05 20140929_9.2.1.7.db
-rw-r-----  1 root  wheel  268288 Sep 30 23:05 20140930_9.2.1.8.db
-rw-r-----  1 root  wheel  268288 Oct  1 23:05 20141001_9.2.1.8.db
-rw-r-----  1 root  wheel  268288 Oct  2 23:05 20141002_9.2.1.8.db
-rw-r-----  1 root  wheel  268288 Oct  3 23:05 20141003_9.2.1.8.db
-rw-r-----  1 root  wheel  268288 Oct  4 23:05 20141004_9.2.1.8.db
-rw-r-----  1 root  wheel  268288 Oct  5 23:05 20141005_9.2.1.8.db
-rw-r-----  1 root  wheel  268288 Oct  6 23:05 20141006_9.2.1.8.db
-rw-r-----  1 root  wheel  268288 Oct  7 23:05 20141007_9.2.1.8.db
-rw-r-----  1 root  wheel  268288 Oct  8 23:05 20141008_9.2.1.8.db
-rw-r-----  1 root  wheel  268288 Oct  9 23:05 20141009_9.2.1.8.db
-rw-r-----  1 root  wheel  268288 Oct 10 23:05 20141010_9.2.1.8.db
-rw-r-----  1 root  wheel  268288 Oct 11 23:05 20141011_9.2.1.8.db
-rw-r-----  1 root  wheel  268288 Oct 12 23:05 20141012_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 13 23:05 20141013_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 14 23:05 20141014_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 15 23:05 20141015_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 16 23:05 20141016_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 17 23:05 20141017_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 18 23:05 20141018_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 19 23:05 20141019_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 20 23:05 20141020_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 21 23:05 20141021_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 22 23:05 20141022_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 23 23:05 20141023_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 24 23:05 20141024_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 25 23:05 20141025_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 26 23:05 20141026_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 27 23:05 20141027_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 28 23:05 20141028_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 29 23:05 20141029_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 30 23:05 20141030_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Oct 31 23:05 20141031_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov  1 23:05 20141101_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov  2 23:05 20141102_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov  3 23:05 20141103_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov  4 23:05 20141104_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov  5 23:05 20141105_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov  6 23:05 20141106_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov  7 23:05 20141107_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov  8 23:05 20141108_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov  9 23:05 20141109_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 10 23:05 20141110_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 11 23:05 20141111_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 12 23:05 20141112_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 13 23:05 20141113_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 14 23:05 20141114_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 15 23:05 20141115_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 16 23:05 20141116_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 17 23:05 20141117_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 18 23:05 20141118_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 19 23:05 20141119_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 20 23:05 20141120_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 21 23:05 20141121_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 22 23:05 20141122_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 23 23:05 20141123_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 24 23:05 20141124_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 25 23:05 20141125_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 26 23:05 20141126_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 27 23:05 20141127_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 28 23:05 20141128_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 29 23:05 20141129_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Nov 30 23:05 20141130_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Dec  1 23:05 20141201_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Dec  2 23:05 20141202_9.2.1.8.db
-rw-r-----  1 root  wheel  269312 Dec  3 23:05 20141203_9.2.1.8.db
-rw-r-----  1 root  wheel  271360 Dec  4 23:05 20141204_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec  5 23:05 20141205_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec  6 23:05 20141206_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec  7 23:05 20141207_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec  8 23:05 20141208_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec  9 23:05 20141209_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 10 23:05 20141210_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 11 23:05 20141211_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 12 23:05 20141212_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 13 23:05 20141213_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 14 23:05 20141214_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 15 23:05 20141215_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 16 23:05 20141216_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 17 23:05 20141217_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 18 23:05 20141218_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 19 23:05 20141219_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 20 23:05 20141220_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 21 23:05 20141221_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 22 23:05 20141222_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 23 23:05 20141223_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 24 23:05 20141224_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 25 23:05 20141225_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 26 23:05 20141226_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 27 23:05 20141227_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 28 23:05 20141228_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 29 23:05 20141229_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 30 23:05 20141230_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Dec 31 23:05 20141231_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Jan  1 23:05 20150101_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Jan  2 23:05 20150102_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Jan  3 23:05 20150103_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Jan  4 23:05 20150104_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Jan  5 23:05 20150105_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Jan  6 23:05 20150106_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Jan  7 23:05 20150107_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Jan  8 23:05 20150108_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Jan  9 23:05 20150109_9.2.1.9.db
-rw-r-----  1 root  wheel  271360 Jan 10 23:05 20150110_9.2.1.9.db
-rw-r-----  1 root  wheel  272384 Jan 11 23:05 20150111_9.2.1.9.db
-rw-r-----  1 root  wheel  272384 Jan 12 23:05 20150112_9.2.1.9.db
-rw-r-----  1 root  wheel  337920 Jan 13 23:05 20150113_9.3.db
-rw-r-----  1 root  wheel  337920 Jan 14 23:05 20150114_9.3_201501090144.db
-rw-r-----  1 root  wheel  337920 Jan 15 23:05 20150115_9.3_201501090144.db
-rw-r-----  1 root  wheel  337920 Jan 16 23:05 20150116_9.3_201501090144.db
-rw-r-----  1 root  wheel  337920 Jan 17 23:05 20150117_9.3_201501090144.db
-rw-r-----  1 root  wheel  337920 Jan 18 23:05 20150118_9.3_201501090144.db
 

Benjovy

Dabbler
Joined
Aug 14, 2014
Messages
10
Thanks you "people/boffins" that was pretty painless to reconfigure and get the shares working again. What are the essential files that contain the configs that require backup (btw upgraded to 9.3 also and type slowly as I have Linux learning disorder)?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Read the manual on saving your config file. It's a single file. ;)
 

Benjovy

Dabbler
Joined
Aug 14, 2014
Messages
10
Manual contains many big words....Can you throw me a hint? I did a search on user documentation and came up with sweet FA
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
System-> General->Save Config

upload_2015-1-19_22-7-31.png
 
Status
Not open for further replies.
Top