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?
SABnzbd doesn't show free space correctly
Forum rules
Help us help you:
Help us help you:
- Are you using the latest stable version of SABnzbd? Downloads page.
- Tell us what system you run SABnzbd on.
- Adhere to the forum rules.
- Do you experience problems during downloading?
Check your connection in Status and Interface settings window.
Use Test Server in Config > Servers.
We will probably ask you to do a test using only basic settings. - Do you experience problems during repair or unpacking?
Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Re: SABnzbd doesn't show free space correctly
Misalignment between Python and the operating system, is my first guess.
Do your OS tools report the right amount of free space?
Do your OS tools report the right amount of free space?
Re: SABnzbd doesn't show free space correctly
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
Open a shell on your NAS, start the Python interpreter.
Then type in this mini program:
"/PUT/FULL/PATH/HERE" should be replaced by the path of your "incomplete" folder.
The tell me the resulting number.
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]
The tell me the resulting number.
Re: SABnzbd doesn't show free space correctly
Ok, the command gave the following digits:
2863740354560
2863740354560
Re: SABnzbd doesn't show free space correctly
Which is 2667 GB, which looks about right.
Which version of SABnzbd are you using?
Which version of SABnzbd are you using?
Re: SABnzbd doesn't show free space correctly
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.
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.
Last edited by Martey on April 6th, 2011, 2:33 am, edited 1 time in total.
Re: SABnzbd doesn't show free space correctly
Does SABnzbd run on the NAS or on the Mac?
Re: SABnzbd doesn't show free space correctly
SABnzbd run on a Mac mini Intel Core 2 Duo.
Re: SABnzbd doesn't show free space correctly
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.
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
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.
Last edited by Martey on April 6th, 2011, 8:23 am, edited 1 time in total.
Re: SABnzbd doesn't show free space correctly
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.
This piece of code is what SABnzbd uses to get the free disk size.

