Page 1 of 1
SABnzbd doesn't show free space correctly
Posted: April 5th, 2011, 5:23 am
by Martey
Hello everyone!
This is the first time for me using the forums. I've almost never had any issues with SABnzbd and I really think it's awesome. I recently changed disks in my QNAP TS-410 from 4x1TB in RAID 5 to 4x2TB RAID 5. The problem is that SABnzbd doesn't show the amount of free space correctly anymore. I have about 2,7TB of free space but SABnzbd only shows about 600-700GB. Every setting is as it was before the raid expansion so there shouldn't be any problem. It also uses the same directories and everything.
What could be the problem?
Re: SABnzbd doesn't show free space correctly
Posted: April 5th, 2011, 6:58 am
by shypike
Misalignment between Python and the operating system, is my first guess.
Do your OS tools report the right amount of free space?
Re: SABnzbd doesn't show free space correctly
Posted: April 5th, 2011, 1:20 pm
by Martey
I don't know how to confirm that but my OS report the correct amount of free space.
Re: SABnzbd doesn't show free space correctly
Posted: April 5th, 2011, 2:17 pm
by shypike
Open a shell on your NAS, start the Python interpreter.
Then type in this mini program:
Code: Select all
import os
import statvfs
s = os.statvfs("/PUT/FULL/PATH/HERE")
print s[statvfs.F_BAVAIL] * s[statvfs.F_FRSIZE]
"/PUT/FULL/PATH/HERE" should be replaced by the path of your "incomplete" folder.
The tell me the resulting number.
Re: SABnzbd doesn't show free space correctly
Posted: April 5th, 2011, 2:38 pm
by Martey
Ok, the command gave the following digits:
2863740354560
Re: SABnzbd doesn't show free space correctly
Posted: April 5th, 2011, 5:03 pm
by shypike
Which is 2667 GB, which looks about right.
Which version of SABnzbd are you using?
Re: SABnzbd doesn't show free space correctly
Posted: April 6th, 2011, 2:17 am
by Martey
Indeed, yes. I'm using version 0.5.6.
Update: I tried updating to the 0.6 RC1, no difference. Then I thought, "maybe it could be the mount protocol?", I'm currently using NFS as fileprotocol to access my media on my NAS (QNAP). It seems that it can't read the whole diskspace since only 0.6TB of 2.6TB shows up. I then switched to the SMB-protocol and it solved the problem.
Only problem for me is that when I use SMB and the connection goes down between the computer and my QNAP it doesn't get reconnected automatically like my NFS-mount does, resulting in problem when new downloads gets sent to SABnzbd. Any help with that? Btw, I'm using Mac.
Re: SABnzbd doesn't show free space correctly
Posted: April 6th, 2011, 2:53 am
by shypike
Does SABnzbd run on the NAS or on the Mac?
Re: SABnzbd doesn't show free space correctly
Posted: April 6th, 2011, 2:57 am
by Martey
SABnzbd run on a Mac mini Intel Core 2 Duo.
Re: SABnzbd doesn't show free space correctly
Posted: April 6th, 2011, 4:11 am
by shypike
OK, so it's the Mac that has trouble showing free space on the NAS.
Did you run Python on the NAS or on the Mac to get the big number?
If it's OSX that doesn't understand the NAS disk size, there's nothing I can do.
Given that going from NFS to SMB "solved" the problem, I'd say the issue is in OSX.
Strange though, because my experience with OSX support for SMB is mixed.
BTW:
Do you have the "temporary download folder" on the NAS or on the local Mac disk?
I recommend the latter.
Re: SABnzbd doesn't show free space correctly
Posted: April 6th, 2011, 4:14 am
by Martey
Yes, very strange. I ran Python on the NAS, and the temp. folder is on the NAS. Strangely both NFS and SMB report the correct size.
Re: SABnzbd doesn't show free space correctly
Posted: April 6th, 2011, 8:51 am
by shypike
You might get a different result if you run the little Python program on OSX.
This piece of code is what SABnzbd uses to get the free disk size.