Shared Storage backend

627 views
Skip to first unread message

Martin Gasser

unread,
Apr 2, 2014, 7:43:08 AM4/2/14
to sea...@googlegroups.com
Hi
We habe two seafile Servers behind a loadbalancer, sharing storage backend with NFS.
What part of Seafile need to be on the shared storage, what needs to be isolated on each application server?

Thanks for any hints.
Martin

JiaQiang Xu

unread,
Apr 3, 2014, 7:57:23 AM4/3/14
to sea...@googlegroups.com
Are you using business edition? Open source edition doesn't support clustering.

Martin Gasser

unread,
Apr 3, 2014, 10:00:20 AM4/3/14
to sea...@googlegroups.com
Hello
Yes I do.
Meanwhile, I mounted three NFS Devices on /seafile-data/fs, seafile-data/commits and seafile-data/blocks.
Now I get the errors failed to commit block..... invalid cross-device links... in the seafile.log when uploading.
 
Any ideas?
 
Thank you.

Lingtao Pan

unread,
Apr 4, 2014, 3:49:39 AM4/4/14
to sea...@googlegroups.com
Why do you mount three devices? In my option, mount one device, and put seafile-data to this device should be OK.

JiaQiang Xu

unread,
Apr 4, 2014, 8:17:59 AM4/4/14
to sea...@googlegroups.com
Hi,

You should only put seafile-data/commits, seafile-data/fs and seafile-data/blocks and seafile-data/tmpfiles on NFS.
They should be on one device. The simplest way is to use symlinks for these 4 directories on each server running Seafile.

It looks like:
server 1:
seafile-data/commits --> /nfs/commits
seafile-data/fs --> /nfs/fs
seafile-data/blocks --> /nfs/blocks
seafile-data/tmpfiles --> /nfs/tmpfiles

server 2 is the same.

All other things in the seafile server directory should be server-specifice and should not be shared.

Hope this help. I'll add this info into the doc.

JiaQiang Xu

unread,
Apr 5, 2014, 2:51:53 AM4/5/14
to sea...@googlegroups.com
Hi,

I've updated the doc. You should find the link about configuring NFS in the "Backend Storage Settings" section.

A minor correction to my previous answer. You should not put seafile-data/tmpfiles in NFS. 

Jochen

unread,
Apr 5, 2014, 5:50:59 AM4/5/14
to sea...@googlegroups.com
Hi,

I don't have a seafile Cluster, just a single server but I have moved seafile-data to a NFS share on my NAS. So, is everything mentioned above also important for me? Especially these two points:
- I don't use symlinks but have just moved seafile-data to /nfs/seafile-data. Could this be a problem (maybe for upgrades)?
- I have moved the whole seafile-data, not just the 3 mentioned subdirectories. Is this a problem?

Thanks and best regards,
Jochen

Martin Gasser

unread,
Apr 5, 2014, 4:32:37 PM4/5/14
to sea...@googlegroups.com
Thanks for this Info. We will setup like this.
Grüsse Martin

JiaQiang Xu

unread,
Apr 9, 2014, 4:29:45 AM4/9/14
to sea...@googlegroups.com
If you don't use cluster, you can just put the entire seafile-data folder in NFS.

JiaQiang Xu

unread,
Apr 9, 2014, 4:29:59 AM4/9/14
to sea...@googlegroups.com
If you don't use cluster, you can just put the entire seafile-data folder in NFS.

On Saturday, April 5, 2014 5:50:59 PM UTC+8, Jochen wrote:

Jochen

unread,
Apr 9, 2014, 10:58:24 AM4/9/14
to sea...@googlegroups.com
Thank you!
Reply all
Reply to author
Forward
0 new messages