Data Loss

Status
Not open for further replies.

Houghton19

Dabbler
Joined
Dec 25, 2011
Messages
15
Hey there Guys Im a very basic user of FreeNAS and dont use most of the features, basically have FN 8.0.2 (i think) installed on a little microserver that i keep out the way, I have pcs in the bedrooms and livingroom and i use the server so we can run XBMC in everyroom and everone has access to the server (me my wife and daughter). Over the last few weeks i have been loosing alot of data, i went from 9tb to 6tb then 6tb to 3tb.

I have the raid set so it just acts as 1 drive. On my main pc i have it mapped as a network drive and it still shows up as having 3tb on it but 6tb available.

Anybody know why im loosing the data and how to prevent it please ???

It ran for about 6 to 8 month with no problems then over a few week i lost loads.

Cheers

Tim.
 

Stephens

Patron
Joined
Jun 19, 2012
Messages
496
ssh into your box and type "zpool status" from the command line/shell. Paste the results here.

What's your layout? RAID0? RAID1? RAID-Z1?

You also need to figure out what version you're running.
 

Houghton19

Dabbler
Joined
Dec 25, 2011
Messages
15
sorry i my reply didnt post.

FreeNAS-8.0.4-RELEASE-p1-x64 (11059)

Raid 0 i think. its 5 drives as 1. it says striped.

no pools available

thanks
 

Houghton19

Dabbler
Joined
Dec 25, 2011
Messages
15
sorry i my reply didnt post.

FreeNAS-8.0.4-RELEASE-p1-x64 (11059)

Raid 0 i think. its 5 drives as 1. it says striped.

no pools available

thanks
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,402

Houghton19

Dabbler
Joined
Dec 25, 2011
Messages
15
nothing much, just movies which i can replace. Went from 2100 (ish) to 338 in a few days.

Just wondered if anyone knew how / why it happened and how to prevent it again without chaning raid and loosing half my HDD space.

T
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,402
nothing much, just movies which i can replace. Went from 2100 (ish) to 338 in a few days.
You need to figure out what deleted them. It doesn't happen automatically.
 

Houghton19

Dabbler
Joined
Dec 25, 2011
Messages
15
Well that was my thought. I thoughts daughter might have done it by accident but the 2nd load vanished when she wasn't here. My wife rarely uses the pc and when she does its just web browsing. And the only other person that has remote access is my best mate that installed sick beard and SabNZBd for me who I trust completely. No one else has access.
 

Stephens

Patron
Joined
Jun 19, 2012
Messages
496
Once you realize you, yourself, can make a mistake, you can't trust anyone else to be any more perfect than you. They might not even realize what they did.

It'd be nice to have a logging feature like this:

Code:
Timestamp         - User  - IP          - Access - File
-------------------------------------------------------
10/12/12 12:00.01 - root  - 192.168.0.1 - Read   - quicken.dat
10/12/12 12:01.02 - root  - 192.168.0.1 - Del    - quicken.dat
10/12/12 12:00.03 - root  - 192.168.0.1 - Write  - quicken.dat


I haven't given it much thought, though, in terms of implementation. It'd be somewhat problematic because FreeNAS is a software package that runs along with things that have nothing to do with FreeNAS. The FreeNAS don't develop nanoBSD, ProFTPD, Samba, ZFS, etc. So I'm not sure it's feasible to do such a log. In the Windows world, there's a tool called "filemon" (sysinternals) that can monitor every file access (gets huge in a hurry, so you filter stuff out). I don't know enough about *NIX to know if tools like that exist and if they can be used in combination with FreeNAS.

Anyway, if you had a snapshot, you'd have some protection from accidental deletion. Read up on snapshots, even if you only do manual ones. This is the relevant section of the manual people need to read...
NOTE: if you just need a one-time snapshot, instead use Storage -> Volumes -> View Volumes and click the Create Snapshot button for the volume or dataset that you wish to snapshot.
 
Status
Not open for further replies.
Top