Where has my data and free space gone?

Status
Not open for further replies.

t_ams1st

Dabbler
Joined
Nov 14, 2017
Messages
12
Hi folks,

upload_2017-11-23_18-58-12.png


This is the fourth time I've reinstalled FreeNAS due to making mistakes with the permissions settings and somehow I've now managed to "lose" 3.4 TB of space. I have 4x3TB drives installed in raid5. I had or should have 3.9TB of free space and don't know what I've changed to make the other 3.4TB vanish. How do I find out which dataset actually contains my data?
Is it on Home or Shared?

I had it running fine a few days ago with Plex and added transmission. I tried to setup port forwarding and managed to lock myself out of FreeNAS altogether (changing the subnet mask I think).

I am loathe to ask such questions but I have searched the forum and google but am obviously not asking the right question as I'm getting nowhere and don't want to delete my "Shared" dataset if that's where my data is actually stored.

Any help would be greatly appreciated. I have a lot to learn regarding this OS.

Cheers
 
Last edited by a moderator:

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
You haven't lost any space.

4x3TB drives in RAIDZ1 yields about 8TiB of total storage. You have used 7.2 TiB with 512GiB free. There's some overhead. But the numbers are correct. Disregard the first line - that's the raw amount of storage before parity.
 

t_ams1st

Dabbler
Joined
Nov 14, 2017
Messages
12
Hi gpsguy,

I reloaded FreeNAS tonight because I had changed permissions and created an SMB share at which point I went from 3.9TB free space down to 500GB, so reloaded the OS to try and wipe whatever settings I have messed up. So somehow I've created a 500GB share and can't see the rest of the free space. I have around 3.4TB of data on the drives. But which dataset is it on?
 
Last edited by a moderator:

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,995
In a shell enter zfs list and post the output in code brackets
Capture_Code_Brackets.JPG
 

t_ams1st

Dabbler
Joined
Nov 14, 2017
Messages
12
Code:
[root@freenas ~]# zfs list																										 
NAME													USED  AVAIL  REFER  MOUNTPOINT											 
Home												   7.15T   516G   128K  /mnt/Home											   
Home/.system										   47.4M   516G   140K  legacy												 
Home/.system/configs-76c11d7f8a944b3d8e42fe35420dbaa3  1.48M   516G  1.48M  legacy												 
Home/.system/configs-855bd5436d8f4893aaa9acefc1afe7c0   128K   516G   128K  legacy												 
Home/.system/configs-a55ef3b7bdf6401ca9506a0431d4885b   668K   516G   668K  legacy												 
Home/.system/cores									  645K   516G   645K  legacy												 
Home/.system/rrd-76c11d7f8a944b3d8e42fe35420dbaa3	  17.7M   516G  17.7M  legacy												 
Home/.system/rrd-855bd5436d8f4893aaa9acefc1afe7c0	  8.93M   516G  8.93M  legacy												 
Home/.system/rrd-a55ef3b7bdf6401ca9506a0431d4885b	  14.5M   516G  14.5M  legacy												 
Home/.system/samba4									 610K   516G   610K  legacy												 
Home/.system/syslog-76c11d7f8a944b3d8e42fe35420dbaa3   1.23M   516G  1.23M  legacy												 
Home/.system/syslog-855bd5436d8f4893aaa9acefc1afe7c0	622K   516G   622K  legacy												 
Home/.system/syslog-a55ef3b7bdf6401ca9506a0431d4885b	773K   516G   773K  legacy												 
Home/Shared											7.15T   516G  7.15T  /mnt/Home/Shared										
freenas-boot											736M  6.30G	64K  none													
freenas-boot/ROOT									   729M  6.30G	29K  none													
freenas-boot/ROOT/Initial-Install						 1K  6.30G   727M  legacy												 
freenas-boot/ROOT/default							   729M  6.30G   727M  legacy												 
freenas-boot/grub									  6.29M  6.30G  6.29M  legacy	 
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,995
All your data is located in "/mnt/Home/Shared", about 7.15TB. You must have copied a lot of data into that location. If you did not copy that much data there then you likely have snapshots enabled and did a little overkill in the configuration. If that is the case then you need to address it.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
your dataset named "Shared" is using 7.15TB of space so I would assume all your data is in there.
 

t_ams1st

Dabbler
Joined
Nov 14, 2017
Messages
12
There should only be around 3.4TB & 3.9TB empty. I created a SMB share for the \mnt\home which shows in windows as Homes and I cannot connect to it! This is the second time this has happened, I thought I remembered something about windows remembering old share names and confusing them?

