Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: bradleyj00 on February 12, 2013, 04:32:34 PM

Title: backup to windows share - cifs issues
Post by: bradleyj00 on February 12, 2013, 04:32:34 PM
I've been using the SME backup tool, and DAR2 to do a workstation backup to a local windows share. It hasn't worked reliably, and as of late, not at all.

When the backup begins to run, using either application, the following errors show up in the log,

Feb 12 11:51:25 sme e-smith-bg: Connecting /mnt/dar2/backup to \\192.168.10.30\bkp
Feb 12 11:51:25 sme kernel:  CIFS VFS: Send error in SessSetup = -12
Feb 12 11:51:25 sme kernel:  CIFS VFS: cifs_mount failed w/return code = -12
Feb 12 11:51:25 sme e-smith-bg: mount error(12): Cannot allocate memory
Feb 12 11:51:25 sme e-smith-bg: Refer to the mount.cifs(8) manual page (e.g. man                     mount.cifs)

I know I've done this with SME 7.5 without issue. Just wondering if anyone has any insight? Are there parameters around the windows share that I need to consider? Maybe an update or an  add-on for SME8?  I have noticed some chatter about similar issues on the forum, but I haven't located a solution. Hoping someone can steer me in the right direction.

Thanks,
Jim
Title: Re: backup to windows share - cifs issues
Post by: Stefano on February 12, 2013, 06:28:33 PM
the right direction is bugzilla

file a bug,  thank you
Title: Re: backup to windows share - cifs issues
Post by: TerryF on February 12, 2013, 09:36:18 PM
Have a read here: http://social.technet.microsoft.com/Forums/en-US/w7itpronetworking/thread/909a5f0f-73b0-4a52-a594-0d7f80f0c7df/
Title: Re: backup to windows share - cifs issues
Post by: bradleyj00 on February 13, 2013, 12:01:44 AM
Thanks everyone for the assistance! That windows registry edit did the trick. Seems to be working fine now.

I will go ahead and submit the bug however.

Title: Re: backup to windows share - cifs issues
Post by: purvis on February 13, 2013, 12:47:04 AM
With the newest update to SME 8 suppoerting SMB 2.
There could be problems bc Microsft has had enough issues to now come out with SMB 2.2.

We are using SMB 1 only.  SME 7 used SMB 1 only.
Maybe it might be better to disable SMB 2 in the Samba service of SME .
Title: Re: backup to windows share - cifs issues
Post by: janet on February 13, 2013, 01:56:15 AM
purvis

Quote
Maybe it might be better to disable SMB 2 in the Samba service of SME .

Posting a new feature request (NFR) in bugzilla is the correct way to achieve this.

This is already a bug that generally talks about windows 8 joining a sme server domain etc, FYI

Please create a new bug
Title: Re: backup to windows share - cifs issues
Post by: bradleyj00 on February 13, 2013, 03:31:27 AM
Again, many thanks. A bug has been created.

As an update though, even wtih SMB turned off in the windows registry, the backup eventually failed with the following error

Error while saving data: Cannot write down the archive: Error checking for presence of file /mnt/dar2/backup/sme.abc.ca/bkp/2013.02.12.33.dar : Cannot allocate memory.

Maybe physical memory is an issue? I'll experiment with adding more, but I'm fairly certain there's at least 2GB installed.

Alternatively, how would I go about disabling SMB 2 in Samba?

Jim

Title: Re: backup to windows share - cifs issues
Post by: TerryF on February 13, 2013, 03:58:29 AM
Further reading, also added to Bugzilla

http://alan.lamielle.net/2009/09/03/windows-7-nonpaged-pool-srv-error-2017

Seems to be a bit of an issue with large overall transfers and very large single files.
Title: Re: backup to windows share - cifs issues
Post by: piran on February 13, 2013, 04:07:14 AM
My workstation is on W8pro but back in the days when I
had W7pro running on it my notes contain...

