Disk full unable to delete files

Status
Not open for further replies.
Joined
Aug 7, 2015
Messages
3
Hi There,

New to FreeNAS.

Followed the advice to use: echo > /path/to/file/you/want/to/delete
Not working for me, files not being deleted, returns to command prompt with no error message.
 
Joined
Jan 9, 2015
Messages
430
I'm not sure how the title and the body of this post fit together. Can you try and rephrase the question, please?
 

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
Joined
Jan 9, 2015
Messages
430
Oh, I see now. Thanks for shedding some light on that for me @gpsguy.
 

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
It just dawned on me, do you have any snapshots? If so, you may need to delete them too.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
That command doesn't delete the file it just makes it size zero. How big are these files you are talking about and what freenas version?
 

SirMaster

Patron
Joined
Mar 19, 2014
Messages
241
Find a file that is outside of your snapshots (or delete your snapshots). You can use "zfs diff" to do this. Then truncate the file "truncate -s 0 my_large_file". This should allow you to then delete other files as normally without ZFS saying there is not enough free space.
 
Joined
Aug 7, 2015
Messages
3
Thank you all.

It was taking some time to zero size the file, I was expecting immediate results. Working as described.
 
Status
Not open for further replies.
Top