From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N1GvU-0006Yp-U2 for qemu-devel@nongnu.org; Fri, 23 Oct 2009 05:59:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N1GvO-0006Xt-Vt for qemu-devel@nongnu.org; Fri, 23 Oct 2009 05:59:15 -0400 Received: from [199.232.76.173] (port=49607 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1GvO-0006Xq-Nh for qemu-devel@nongnu.org; Fri, 23 Oct 2009 05:59:10 -0400 Received: from mail-yx0-f188.google.com ([209.85.210.188]:35798) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N1GvO-0006xL-99 for qemu-devel@nongnu.org; Fri, 23 Oct 2009 05:59:10 -0400 Received: by yxe26 with SMTP id 26so7337173yxe.4 for ; Fri, 23 Oct 2009 02:59:09 -0700 (PDT) MIME-Version: 1.0 Sender: morita.kazutaka@gmail.com In-Reply-To: <1753131812.2201256114747916.JavaMail.root@yellowwing> References: <4ADE988B.2070303@lab.ntt.co.jp> <1753131812.2201256114747916.JavaMail.root@yellowwing> Date: Fri, 23 Oct 2009 18:59:05 +0900 Message-ID: <8fd1d76d0910230259y24d067d5w3d3fca2c448f96b6@mail.gmail.com> From: MORITA Kazutaka Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Re: [ANNOUNCE] Sheepdog: Distributed Storage System for KVM List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Nikolai K. Bochev" Cc: linux-fsdevel@vger.kernel.org, qemu-devel@nongnu.org, kvm@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.1= 0 ( 2.6.31-14 x64 ) : > > cd shepherd; make > make[1]: Entering directory `/home/shiny/Packages/sheepdog-2009102101/she= pherd' > cc -c -g -O2 -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE shepher= d.c -o shepherd.o > shepherd.c: In function =91main=92: > shepherd.c:300: warning: dereferencing pointer =91hdr.55=92 does break st= rict-aliasing rules > shepherd.c:300: note: initialized from here > cc -c -g -O2 -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE treevie= w.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 this = 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 s= hepherd -lncurses -lcrypto > make[1]: Leaving directory `/home/shiny/Packages/sheepdog-2009102101/shep= herd' > cd sheep; make > make[1]: Entering directory `/home/shiny/Packages/sheepdog-2009102101/she= ep' > cc -c -g -O2 -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE sheep.c= -o sheep.o > cc -c -g -O2 -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE store.c= -o store.o > cc -c -g -O2 -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE net.c -= o net.o > cc -c -g -O2 -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE work.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 =91struct fl= ock=92 > /usr/include/asm-generic/fcntl.h:140: error: redefinition of =91struct fl= ock64=92 > make[1]: *** [work.o] Error 1 > make[1]: Leaving directory `/home/shiny/Packages/sheepdog-2009102101/shee= p' > make: *** [all] Error 2 > > I have all the required libs installed. Patching and compiling qemu-kvm w= ent flawless. > > ----- Original Message ----- > From: "MORITA Kazutaka" > To: kvm@vger.kernel.org, qemu-devel@nongnu.org, linux-fsdevel@vger.kernel= .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 snapshot, > cloning, and thin provisioning. Sheepdog runs on several tens or hundreds > of nodes, and the architecture is fully symmetric; there is no central > 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 cluster = 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), 20= 09-10-15 > 16:17:18, tag: =A0 =A0 =A0 =A00, current > =A0 =A080000 : Bob's Disk =A0 =A0256 GB (allocated: 0 MB, shared: 0 MB), = 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-fsdevel" = 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