I need to see the files on \mnt\home to see why they are taking up so much space.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,995
You likely have a permission issue with respect to the SMB access.
 

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
There should only be around 3.4TB & 3.9TB empty. I created a SMB share for the \mnt\home [..]

I need to see the files on \mnt\home to see why they are taking up so much space.

This again.. no you did not, you have created a share to the dataset /mnt/home/shared

I’m guessing you have copied your data to both home and shared in your trials.. if it’s something that can be replicated then I would destroy the pool and look at monkeys video on smb permissions
 

t_ams1st

Dabbler
Joined
Nov 14, 2017
Messages
12
Data was only copied once, it took long enough. It was only when I changed permissions recursively that this occurred. I now get "windows 7 the network path was not found" when trying to connect from windows. I've messed up the volume settings as a clean install is not helping. I need to "see" the files so I can get them back off and start again.
 

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
Reinstalling FreeNAS won’t do anything to your zpool, that would be insane. The pool can be destroyed without reinstalling, but there is no saying what you have done to FreeNAS. A fresh install would put you in a known state for following monkeys video
 

t_ams1st

Dabbler
Joined
Nov 14, 2017
Messages
12
This is a fresh install. I don't think i've destroyed anything, tied myself in knots maybe. Should /mnt/home be left as a unix share? I did change it to windows but have since changed back. I set a user & group with full access and attempted to map the drive in windows and get the "network path not found" as windows sees a share called "Homes" which doesn't exist. I had this earlier and a fresh install wiped the settings I had messed up but this time...
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,995
If you want to see what is there, in the FreeNAS GUI open the Shell (in the left pane) and type cd /mnt/Home/Shared and then ls and you will see all the directory structure and files you moved there. If you are not familiar with the commands cd or ls then you should nto be messing around with FreeNAS and you need to do some research into how BSD command line commands work. Google search the two commands, "freebsd cd man" and "freebsd ls man" for the manual on these commands.

Hope this helps.
 

t_ams1st

Dabbler
Joined
Nov 14, 2017
Messages
12
Thanks Joe, I'll be home in a couple of hours to try again.

I'm familiar with similar DOS commands so understand what they do. It's the permissions and the demarcation between Freenas and windows that seems to be getting me. I'm going to reinstall when I get home and follow the video link above nice and slowly and hopefully that will get me back to at least being able to map the share in windows.
 

t_ams1st

Dabbler
Joined
Nov 14, 2017
Messages
12
Progress. I managed to get back in. I have somehow duplicated my data which is why my free space has plummeted but is this actually two copies or is one referring to the other?

On /mnt/Home I have all my folders + a Shared folder which contains all the folders on Home.

upload_2017-11-24_17-5-33.png


Yet when I run ls in both directories I get:

Code:
[root@freenas ~]# cd /mnt/Home																									 
[root@freenas /mnt/Home]# ls																										
.windows		Guest		   Shared																							 
[root@freenas /mnt/Home]# /mnt/Home/Shared																						 
bash: /mnt/Home/Shared: Is a directory																							 
[root@freenas /mnt/Home]# cd /mnt/Home/Shared																					   
[root@freenas /mnt/Home/Shared]# ls																								 
.ReadyDLNA							  film									Preferences.xml									 
.windows								Guest								   reaper-license.rk								   
{10E7BD57-C5FE-484f-A3F2-A1755286C0A7}  Logs									reapercode.txt									 
Aiki									Media								   Shared											 
AUDIOBOOK							   Metadata								Software											
autorun								 Music								   torrent											 
BOOKS								   photo								   Tutorial											
Cache								   Plug-in Support						 USL1.xlsx										   
Codecs								  Plug-ins								Wendy											   
[root@freenas /mnt/Home/Shared]#


/mnt/Home only shows the Shared folder and not the rest of the folders I can see in windows explorer.

Which set of files is it safe to delete?
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
I don't see you duplicating you files? It looks like everything is in your shared dataset. Looks like you also have a directory named guest. Does it have a propose?
 

t_ams1st

Dabbler
Joined
Nov 14, 2017
Messages
12
Windows explorer shows all the folders that are also contained in the Shared folder but ls does not.

Guest is probably a relic from failed attempts earlier, I think.

upload_2017-11-24_17-16-15.png
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Screenshots of your window share settings? I don't understand what you have going on.
 
Status
Not open for further replies.
Top