something eating disk space?

Status
Not open for further replies.

tcpdump

Cadet
Joined
Oct 24, 2012
Messages
2
Hello Awesome Community,

I've been using and recommended FreeNas since way back when...anyway, I have an issue I was hoping someone could shed light on;

Code:
[root@freenas] ~# uname -a
FreeBSD freenas.local 8.2-RELEASE-p9 FreeBSD 8.2-RELEASE-p9 #0: Thu Jul 19 12:39:10 PDT 2012     root@build.ixsystems.com:/build/home/jpaetzel/8.2.0/os-base/amd64/build/home/jpaetzel/8.2.0/FreeBSD/src/sys/FREENAS.amd64  amd64


Something appears to be eating up my disk space, I cannot for the life of me figure out what, a quick df -h gives me this;

Code:
[root@freenas] ~# df -h
Filesystem             Size    Used   Avail Capacity  Mounted on
/dev/ufs/FreeNASs1a    927M    353M    499M    41%    /
devfs                  1.0K    1.0K      0B   100%    /dev
/dev/md0               4.6M    1.8M    2.4M    43%    /etc
/dev/md1               824K    3.0K    755K     0%    /mnt
/dev/md2               149M     14M    123M    10%    /var
/dev/ufs/FreeNASs4      20M    833K     17M     4%    /data
/dev/ufs/2tb0          1.8T    1.6T     28G    98%    /mnt/2tb0
/dev/ufs/2tb1          1.8T    1.1T    537G    68%    /mnt/2tb1
/dev/ufs/1tb0          902G    767G     63G    92%    /mnt/1tb0


I'm only interested in disk
Code:
/dev/ufs/2tb0 


I've cleared about 150GB from this disk and it still appears as 98% full, even the graph states I have 180+GB free now (therefore the graph giving me accurate information but df -h not?);

24-10-2012 12-26-41.jpg

What could be the issue, I keep clearing data and it instantly states that I still have 28GB Free/ 98% Capacity full, I've checked to see if the removed files are in use elsewhere, even rebooted to ensure there are no jammed processes.

At one point I saw the free space increase to 60GB+ and like 'apple-magic' without doing anything the number returned to 28GB Free, very strange, any takers?

Many Thanks,
tcpdump.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Ditch the "-h" (use -k instead) and maybe run a "du -ck /mnt/2tb0" to see what the directory theoretically holds. If it is substantially off of the number you get from "df -k", then that's something of interest. You're probably aware of issues such as unlinked open files.
 

tcpdump

Cadet
Joined
Oct 24, 2012
Messages
2
Thanks jgreco, I found the culprit;

Code:
[root@freenas] /# ls -l /mnt/2tb0/.snap/
total 491291764
drwxr-x---   2 root  operator            512 Jan 28  2012 ./
drwxr-xr-x  10 root  wheel               512 Oct 22 14:04 ../
-r--------   1 root  operator  2000398992616 Oct 27 10:18 fsck_snapshot


Must have occurred during a series on unsafe shutdowns, I'll go ahead and remove the file since fsck is not running.
 
Status
Not open for further replies.
Top