SOLVED rmdir doesn't increase free space?

Status
Not open for further replies.

Naesstrom

Contributor
Joined
Jul 10, 2012
Messages
108
Hey everyone!

I just have a short question. I ran out on space on my 2TB setup today and started removing some folders, at first I had problems with access so I went in my ssh and used rmdir to remove some big folders that I had but when I check the available space there's still no change?

Running FreeNAS-8.3.0-RELEASE-p1-x64 (r12825)
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
Do you have snapshots turned on?

'zfs list -t snapshot'

Also:

'zfs list -ro space -t filesystem'
 

Naesstrom

Contributor
Joined
Jul 10, 2012
Messages
108
Do you have snapshots turned on?

yup, but they are really small!
Code:
[root@freenas ~]# zfs list -t snapshot                                          
NAME                          USED  AVAIL  REFER  MOUNTPOINT                    
Atlas@auto-20130221.0900-2w   206K      -  1.68T  -                             
Atlas@auto-20130222.0900-2w   206K      -  1.68T  -                             
Atlas@auto-20130225.0900-2w  8.43M      -  1.68T  -                             
Atlas@auto-20130226.0900-2w  20.3M      -  1.70T  -                             
Atlas@auto-20130227.0900-2w  23.4M      -  1.72T  -                             
Atlas@auto-20130228.0900-2w  21.8M      -  1.73T  -                             
Atlas@auto-20130301.0900-2w  10.5M      -  1.73T  -                             
Atlas@auto-20130304.0900-2w  10.4M      -  1.73T  -                             
Atlas@auto-20130305.0900-2w  21.7M      -  1.73T  -                             
Atlas@auto-20130306.0900-2w  26.0M      -  1.76T  -                             
[root@freenas ~]#                                                               
                     

I had one big that I removed from the admin panel and I got that space, but 13Gb isn't enough so transfer speeds are down below 1Mb/s now!
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
You replied while I was editing, so in case you didn't see it try the following:

'zfs list -ro space -t filesystem'

Snapshots can be deceiving because if they contain data that is referenced somewhere else, it won't be reported. In other words, the "USED" column reports data that is only used by that snapshot. In your case, the data that you deleted is most likely referenced by multiple snapshots and won't be freed until all the snapshots that reference it have been destroyed.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
You replied while I was editing, so in case you didn't see it try the following:

'zfs list -ro space -t filesystem'

Snapshots can be deceiving because if they contain data that is referenced somewhere else, it won't be reported. In other words, the "USED" column reports data that is only used by that snapshot. In your case, the data that you deleted is most likely referenced by multiple snapshots and won't be freed until all the snapshots that reference it have been destroyed.

Exactly. Only when the snapshots are deleted will the space be freed.
 

Naesstrom

Contributor
Joined
Jul 10, 2012
Messages
108
ahh, I see!

Code:
[root@freenas] ~# zfs list -ro space -t filesystem
NAME            AVAIL   USED  USEDSNAP  USEDDS  USEDREFRESERV  USEDCHILD
Atlas           13.0G  1.78T     61.2G   1.71T              0       677M
Atlas/Jail      13.0G   446M         0    446M              0          0
Atlas/Software  13.0G   195M         0    195M              0          0


So once the correct snapshot is removed the 61.2GB of storage will be back.

Thanks for explaining it!
 
Status
Not open for further replies.
Top