LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-05-2017, 03:05 AM   #1
adilborekciler
LQ Newbie
 
Registered: May 2017
Posts: 5

Rep: Reputation: Disabled
CIFS & Windows Share problems on ubuntu server 16.04


Hello,

I'm using ubuntu server 16.04. Installed owncloud on it. (running apache2, php, mariadb ofc)
I've an NAS Windows Server (172.16.6.5). Using it for owncloud file storage. So I've edited /etc/fstab like;


//172.16.6.5/cloud$ /media/owncloud cifs credentials=/cred/credentials,sec=ntlm,gid=www-data,file_mode=0770,dir_mode=0770 0 0

Ubuntu's ip address is 172.16.6.11.
This is working good with no problems.

But now I want to create mysql & other backup files on NAS too. So I created another windows user and network share on NAS for backup operations. Then I edited /etc/fstab again. Added the line below;
//172.16.6.5/WebCloud$ /media/backup cifs credentials=/cred/credentials2,sec=ntlm,gid=root,file_mode=0770,dir_mode=0770 0 0

(Why I use another user and network path? I have another ubuntu servers to backup and I will use backup user for other servers too)

When I reboot ubuntu it mounts windows share on /media/backup. I can write, read on that. No problems yet. But after 3-4 hours or maybe 1-2 hours when I use "sudo ls /media/backup" reply is "ls: cannot access 'backup': Host is down"

While /media/owncloud is up for months wihtout any problems why new cifs mount is disconnecting? What's the problem with that?

I've searched on web find some solutions. but does not fit for my issue. both same servers, both same network, both same mount options. But one is working other is not
 
Old 05-05-2017, 09:56 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
I'd run into CIFS mount timeouts on a RHEL server.

Ultimately the resolution was to modify the Windows server that was doing the share to disable the Windows server Idle Connection Timer. The suggestion was that could be done by issuing "net config server /autodisconnect:-1" on the Windows server. Also I saw mention of disabling "Stealth Mode" which is described in a MS link:
https://msdn.microsoft.com/en-us/library/ff720058.aspx

Since our MS Admins here did the actual modification(s) on the Windows servers that resolved our RHEL mount timeouts I can't say for sure if they did the above but assume they did as I'd provided them that information.
 
Old 05-05-2017, 02:57 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Set one system that doesn't hibernate to master browser??

Isn't there some other way to set windows to browse and offer netbios or lmhosts???

Last edited by jefro; 05-05-2017 at 02:58 PM.
 
Old 05-08-2017, 03:51 AM   #4
adilborekciler
LQ Newbie
 
Registered: May 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
For now I use a temporary solution.
I set a Cron job. "*/5 * * * * touch /media/backup/keepalive.txt"

MensaWater, I'll disable cron job and check your solution. edit: "didin't work "

jefro, it has a netbiosname but I used Ip instead. none of systems hibernate.

Last edited by adilborekciler; 05-11-2017 at 04:23 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SAMBA - Ubuntu 10.04 & Windows 7. Can't see share - tried everything. jeztastic Linux - Server 1 06-10-2012 10:50 AM
Mount cifs share problems BarryLinux Linux - Newbie 11 06-04-2012 12:42 AM
CIFS share & multiple entries in mtab HighLife Linux - Newbie 8 10-05-2009 12:43 AM
Why cifs can't see the windows share file? KFC123 Linux - Networking 4 06-23-2009 12:21 PM
Mount.cifs Mounting a subdirectory of a windows share MonctonJohn Linux - Networking 4 09-28-2007 05:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration