SOLVED Storage question (.recycle issue)

mrramsey

Dabbler
Joined
Nov 17, 2016
Messages
49
So rewind a few years ago when I first set up my FreeNas box. I probably have something not configured correctly but let me try to splain it.

I use this system as a samba share so that's pretty much all. 2 x 2TB drives in a simple mirror. Aging hardware has me looking to upgrade but I made a copy of my data and to my surprise the data on my windows drive says I am at 330-ish GB. FreeNAS on the other hand has me at ~59%, a little over 1TB which matches what windows indicates for the mapped drive. (765 GB Free of 1.75 TB)

What the what??

Trying to understand so I don't make the same mistake on the new one.
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
If you have snapshots, and I hope you do, then the space allocated on Freenas belong to files that have been deleted but still exist as part of the snapshots.
This is expected. If you need to free up space, then you can delete some of the earlier snapshots that point to the deleted data and Freenas would be able to recover the space.
 

mrramsey

Dabbler
Joined
Nov 17, 2016
Messages
49
If you have snapshots, and I hope you do, then the space allocated on Freenas belong to files that have been deleted but still exist as part of the snapshots.
This is expected. If you need to free up space, then you can delete some of the earlier snapshots that point to the deleted data and Freenas would be able to recover the space.
No there are not any snapshots. The total data that I migrated off of the NAS to a local disk was only about 330GB. Also I noticed that in explorer that the shared drive shows the same free space but with a capacity of 1.03TB. I do understand that there is some overhead ad that my 2TB storage will not be a full 2TB but my simple math leads me to believe that there should be 1.4TB of free space. Well that is my assumption anyway. There is enough here that makes me think that something is amiss in my set up.
Capture.PNG
 

mrramsey

Dabbler
Joined
Nov 17, 2016
Messages
49
Here is the output from zfs get all storage- if it's helpful.

Code:
storage-  sharesmb              off                    default                 
storage-  refquota              none                   default                 
storage-  refreservation        none                   default                 
storage-  primarycache          all                    default                 
storage-  secondarycache        all                    default                 
storage-  usedbysnapshots       0                      -                       
storage-  usedbydataset         735G                   -                       
storage-  usedbychildren        298G                   -                       
storage-  usedbyrefreservation  0                      -                       
storage-  logbias               latency                default                 
storage-  dedup                 off                    default                 
storage-  mlslabel                                     -                       
storage-  sync                  standard               default                 
storage-  refcompressratio      1.44x                  -                       
storage-  written               735G                   -                       
storage-  logicalused           1.34T                  -                       
storage-  logicalreferenced     1.04T                  -                       
storage-  volmode               default                default                 
storage-  filesystem_limit      none                   default                 
storage-  snapshot_limit        none                   default                 
storage-  filesystem_count      none                   default                 
storage-  snapshot_count        none                   default                 
storage-  redundant_metadata    all                    default                 
(END)                                                                           
▼
 
 
Joined
Jul 3, 2015
Messages
926
zpool status and zfs list might also be helpful
 
Joined
Jul 3, 2015
Messages
926
I'm not sure how or what but it looks like you have 735GB of data within the storage- dataset itself.
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
Yep, something doesn't add up. Seems like an unmounted dataset, or the "storage-" dataset contains snapshots or other files in the amount of 600GB or so.
 

mrramsey

Dabbler
Joined
Nov 17, 2016
Messages
49
zpool status and zfs list might also be helpful

Zpool Status:
Code:
        NAME                                          STATE     READ WRITE CKSUM
        freenas-boot                                  ONLINE       0     0     0
          gptid/759ac1c3-acc4-11e6-9597-001018cc0b04  ONLINE       0     0     0
                                                                                
errors: No known data errors                                                   
                                                                                
  pool: storage-                                                               
 state: ONLINE                                                                 
  scan: scrub repaired 0 in 4h34m with 0 errors on Sun Jan 12 04:34:37 2020     
config:                                                                         
                                                                                
        NAME                                            STATE     READ WRITE CKS
UM                                                                             
        storage-                                        ONLINE       0     0   
 0                                                                             
          mirror-0                                      ONLINE       0     0   
 0                                                                             
            gptid/89c824d7-ad00-11e6-a1bc-001018cc0b04  ONLINE       0     0   
 0                                                                             
            gptid/8a642467-ad00-11e6-a1bc-001018cc0b04  ONLINE       0     0   
 0                                                                             
                                                                                
errors: No known data errors 


