[Sheepdog] how can i mount linux host on Sheepdog device?

igoigo246 igoigo246 at gmail.com
Tue May 17 06:22:47 CEST 2011


Thx

I try this operation.
Operation successful.

but qemu-1.4.1 can't patched.

Attached please find a patch.

if possible this patch commit upstream.

thx for reading.





2011-05-16 (月) の 18:28 +0900 に MORITA Kazutaka さんは書きました:
> At Mon, 16 May 2011 15:20:55 +0900,
> igoigo246 wrote:
> > 
> > For example
> > 
> > qemu-img create sheepdog:Device 10G OK.
> > 
> > But I want to Pararel Distributed Block Device.
> > 
> > SheepDog are two possibilities that qemu-img and pararel distributed
> > blocking device.
> > 
> > Please make linux client for SheepDog.
> 
> Currently, there is no direct support for any client other than QEMU,
> but there are some means to export Sheepdog volumes using more general
> protocols.
> 
>  - iSCSI
>    1. Apply a patch to support data preallocation:
>       http://lists.wpkg.org/pipermail/sheepdog/2010-October/000706.html
> 
>    2. Create a image with data preallocation.
>       $ qemu-img create sheepdog:image -o preallocation=data 1G
> 
>    3. Install iSCSI target daemon (tgt) with Sheepdog support
>       $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/tomo/tgt.git -b sheepdog
>       $ cd tgt
>       $ make
>       # make install
> 
>    4. Setup tgt
>       # tgtd
>       # tgtadm --op new --mode target --tid 1 --lld iscsi -T iqn.2001-04.com.example:storage.sr.rose.sys1.xyz
>       # tgtadm --op new --mode logicalunit --tid 1 --lun 1 -b image --bstype sheepdog
> 
>    See also http://www.mail-archive.com/sheepdog@lists.wpkg.org/msg00679.html
> 
>  - NBD
>    1. Create a Sheepdog image
>       $ qemu-img create sheepdog:image 4G
> 
>    2. Start qemu-nbd on the one of Sheepdog servers
>       $ qemu-nbd sheepdog:image
> 
>    The image is exported on port 10809   
> 
> 
> Thanks,
> 
> Kazutaka

-------------- next part --------------
A non-text attachment was scrubbed...
Name: qemu.patch
Type: text/x-patch
Size: 3218 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20110517/cc77fa2d/attachment-0003.bin>


More information about the sheepdog mailing list