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