Loss of disk space / disk size reduced

Status
Not open for further replies.

tomgrai

Dabbler
Joined
Nov 27, 2012
Messages
11
Hello,

I use freenas since two years and find it really great. I currently have the 8.3, mostly the best of it.

I have 3 disk on it (1.5 T, 2T and 250 G). 1.5 is for mirror data, 2TY is for incremental and 250 for download. I have daily backups using Syncback (works good with freenas, I changed it since I used Cobian by the past but cobian can't manage windows and freebsd system for file comparisons, I.E mirror back up are actually complete backups..).

Anyway, last night on my 1.5 T i suppressed folders for a total of 300gig via the windows menu manually. The suppressed succeeded but when looking back to my disksize again, i noticed it's size had change. The free space didn't increase of 300 gig as it should have been, but the total size of the disk had decreased.

I searched on forum for infos about it but didn't find anything...

Any idea to get back the real size of my disk ?

Thanks again.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
What do you mean "suppressed"? I've never heard that word used with respect to data on any FreeNAS system.
 

tomgrai

Dabbler
Joined
Nov 27, 2012
Messages
11
Hi,


i meant deleted form windows. I deleted the files for a total of 300 gig from windows directly (folder selected then delete) and then the total diskspace of the 1.5 T disk had reduced by 300 gig instead of adding 300 gig more space.

By the way, my shares are CIFS : the folders I deleted from windows were in a CIFS share mounted on the 1.5 T disk.

There is no reason why my total diskspace should be reduced no ?

Now, I have a 1.4 T disk for only 1.1 T total free space and used and 600 gig used. I have 500 free space left where I should have 300 gig (from deleted files) free space + 500 free space, that means 300 + 500 = 800. But I only have 500! where are my 300 gig free space ?
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
How are you viewing the free capacity of your storage? Do you have a recycle bin setup for this storage?
 

tomgrai

Dabbler
Joined
Nov 27, 2012
Messages
11
I can view from the GUI and the windows network the total size of it, used size and free size.

The sizes are the same wheter I look on the GUI or the windows menu, but the sizes are wrong : my total diskspace is 1.5 and not 1.5 minus 300 gig that has disappeared.

And i have a recycle bin setup for this storage.

This problem happened already a few times on the 2 T disk. I had to reinstall the disk (wipe it all and create a new volume...).
 

warri

Guru
Joined
Jun 6, 2011
Messages
1,193
If the recycle bin is enabled, deleted files only get moved into a recycle bin folder and therefore no space gets freed.
Try without recycle bin or empty it to see if that solves your problem.
 

tomgrai

Dabbler
Joined
Nov 27, 2012
Messages
11
Hi,


I understand that no free space is added but it doesn't explain why the total size of my disk got reduced. I have a 1.5 T and I delete 300 G i still physically have a 1.5 T disk.

I'm not telling i don't have more free space. I'm telling that i have now a 1 T disk but i didn't replace it, it is still the same.

deleting folders or not shouldn't change the physical size of the disk.
 

warri

Guru
Joined
Jun 6, 2011
Messages
1,193
Can you paste the output of
Code:
zpool list
and
Code:
df -h

(log into shell and issue those commands)
 

tomgrai

Dabbler
Joined
Nov 27, 2012
Messages
11
yep, here it is :

[root@FREENAS ~]# zpool status
pool: DOWNLOAD
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
DOWNLOAD ONLINE 0 0 0
ada2p2 ONLINE 0 0 0

errors: No known data errors

pool: MIROIR
state: ONLINE
scan: scrub repaired 0 in 16h7m with 0 errors on Wed Nov 28 13:36:34 2012
config:

NAME STATE READ WRITE CKSUM
MIROIR ONLINE 0 0 0
ada1p2 ONLINE 0 0 0

errors: No known data errors
[root@FREENAS ~]# ^C
[root@FREENAS ~]#

AND :

Filesystem Size Used Avail Capacity Mounted on
/dev/ufs/FreeNASs1a 926M 360M 492M 42% /
devfs 1.0k 1.0k 0B 100% /dev
/dev/md0 4.6M 3.2M 982k 77% /etc
/dev/md1 823k 3.0k 755k 0% /mnt
/dev/md2 149M 13M 123M 10% /var
/dev/ufs/FreeNASs4 19M 1.4M 16M 8% /data
MIROIR 1.1T 668G 415G 62% /mnt/MIROIR
DOWNLOAD 198G 20G 178G 10% /mnt/DOWNLOAD
DOWNLOAD/deposit 206G 27G 178G 13% /mnt/DOWNLOAD/deposi
t
DOWNLOAD/jail 178G 371M 178G 0% /mnt/DOWNLOAD/jail
/dev/ufs/INCREMENT 1.8T 1.4T 222G 87% /mnt/INCREMENT
/mnt/DOWNLOAD/deposit 206G 27G 178G 13% /mnt/DOWNLOAD/jail/j
ail/mnt/plugins
/mnt/DOWNLOAD/deposit/pbi 206G 27G 178G 13% /mnt/DOWNLOAD/jail/j
ail/usr/pbi
/mnt/INCREMENT 1.8T 1.4T 222G 87% /mnt/DOWNLOAD/jail/j
ail/media
devfs 1.0k 1.0k 0B 100% /mnt/DOWNLOAD/jail/j
ail/dev
procfs 4.0k 4.0k 0B 100% /mnt/DOWNLOAD/jail/j
ail/proc
[root@FREENAS ~]#

As you can see, the MIROIR is estimated to 1.1T which is wrong, the real size is 1.5T
 

tomgrai

Dabbler
Joined
Nov 27, 2012
Messages
11
Here are the info you asked. You can see that the size of MIROIR is 1.1T and it should be 1.5T:
[root@FREENAS ~]# zpool status
pool: DOWNLOAD
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
DOWNLOAD ONLINE 0 0 0
ada2p2 ONLINE 0 0 0

errors: No known data errors

pool: MIROIR
state: ONLINE
scan: scrub repaired 0 in 16h7m with 0 errors on Wed Nov 28 13:36:34 2012
config:

NAME STATE READ WRITE CKSUM
MIROIR ONLINE 0 0 0
ada1p2 ONLINE 0 0 0

errors: No known data errors
[root@FREENAS ~]#

AND


Filesystem Size Used Avail Capacity Mounted on
/dev/ufs/FreeNASs1a 926M 360M 492M 42% /
devfs 1.0k 1.0k 0B 100% /dev
/dev/md0 4.6M 3.2M 982k 77% /etc
/dev/md1 823k 3.0k 755k 0% /mnt
/dev/md2 149M 13M 123M 10% /var
/dev/ufs/FreeNASs4 19M 1.4M 16M 8% /data
MIROIR 1.1T 668G 415G 62% /mnt/MIROIR
DOWNLOAD 198G 20G 178G 10% /mnt/DOWNLOAD
DOWNLOAD/deposit 206G 27G 178G 14% /mnt/DOWNLOAD/deposi
t
DOWNLOAD/jail 178G 371M 178G 0% /mnt/DOWNLOAD/jail
/dev/ufs/INCREMENT 1.8T 1.4T 222G 87% /mnt/INCREMENT
/mnt/DOWNLOAD/deposit 206G 27G 178G 14% /mnt/DOWNLOAD/jail/j
ail/mnt/plugins
/mnt/DOWNLOAD/deposit/pbi 206G 27G 178G 14% /mnt/DOWNLOAD/jail/j
ail/usr/pbi
/mnt/INCREMENT 1.8T 1.4T 222G 87% /mnt/DOWNLOAD/jail/j
ail/media
devfs 1.0k 1.0k 0B 100% /mnt/DOWNLOAD/jail/j
ail/dev
procfs 4.0k 4.0k 0B 100% /mnt/DOWNLOAD/jail/j
ail/proc
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
He asked for 'zpool list', not 'zpool status'. Big difference. I'd also add 'zfs list' to round out everything while you're doing this.
Also, how are you reading your available space?
 

tomgrai

Dabbler
Joined
Nov 27, 2012
Messages
11
Ok, i misunderstood, here are the info :
[root@FREENAS ~]# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
DOWNLOAD 230G 48.5G 182G 21% 1.00x ONLINE /mnt
MIROIR 1.36T 955G 437G 68% 1.00x ONLINE /mnt
[root@FREENAS ~]#

As you can see, the size of miroir is 1.36T which is correct but i can't see this size from the GUI and the folder on the net in windows
 

tomgrai

Dabbler
Joined
Nov 27, 2012
Messages
11
And the list :
[root@FREENAS ~]# zfs list
NAME USED AVAIL REFER MOUNTPOINT
DOWNLOAD 48.5G 178G 20.0G /mnt/DOWNLOAD
DOWNLOAD/deposit 28.1G 178G 28.1G /mnt/DOWNLOAD/deposit
DOWNLOAD/jail 372M 178G 372M /mnt/DOWNLOAD/jail
MIROIR 955G 416G 668G /mnt/MIROIR
[root@FREENAS ~]# ^C

As you can see MIROIR has a size of 995G as it should have a size of 1360 G as shown above. The real physical size is 1.36T. I deleted a folder of 300 G and the size of my disk reduced from 300 G but it shouldn't.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
zpool list shows you the size of your pool.
zfs list shows you the size of your pool available to the file system, after the ZFS overhead/metadata. This is what you should be looking for with respect to how much data you can store.
 

tomgrai

Dabbler
Joined
Nov 27, 2012
Messages
11
ok thanks for the reply but where have my 300 gigs gone ?

i simply deleted a folder in windows 7. And the capacity of disk got reduced. How can I get this space back?
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
As I read your data here is what I come up with, and if I get this wrong, someone please correct me as I'm making an assumption that sounds good to me right now...

From the 'zfs list' command
Code:
NAME               USED  AVAIL  REFER  MOUNTPOINT
MIROIR             955G   416G   668G  /mnt/MIROIR


1) You have used 955GB
2) You have available 416GB
3) 955GB+416GB=1.37TB (what is reported by 'zpool list') so everything is good to go.
4) You have a Recycle Bin so here is where I'm making an assumption because I have not looked it up, but you should since it's your problem...
4-1) You deleted 252GB of data, not 300GB based on the REFER value.
4-2) The REFER value is still pointing to the files you deleted and until you remove them from the recycle bin then this number will not return to equal the AVAIL value.
4-3) Or you have snapshots enabled which is a reason for REFER to not equal AVAIL.

So the end result is you really do have 416GB free, and Windoze should show that as well.

If you do not agree with this and Windoze is saying something different, please post the exact values Windoze property values for Available, Free, and Total. A picture goes a long ways.

-Mark

EDIT: IF you cannot see the extra space in Windoze, have you tried to delete the files in the Recycle Bin? Have you tried to delete the Recycle Bin in the FreeNAS CIFS setup?
 

tomgrai

Dabbler
Joined
Nov 27, 2012
Messages
11
ok you're right.

here are the captures :
freenas size.jpg recycle size.jpg Windows.jpg

I'm ok with your calculs but windows shows me a total capacity of 1.05 To which is wrong. Before deletion, I had 1.36 To and the size of my recycle is 17M.
 

tomgrai

Dabbler
Joined
Nov 27, 2012
Messages
11
I finally cloned my data on an another disk... and demounted and remounted my disk. This resolved my problem. I will investigated and keep you in touch of course.

Thanks anymay...
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Your thumbnails are too small to view, or my viewer is screwed up. Did you try to disable CIFS and then re-enable it? Also, after you remounted the pool what does 'zfs list' say now? I'm just curious. And if you find out your problem is repeatable then it might be nice to figure out what is going on.

Good luck.
 
Status
Not open for further replies.
Top