Code: [Select]
091029
Oct 29 21:18:06 twiggy kernel:  CIFS VFS: Send error in SessSetup = -12
Oct 29 21:18:06 twiggy kernel:  CIFS VFS: cifs_mount failed w/return code = -12

[Windows 7 registry]
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters\IRPStackSize
...increase to decimal 15 or perhaps 18.
None found.
New DWORD (32bit) with value of decimal 12.

...and the issue, what ever it was, never re-appeared;-)
YMMV

[ see also reference material ]
http://linux.derkeiler.com/Newsgroups/comp.os.linux.networking/2006-10/msg00629.html
Title: Re: backup to windows share - cifs issues
Post by: purvis on February 13, 2013, 02:22:40 PM
also there is a samba setting "max protocol"
you can set the protocol using the line "max protocol = SMB2" in the smb.conf file

for testing, you should be able to open /etc/samba/smb.conf  and place that line in there if it is not there already and needs edititng

then run
/etc/init.d/smb restart

do your testing
to revert back easily

run
expand-templates /etc/smb.conf
/etc/init.d/smb restart

let us know how it goes for you
Title: Re: backup to windows share - cifs issues
Post by: CharlieBrady on February 13, 2013, 02:34:39 PM
let us know how it goes for you

Please ensure that all followup is noted in http://bugs.contribs.org/show_bug.cgi?id=7341
Title: Re: backup to windows share - cifs issues
Post by: purvis on February 14, 2013, 12:53:25 AM
bradleyj00 and others

As of today, the default samba setting in file SMB.conf is SMB version 1 (max protocol = NT1)
Title: Re: backup to windows share - cifs issues
Post by: CharlieBrady on February 14, 2013, 03:13:21 AM
As of today, the default samba setting in file SMB.conf is SMB version 1 (max protocol = NT1)

I suspect that file is not relevant to cifs mounted file systems.
Title: Re: backup to windows share - cifs issues
Post by: purvis on February 15, 2013, 02:14:18 AM
Charlie
I really don't know either.
I was directing the statement to a genera audience that might be reading and to the OP
Who said
Quote
Alternatively, how would I go about disabling SMB 2 in Samba?
Quote
Being that SME is just now able to use SMB2 with the newest update.
There will be likely many issues popping up connecting to a share off a windows os.
Microsoft has had many issues connecting with in their own windows NT systems.
With that last line said. I do not see how SME users could expect less.

Personally, I don't see a bugs if SME cannot connect to a share on a Windows server or workstation.  A problem for somebody. Yes. Worth knowing and collaboration. Yes

But if you don't have a system to test. Testing SMB connectivity is impossible for SME developers.
Title: Re: backup to windows share - cifs issues
Post by: Forman on January 19, 2016, 01:23:24 PM
Further reading, also added to Bugzilla

http://alan.lamielle.net/2009/09/03/windows-7-nonpaged-pool-srv-error-2017

Seems to be a bit of an issue with large overall transfers and very large single files.

I know, I'm having to split up large files into smaller ones.
Title: Re: backup to windows share - cifs issues
Post by: purvis on June 23, 2016, 10:37:47 PM
For what it is worth.
I have had a lot of issues coping files to USB 2/removable shared device using Windows 2000 and Windows XP.
The drives would usually be partitioned with NTFS and go into a sleep mode.
Even when I check the drives with smartctl and use the long test the drives go to sleep.
I had create a batch file that would write to the files some junk once a minute to ensure the drives did not go to sleep.
My rule now is never to have a share on a removable drive where writes are being made and basically do not use them as a shared device, period.
Now, only internal non removable drives are used where a shared folder is used for my systems.
Title: Re: backup to windows share - cifs issues
Post by: LedaBunny on December 23, 2016, 03:55:12 PM
Thanks everyone for the assistance! That windows registry edit did the trick. Seems to be working fine now.