[sheepdog] Sheepdog kernel client

迪八哥 xiaoxichen at qq.com
Sun Sep 30 16:00:46 CEST 2012


We have tried to mount sheepdog in physical hosts,it works.
Our solution is quite simple , make(and there exists a simple one) a Iscsi backend driver for sheepdog, and then we can publish sheepdog by using iscsi protocol.
Qemu-nbd can mount sheepdog volume via nbd protocol but showed a very bad performance.It's good if you want to write a new nbd driver for sheepdog.


------------------
Xiaoxi Chen






------------------ Original ------------------
From:  "Chris Webb"<chris at arachsys.com>;
Date:  Sun, Sep 30, 2012 06:48 PM
To:  "sheepdog"<sheepdog at lists.wpkg.org>; 

Subject:  [sheepdog] Sheepdog kernel client



A colleague and I have been discussing the possibility of using Sheepdog for
the storage backing physical hosts as well as qemu virtual machines. It
feels like it wouldn't be particularly hard to take the relatively simple
qemu <-> sheep protocol defined in qemu/block/sheepdog.c and write a kernel
block device, perhaps based on the existing linux nbd driver.

Whilst there aren't any obviously problems with mounting a block device
backed on sheepdog outside the cluster, I'm worried about mounts of sheepdog
block devices on hosts within the cluster, or even on a machine that's just
acting as a gateway. Am I right that this is unlikely to work?

I remember that loopback iscsi and nbd are very prone to deadlock under
memory pressure, because more dirty pages need to be created to be able to
progress with writing out the existing ones. Presumably a kernel sheepdog
driver would suffer from the same problem, and it would be very hard to
enable sheepdog hosts to mount filesystems on a cluster of which they're a
part?

(But somehow, cluster filesystems like Gluster and Ceph have user mode
storage servers and are still able to mount the filesystem on the same nodes
as the storage. I'm puzzled that the same problem doesn't afflict them. Is
there some technique they use to avoid deadlock that would be applicable to
a Sheepdog kernel client?)

Cheers,

Chris.
-- 
sheepdog mailing list
sheepdog at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/sheepdog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20120930/cf0b4b1f/attachment-0003.html>


More information about the sheepdog mailing list