2016-11-21 10:39:44 +00:00
|
|
|
|
2017-04-08 16:31:13 +00:00
|
|
|
Last updated: 2017-04-08
|
2016-11-21 10:39:44 +00:00
|
|
|
|
2016-03-24 11:47:34 +00:00
|
|
|
The FreeBSD build will build most of the tools in Ceph.
|
2018-09-18 03:19:18 +00:00
|
|
|
Note that the (kernel) RBD dependent items will not work
|
2016-10-12 09:11:39 +00:00
|
|
|
|
|
|
|
I started looking into Ceph, because the HAST solution with CARP and
|
|
|
|
ggate did not really do what I was looking for. But I'm aiming for
|
2016-11-21 10:39:44 +00:00
|
|
|
running a Ceph storage cluster on storage nodes that are running ZFS.
|
|
|
|
In the end the cluster would be running bhyve on RBD disk that are stored in
|
|
|
|
Ceph.
|
2016-10-12 09:11:39 +00:00
|
|
|
|
2017-04-08 16:31:13 +00:00
|
|
|
The FreeBSD build will build most of the tools in Ceph.
|
|
|
|
|
2016-10-12 09:11:39 +00:00
|
|
|
Progress from last report:
|
|
|
|
==========================
|
|
|
|
|
|
|
|
Most important change:
|
2017-04-08 16:31:13 +00:00
|
|
|
- A port is submitted: net/ceph-devel.
|
|
|
|
|
|
|
|
Other improvements:
|
|
|
|
|
|
|
|
* A new ceph-devel update will be submitted in April
|
|
|
|
|
|
|
|
- Ceph-Fuse works, allowing to mount a CephFS on a FreeBSD system and do
|
|
|
|
some work on it.
|
|
|
|
- Ceph-disk prepare and activate work for FileStore on ZFS, allowing
|
|
|
|
easy creation of OSDs.
|
|
|
|
- RBD is actually buildable and can be used to manage RADOS BLOCK
|
|
|
|
DEVICEs.
|
2017-07-20 22:26:42 +00:00
|
|
|
- Most of the awkward dependencies on Linux-isms are deleted only
|
2017-04-08 16:31:13 +00:00
|
|
|
/bin/bash is there to stay.
|
|
|
|
|
|
|
|
Getting the FreeBSD work on Ceph:
|
|
|
|
=================================
|
|
|
|
|
|
|
|
pkg install net/ceph-devel
|
|
|
|
|
|
|
|
Or:
|
|
|
|
cd "place to work on this"
|
|
|
|
git clone https://github.com/wjwithagen/ceph.git
|
|
|
|
cd ceph
|
|
|
|
git checkout wip.FreeBSD
|
|
|
|
|
|
|
|
Building Ceph
|
|
|
|
=============
|
|
|
|
- Go and start building
|
|
|
|
./do_freebsd.sh
|
2016-11-21 10:39:44 +00:00
|
|
|
|
2017-04-08 16:31:13 +00:00
|
|
|
Parts not (yet) included:
|
|
|
|
=========================
|
|
|
|
|
|
|
|
- KRBD
|
|
|
|
Kernel Rados Block Devices is implemented in the Linux kernel
|
|
|
|
And perhaps ggated could be used as a template since it does some of
|
|
|
|
the same, other than just between 2 disks. And it has a userspace
|
|
|
|
counterpart.
|
|
|
|
- BlueStore.
|
|
|
|
FreeBSD and Linux have different AIO API, and that needs to be made
|
|
|
|
compatible Next to that is there discussion in FreeBSD about
|
|
|
|
aio_cancel not working for all devicetypes
|
|
|
|
- CephFS as native filesystem
|
|
|
|
(Ceph-fuse does work.)
|
|
|
|
Cython tries to access an internal field in dirent which does not
|
|
|
|
compile
|
2016-03-24 11:47:34 +00:00
|
|
|
Build Prerequisites
|
|
|
|
===================
|
|
|
|
|
2016-11-21 10:39:44 +00:00
|
|
|
Compiling and building Ceph is tested on 12-CURRENT, but I guess/expect
|
2016-10-12 09:11:39 +00:00
|
|
|
11-RELEASE will also work. And Clang is at 3.8.0.
|
2016-11-21 10:39:44 +00:00
|
|
|
It uses the CLANG toolset that is available, 3.7 is no longer tested,
|
|
|
|
but was working when that was with 11-CURRENT.
|
2018-09-18 03:19:18 +00:00
|
|
|
Clang 3.4 (on 10.2-STABLE) does not have all required capabilities to
|
2016-10-12 09:11:39 +00:00
|
|
|
compile everything
|
2016-03-24 11:47:34 +00:00
|
|
|
|
|
|
|
The following setup will get things running for FreeBSD:
|
2016-11-21 10:39:44 +00:00
|
|
|
|
|
|
|
This all require root privilidges.
|
2016-03-24 11:47:34 +00:00
|
|
|
|
2016-10-12 09:11:39 +00:00
|
|
|
- Install bash and link it in /bin
|
2016-03-24 11:47:34 +00:00
|
|
|
sudo pkg install bash
|
|
|
|
sudo ln -s /usr/local/bin/bash /bin/bash
|
2016-10-12 09:11:39 +00:00
|
|
|
|
|
|
|
Getting the FreeBSD work on Ceph:
|
|
|
|
=================================
|
|
|
|
|
|
|
|
- cd "place to work on this"
|
|
|
|
git clone https://github.com/wjwithagen/ceph.git
|
|
|
|
cd ceph
|
2017-04-08 16:31:13 +00:00
|
|
|
git checkout wip.FreeBSD.201702
|
2016-03-24 11:47:34 +00:00
|
|
|
|
|
|
|
Building Ceph
|
|
|
|
=============
|
2016-10-12 09:11:39 +00:00
|
|
|
- Go and start building
|
2016-03-24 11:47:34 +00:00
|
|
|
./do_freebsd.sh
|
2016-10-12 09:11:39 +00:00
|
|
|
|
2016-03-24 11:47:34 +00:00
|
|
|
Parts not (yet) included:
|
|
|
|
=========================
|
|
|
|
|
2017-04-08 16:31:13 +00:00
|
|
|
- KRBD
|
|
|
|
Kernel Rados Block Devices is implemented in the Linux kernel
|
2016-10-12 09:11:39 +00:00
|
|
|
It seems that there used to be a userspace implementation first.
|
|
|
|
And perhaps ggated could be used as a template since it does some of
|
|
|
|
the same, other than just between 2 disks. And it has a userspace
|
|
|
|
counterpart.
|
|
|
|
- BlueStore.
|
|
|
|
FreeBSD and Linux have different AIO API, and that needs to be made
|
|
|
|
compatible Next to that is there discussion in FreeBSD about
|
|
|
|
aio_cancel not working for all devicetypes
|
|
|
|
- CephFS
|
|
|
|
Cython tries to access an internal field in dirent which does not
|
|
|
|
compile
|
|
|
|
|
|
|
|
Tests that verify the correct working of the above are also excluded
|
|
|
|
from the testset
|
|
|
|
|
|
|
|
Tests not (yet) include:
|
2016-03-24 11:47:34 +00:00
|
|
|
=======================
|
|
|
|
|
2017-04-08 16:31:13 +00:00
|
|
|
- None, although some test can fail if running tests in parallel and there is
|
|
|
|
not enough swap. Then tests will start to fail in strange ways.
|
2016-11-21 10:39:44 +00:00
|
|
|
|
2016-10-12 09:11:39 +00:00
|
|
|
Task to do:
|
|
|
|
===========
|
|
|
|
- Build an automated test platform that will build ceph/master on
|
|
|
|
FreeBSD and report the results back to the Ceph developers. This will
|
|
|
|
increase the maintainability of the FreeBSD side of things.
|
|
|
|
Developers are signalled that they are using Linux-isms that will not
|
|
|
|
compile/run on FreeBSD Ceph has several projects for this: Jenkins,
|
|
|
|
teuthology, pulpito, ...
|
|
|
|
But even just a while { compile } loop and report the build data on a
|
|
|
|
static webpage would do for starters.
|
2016-03-24 11:47:34 +00:00
|
|
|
|
2016-10-12 09:11:39 +00:00
|
|
|
- Run integration tests to see if the FreeBSD daemons will work with a
|
|
|
|
Linux Ceph platform.
|
2016-03-24 11:47:34 +00:00
|
|
|
|
2016-10-12 09:11:39 +00:00
|
|
|
- Compile and test the user space RBD (Rados Block Device).
|
|
|
|
|
|
|
|
- Investigate and see if an in-kernel RBD device could be developed a la
|
|
|
|
'ggate'
|
|
|
|
|
|
|
|
- Investigate the keystore, which could be kernel embedded on Linux an
|
|
|
|
currently prevents building Cephfs and some other parts.
|
|
|
|
|
|
|
|
- Scheduler information is not used atm, because the schedulers work
|
|
|
|
rather different. But at a certain point in time, this would need some
|
|
|
|
attention:
|
|
|
|
in: ./src/common/Thread.cc
|
2016-07-20 13:59:57 +00:00
|
|
|
|
2017-04-08 16:31:13 +00:00
|
|
|
- Improve the FreeBSD /etc/rc.d initscripts in the Ceph stack. Both
|
2016-10-12 09:11:39 +00:00
|
|
|
for testing, but mainly for running Ceph on production machines.
|
2017-04-08 16:31:13 +00:00
|
|
|
Work on ceph-disk and ceph-deploy to make it more FreeBSD and ZFS
|
|
|
|
compatible.
|
|
|
|
|
|
|
|
- Build test-cluster and start running some of the teuthology integration
|
|
|
|
tests on these.
|
|
|
|
Teuthology want to build its own libvirt and that does not quite work
|
|
|
|
with all the packages FreeBSD already has in place. Lots of minute
|
|
|
|
details to figure out
|
|
|
|
|
2018-09-18 03:19:18 +00:00
|
|
|
- Design a virtual disk implementation that can be used with behyve and
|
2017-04-08 16:31:13 +00:00
|
|
|
attached to an RBD image.
|