From mboxrd@z Thu Jan 1 00:00:00 1970 From: MORITA Kazutaka Subject: Re: [ANNOUNCE] Sheepdog: Distributed Storage System for KVM Date: Fri, 23 Oct 2009 18:59:05 +0900 Message-ID: <8fd1d76d0910230259y24d067d5w3d3fca2c448f96b6@mail.gmail.com> References: <4ADE988B.2070303@lab.ntt.co.jp> <1753131812.2201256114747916.JavaMail.root@yellowwing> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org, qemu-devel@nongnu.org, linux-fsdevel@vger.kernel.org To: "Nikolai K. Bochev" Return-path: In-Reply-To: <1753131812.2201256114747916.JavaMail.root@yellowwing> Sender: kvm-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hello, Does the following patch work for you? diff --git a/sheep/work.c b/sheep/work.c index 4df8dc0..45f362d 100644 --- a/sheep/work.c +++ b/sheep/work.c @@ -28,6 +28,7 @@ #include #include #include +#define _LINUX_FCNTL_H #include #include "list.h" On Wed, Oct 21, 2009 at 5:45 PM, Nikolai K. Bochev wrote: > Hello, > > I am getting the following error trying to compile sheepdog on Ubuntu= 9.10 ( 2.6.31-14 x64 ) : > > cd shepherd; make > make[1]: Entering directory `/home/shiny/Packages/sheepdog-2009102101= /shepherd' > cc -c -g -O2 -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE she= pherd.c -o shepherd.o > shepherd.c: In function =91main=92: > shepherd.c:300: warning: dereferencing pointer =91hdr.55=92 does brea= k strict-aliasing rules > shepherd.c:300: note: initialized from here > cc -c -g -O2 -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE tre= eview.c -o treeview.o > cc -c -g -O2 -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE ../= lib/event.c -o ../lib/event.o > cc -c -g -O2 -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE ../= lib/net.c -o ../lib/net.o > ../lib/net.c: In function =91write_object=92: > ../lib/net.c:358: warning: =91vosts=92 may be used uninitialized in t= his function > cc -c -g -O2 -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE ../= lib/logger.c -o ../lib/logger.o > cc shepherd.o treeview.o ../lib/event.o ../lib/net.o ../lib/logger.o = -o shepherd -lncurses -lcrypto > make[1]: Leaving directory `/home/shiny/Packages/sheepdog-2009102101/= shepherd' > cd sheep; make > make[1]: Entering directory `/home/shiny/Packages/sheepdog-2009102101= /sheep' > cc -c -g -O2 -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE she= ep.c -o sheep.o > cc -c -g -O2 -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE sto= re.c -o store.o > cc -c -g -O2 -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE net= =2Ec -o net.o > cc -c -g -O2 -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE wor= k.c -o work.o > In file included from /usr/include/asm/fcntl.h:1, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 from /usr/include/linux/fcntl.h:4, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 from /usr/include/linux/signalfd.h:13= , > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 from work.c:31: > /usr/include/asm-generic/fcntl.h:117: error: redefinition of =91struc= t flock=92 > /usr/include/asm-generic/fcntl.h:140: error: redefinition of =91struc= t flock64=92 > make[1]: *** [work.o] Error 1 > make[1]: Leaving directory `/home/shiny/Packages/sheepdog-2009102101/= sheep' > make: *** [all] Error 2 > > I have all the required libs installed. Patching and compiling qemu-k= vm went flawless. > > ----- Original Message ----- > From: "MORITA Kazutaka" > To: kvm@vger.kernel.org, qemu-devel@nongnu.org, linux-fsdevel@vger.ke= rnel.org > Sent: Wednesday, October 21, 2009 8:13:47 AM > Subject: [ANNOUNCE] Sheepdog: Distributed Storage System for KVM > > Hi everyone, > > Sheepdog is a distributed storage system for KVM/QEMU. It provides > highly available block level storage volumes to VMs like Amazon EBS. > Sheepdog supports advanced volume management features such as snapsho= t, > cloning, and thin provisioning. Sheepdog runs on several tens or hund= reds > of nodes, and the architecture is fully symmetric; there is no centra= l > node such as a meta-data server. > > The following list describes the features of Sheepdog. > > =A0 =A0 * Linear scalability in performance and capacity > =A0 =A0 * No single point of failure > =A0 =A0 * Redundant architecture (data is written to multiple nodes) > =A0 =A0 - Tolerance against network failure > =A0 =A0 * Zero configuration (newly added machines will join the clus= ter automatically) > =A0 =A0 - Autonomous load balancing > =A0 =A0 * Snapshot > =A0 =A0 - Online snapshot from qemu-monitor > =A0 =A0 * Clone from a snapshot volume > =A0 =A0 * Thin provisioning > =A0 =A0 - Amazon EBS API support (to use from a Eucalyptus instance) > > (* =3D current features, - =3D on our todo list) > > More details and download links are here: > > http://www.osrg.net/sheepdog/ > > Note that the code is still in an early stage. > There are some critical TODO items: > > =A0 =A0 - VM image deletion support > =A0 =A0 - Support architectures other than X86_64 > =A0 =A0 - Data recoverys > =A0 =A0 - Free space management > =A0 =A0 - Guarantee reliability and availability under heavy load > =A0 =A0 - Performance improvement > =A0 =A0 - Reclaim unused blocks > =A0 =A0 - More documentation > > We hope finding people interested in working together. > Enjoy! > > > Here are examples: > > - create images > > $ kvm-img create -f sheepdog "Alice's Disk" 256G > $ kvm-img create -f sheepdog "Bob's Disk" 256G > > - list images > > $ shepherd info -t vdi > =A0 =A040000 : Alice's Disk =A0256 GB (allocated: 0 MB, shared: 0 MB)= , 2009-10-15 > 16:17:18, tag: =A0 =A0 =A0 =A00, current > =A0 =A080000 : Bob's Disk =A0 =A0256 GB (allocated: 0 MB, shared: 0 M= B), 2009-10-15 > 16:29:20, tag: =A0 =A0 =A0 =A00, current > > - start up a virtual machine > > $ kvm --drive format=3Dsheepdog,file=3D"Alice's Disk" > > - create a snapshot > > $ kvm-img snapshot -c name sheepdog:"Alice's Disk" > > - clone from a snapshot > > $ kvm-img create -b sheepdog:"Alice's Disk":0 -f sheepdog "Charlie's = Disk" > > > Thanks. > > -- > MORITA, Kazutaka > > NTT Cyber Space Labs > OSS Computing Project > Kernel Group > E-mail: morita.kazutaka@lab.ntt.co.jp > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at =A0http://vger.kernel.org/majordomo-info.html > -- > To unsubscribe from this list: send the line "unsubscribe linux-fsdev= el" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at =A0http://vger.kernel.org/majordomo-info.html > --=20 MORITA, Kazutaka NTT Cyber Space Labs OSS Computing Project Kernel Group E-mail: morita.kazutaka@lab.ntt.co.jp