To provide some background, I am running unraid in a VM that hosts a temp share (with rw permissions for anyone on my network) via smb and nfs. I have an ubuntu 14.04 server vm that runs sabnzbd, and mounts the unraid share using smb (via fstab) at boot.
Most of the time it works just fine. I can read and write, and no errors are reported by unraid. However, if I start a bunch of downloads up, I will intermittently get saving errors and disk errors. Sometimes the time between them will be nearly immediate, while other times, it can be several hours of downloading until it pops up again. Moreover, these disk errors then tend to correlate with HUGE sysloads up to 12.50 (despite allocating 6 cpus, 8gb of ram, setting the article cache to -1 and reducing the number of connections to 20). This does not always happen though (I have 5 errors right now with .16 sysload).
The errors come in the following forms:
"Disk error on creating file /mnt/temp/downloads/incomplete/theNameofTheFileBeingDownloaded/filename.r03"
"Saving /mnt/temp/downloads/incomplete/theNameofTheFileBeingDownloaded/__ADMIN__/SABnzbd_nzo_G4aPch failed"
"Failed to remove nzo from postproc queue (id) SABnzbd_nzo_LmM2wk"
I have tested all the drives with badblocks and unraid's preclear (and two of them are rather new wd reds), so I really doubt there are actual disk errors. Unraid also reports no errors. This has also persisted across three reformats of the ubuntu vm (two paravirtualized, and the last is hardware virtualized), and two reformats of the unraid vm (one paravirtualized, and the other hardware).
Any ideas of what to look into next?
Intermittent Saving and Disk Errors with SMB Share
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: Intermittent Saving and Disk Errors with SMB Share
Such problems are common when using network shares as temp / incomplete files, and thus it's use is discouraged.
Advice: keep Incomplete, other temp and preferably Complete directories locally, and then copy to the SMB share.
EDIT:
If you want to investigate yourself, you can do this:
1) On your Ubuntu system, create a script that writes simulanously a lot back and forth to your SMB share.
2) on your SMB share, create a directory with a a lot of *rar files, and then from your Ubuntu, unrar them to your SMB share.
I expect you to get errors. As these tests are without SABnzbd, that will proof it's not a SAB problem, but a SMB problem
Advice: keep Incomplete, other temp and preferably Complete directories locally, and then copy to the SMB share.
EDIT:
If you want to investigate yourself, you can do this:
1) On your Ubuntu system, create a script that writes simulanously a lot back and forth to your SMB share.
2) on your SMB share, create a directory with a a lot of *rar files, and then from your Ubuntu, unrar them to your SMB share.
I expect you to get errors. As these tests are without SABnzbd, that will proof it's not a SAB problem, but a SMB problem
Re: Intermittent Saving and Disk Errors with SMB Share
Bummer! This was the answer I was hoping not to hear. But fair enough, I'll just allocate another virtual hd to the vm to handle the temp directory.sander wrote:Such problems are common when using network shares as temp / incomplete files, and thus it's discouraged.
Advice: keep Incomplete, other temp and preferably Complete directories locally, and then copy to the SMB share.