[sheepdog-users] Sheepfs' questions

Liu Yuan namei.unix at gmail.com
Thu Sep 4 03:54:44 CEST 2014


On Thu, Sep 04, 2014 at 02:14:18AM +0800, Chao Lung Huang wrote:
> 2014-09-02 20:06 GMT+02:00 黃昭龍 <regis2261 at gmail.com
> <http://lists.wpkg.org/mailman/listinfo/sheepdog-users>>:
> >>*    And use sheepfs to mount the vdi to use as a normal file system storage
> *>>* directory in two nodes.
> *>>
> >Why are you doing this?
> >I think you must not access a vdi from two different nodes.
> >With the latest master that can't even work because of vdi locking.
> 
> Because Sheepdog's node configuration is very easy than GlusterFS.
> 
> So I try to use sheepdog as a cloud file system to store user's various files.
> 
> I plan to use Samba to export the mounted directory,then users can
> access their files via smb protocol.
> 
> >>*    When I try to use wget to download a iso file to this mount dir,I found
> *>>* that the download progress will hang for a while and continue to download.
> *>>*    This situation will repeat several times in the whole download period.
> *>>*    Can I adjust the sheep or sheepfs option(I have open 10G directio
> *>>* objectcache) to improve this problem ?

sheepfs -o will try to make use of object cache if enabled. (object cache can
only be useful if the mounting point and the sheep daemon are on the same node)

As other noted, you can't access the sheepfs-mounted vdi from two nodes directly,
instead you need to put some protocol such as samba, nfs onto it to allow
shared accesses.

> *>>
> >At what speed is the download running?
> 
> The download speed is about 100 Mbits/s.File was download completely.
> 
> The problem is there are pause in the download progress.
> 
> >>>>*   Can I let the two nodes' mounted directory sync for the same vdi without
> *>>* remouting ?
> *>>>I suggest instead to export the directory by nfs.
> 
> I plan to export the mounted directory by samba. And users can access
> their files via smb
> 
> protocol.Also use Linux HA mechanism to switch from failed node to
> normal standby node to
> 
> keep uses can continue to access their files.
> 
> Do Sheepdog suitable for this kind of usage ?

We support Amazon S3 like http storage, you can check it if it suit your purpose

>
> >>*   I try to test Sheepdog block device(sbd),But I can't find the source of
> *>>* sbd in the downloaded source code.
> *>>
> >sbd is a new feature so you can't find in 0.8.3 stable release.
> >You have to use master branch.
> 
> Thanks. I will try it.

SBD provide the similar function like sheepfs, but it is implemented in kernel
space and integrated into Linux block layer, so it is better in performance wise

I guess SBD + samba can meet your needs.

Thanks
Yuan



More information about the sheepdog-users mailing list