Set NAS as main storage on Debian 7.6

Ask all your questions regarding OC 7.x Please read the Support Forum Rules
Forum rules
ownCloud 7.x will be end of life soon. See maintenance and release schedule for more details.

Time to upgrade!

Before you post; make sure you are using at least PHP Version 5.3.x - Also read Support Forum - Read this before posting
kemperkipie
Newbie
Posts: 9
Joined: Sun Nov 09, 2014 12:49 pm
ownCloud version: 8.1.3
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4.34

Set NAS as main storage on Debian 7.6

Postby kemperkipie » Sun Nov 09, 2014 12:58 pm

I have recently installed owncloud 7.0.2 on a Debian 7.6 virtual machine. I have all my storage used in my storage server, which is a Windows Server 2012 R2 virtual machine running a SMB-share a FTP-server. I want OwnCloud to store all user-data and anything that will be uploaded to a share on the storage server.

What is the best way to realise this?

I'm not very experienced with Linux so in case I need to alter much on the Linux machine, I need beginners help.

Thanks

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Set NAS as main storage on Debian 7.6

Postby RealRancor » Sun Nov 09, 2014 1:01 pm

Hi,

in ownCloud there is no way to configure an option "store all user data on an external storage" but you can mount such an external storage on operating system level (see your favorite search engine on how to do this) and then move the datadirectory on this mount like described here:

viewtopic.php?f=17&t=7118
*gone*

kemperkipie
Newbie
Posts: 9
Joined: Sun Nov 09, 2014 12:49 pm
ownCloud version: 8.1.3
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4.34

Re: Set NAS as main storage on Debian 7.6

Postby kemperkipie » Sun Nov 09, 2014 1:16 pm

Perfect, I'm guessing it's possible to permanently mount a network share on Debian which I can use for it. Thanks for the advice, I'll Google, ofcourse, how I can mount this :p

kemperkipie
Newbie
Posts: 9
Joined: Sun Nov 09, 2014 12:49 pm
ownCloud version: 8.1.3
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4.34

Re: Set NAS as main storage on Debian 7.6

Postby kemperkipie » Mon Nov 10, 2014 12:16 am

I got to a point where I get the error:
"Data directory (/mnt/raid5storage/data) not writable by ownCloud"

I understand this is a permissions problem. But I don't know WHO I need to give permission to solve this problem. I have the share mounted as a specific user which has full control. But I'm guessing the webserver will access it through another account that my storage server doesn't recognize.

Who's permissions do I have to add or is there someway to let the webserver access the share through a specified account?

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Set NAS as main storage on Debian 7.6

Postby RealRancor » Mon Nov 10, 2014 8:19 am

Hi,

see the docs here:

http://doc.owncloud.org/server/7.0/admi ... ermissions

for the correct ownership and permissions. Those should be also applied to your mountpoint. Other stuff like SELinux or an open_basedir of PHP could also lead to such problems.

Those steps are also described in the linked FAQ thread above.
*gone*

kemperkipie
Newbie
Posts: 9
Joined: Sun Nov 09, 2014 12:49 pm
ownCloud version: 8.1.3
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4.34

Re: Set NAS as main storage on Debian 7.6

Postby kemperkipie » Mon Nov 10, 2014 2:09 pm

Nothing seems to work, I've read it all but it doens't help..
In any way I try, owncloud will never be able to Write in de SMB-share, it can read, but never write, no matter what I try

So I tried to set up a NFS-share instead. This is even worse, it won't even read in this share.

The strangest thing is, in both, NFS and SMB shares, I can read and write manually when I access the mount. So why on earth won't owncloud do it! :(


I'm considering installing owncloud on my Server 2012 R2 instead.

tflidd
Forum Moderator
Posts: 7159
Joined: Sat Dec 07, 2013 7:27 pm
ownCloud version: 8.2.3
Webserver: Apache
Database: MySQL
OS: Linux

Re: Set NAS as main storage on Debian 7.6

Postby tflidd » Mon Nov 10, 2014 2:56 pm

Maybe your logfiles will tell you.

kemperkipie
Newbie
Posts: 9
Joined: Sun Nov 09, 2014 12:49 pm
ownCloud version: 8.1.3
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4.34

Re: Set NAS as main storage on Debian 7.6

Postby kemperkipie » Mon Nov 10, 2014 4:31 pm

Image

I'm not getting any wiser out of this..

Also, tried it on Windows in the meantime, which is ever worse! It keeps failing at something with WebDav, which I can't find any solutions to as well.

tflidd
Forum Moderator
Posts: 7159
Joined: Sat Dec 07, 2013 7:27 pm
ownCloud version: 8.2.3
Webserver: Apache
Database: MySQL
OS: Linux

Re: Set NAS as main storage on Debian 7.6

Postby tflidd » Mon Nov 10, 2014 5:51 pm

Make sure that your webserver can write to your owncloud-log (webserver user must be able to read and execute the folder /mnt in order to be able to look inside).

kemperkipie
Newbie
Posts: 9
Joined: Sun Nov 09, 2014 12:49 pm
ownCloud version: 8.1.3
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4.34

Re: Set NAS as main storage on Debian 7.6

Postby kemperkipie » Mon Nov 10, 2014 6:09 pm

webserver user must be able to read and execute the folder /mnt


Wow, I was giving it rights to write in /mnt/owncloud/
Now I executed command
chown -R www-data:www-data /mnt/
And poof.... it works...

Thanks a lot !!!


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Community Edition 7.x”

Who is online

Users browsing this forum: No registered users and 1 guest