ZFS List:
Code:
NAME                                                        USED  AVAIL  REFER 
MOUNTPOINT                                                                     
freenas-boot                                               3.38G  3.89G    31K 
none                                                                           
freenas-boot/ROOT                                          3.36G  3.89G    25K 
none                                                                           
freenas-boot/ROOT/11.1-U7                                   721M  3.89G   734M 
/                                                                               
freenas-boot/ROOT/9.10.1-U4                                2.98M  3.89G   625M 
/                                                                               
freenas-boot/ROOT/9.10.2-U1                                3.30M  3.89G   639M 
/                                                                               
freenas-boot/ROOT/9.10.2-U2                                3.60M  3.89G   640M 
/                                                                               
freenas-boot/ROOT/9.10.2-U3                                4.37M  3.89G   642M 
/                                                                               
freenas-boot/ROOT/9.10.2-U6                                2.64G  3.89G   643M 
/                                                                               
freenas-boot/ROOT/Initial-Install                             1K  3.89G   622M 
legacy                                                                         
freenas-boot/ROOT/default                                  1.47M  3.89G   624M 
legacy                                                                         
freenas-boot/grub                                          6.34M  3.89G  6.34M                                                                             
legacy                                                                         
storage-                                                   1.01T   766G   735G 
/mnt/storage-                                                                   
storage-/.system                                            558M   766G   451M 
legacy                                                                         
storage-/.system/configs-810048d7feed436fae88f4409435135f  89.0M   766G  89.0M 
legacy                                                                         
storage-/.system/cores                                      848K   766G   848K 
legacy                                                                         
storage-/.system/rrd-810048d7feed436fae88f4409435135f        96K   766G    96K 
legacy                                                                         
storage-/.system/samba4                                     440K   766G   440K 
legacy                                                                         
storage-/.system/syslog-810048d7feed436fae88f4409435135f   16.9M   766G  16.9M 
legacy                                                                         
storage-/jails                                              104K   766G   104K 
/mnt/storage-/jails                                                             
storage-/shared                                             297G   766G   297G 
/mnt/storage-/shared         
 

mrramsey

Dabbler
Joined
Nov 17, 2016
Messages
49

mrramsey

Dabbler
Joined
Nov 17, 2016
Messages
49
Yep, something doesn't add up. Seems like an unmounted dataset, or the "storage-" dataset contains snapshots or other files in the amount of 600GB or so.
Is there a way to check this from CL? when I go to snapshots in the UI it is empty.
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
Do you have any quota or reservation on the volume? You can check that under the GUI in Storage and look at the dataset properties.
 

mrramsey

Dabbler
Joined
Nov 17, 2016
Messages
49
Do you have any quota or reservation on the volume? You can check that under the GUI in Storage and look at the dataset properties.
Nope - everything is set to '0'
 

mrramsey

Dabbler
Joined
Nov 17, 2016
Messages
49
I have even gone as far as trying a factory reset but the system throws a few errors in the console. Probably explains why upgrading to 11.1 fails as well. I have also attempted to burn 11.2 onto another USB flash drive and boot into that one. Fails as best I can tell, just get a flashing cursor and nothing else.
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
Then you could check what your snapshots looks like. I suspect a hidden dataset conflicting with a folder of the same name that will cause it to remain unmounted. A bit far fetch but I don't see other explanation at the moment.
Best to run the command and point the content to be stored in a file so yu can look at it on your side:

zfs list -t snapshot -r storage- >somefile.txt
 

mrramsey

Dabbler
Joined
Nov 17, 2016
Messages
49
Then you could check what your snapshots looks like. I suspect a hidden dataset conflicting with a folder of the same name that will cause it to remain unmounted. A bit far fetch but I don't see other explanation at the moment.
Best to run the command and point the content to be stored in a file so yu can look at it on your side:

zfs list -t snapshot -r storage- >somefile.txt
I will give that a try... In other news I did manage to successfully upgrade to 11.2 U7 and restore my config. Still have the same issue though.
 

mrramsey

Dabbler
Joined
Nov 17, 2016
Messages
49
zfs list -t snapshot -r storage- >somefile.txt
[/QUOTE]
dataset does not exist
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
Try:
zfs list -t snapshot -r "storage-"

I don't think the "-" at the end of the volume name is causing the issue.
If this works, you can redirect to the file with :
zfs list -t snapshot -r "storage-" > somefile.txt
 

mrramsey

Dabbler
Joined
Nov 17, 2016
Messages
49
No Datasets Available
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
Then do:
zfs list -t snapshot > somefile.txt
But it should recognize the volume as a dataset unless the name is for some reason not being recognize correctly.
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
@mrramsey , I just noticed the details of the "zfs get all..." seems incomplete as you should expect more properties.
 
Top