]> git.proxmox.com Git - ceph.git/blame - ceph/doc/dev/freebsd.rst
update ceph source to reef 18.2.1
[ceph.git] / ceph / doc / dev / freebsd.rst
CommitLineData
7c673cae
FG
1==============================
2FreeBSD Implementation details
3==============================
4
5
11fdf7f2 6Disk layout
7c673cae
FG
7-----------
8
9Current implementation works on ZFS pools
10
11* created in /var/lib/ceph
12* One ZFS pool per OSD, like::
13
14 gpart create -s GPT ada1
15 gpart add -t freebsd-zfs -l osd1 ada1
16 zpool create -o mountpoint=/var/lib/ceph/osd/osd.1 osd
17
18* Maybe add some cache and log (ZIL)? Assuming that ada2 is an SSD::
11fdf7f2 19
7c673cae
FG
20 gpart create -s GPT ada2
21 gpart add -t freebsd-zfs -l osd1-log -s 1G ada2
22 zpool add osd1 log gpt/osd1-log
23 gpart add -t freebsd-zfs -l osd1-cache -s 10G ada2
24 zpool add osd1 log gpt/osd1-cache
25
26* Note: *UFS2 does not allow large xattribs*
27
28
29Configuration
30-------------
31
32As per FreeBSD default parts of extra software go into ``/usr/local/``. Which
11fdf7f2 33means that for ``/etc/ceph.conf`` the default location is
7c673cae
FG
34``/usr/local/etc/ceph/ceph.conf``. Smartest thing to do is to create a softlink
35from ``/etc/ceph`` to ``/usr/local/etc/ceph``::
36
37 ln -s /usr/local/etc/ceph /etc/ceph
11fdf7f2 38
7c673cae
FG
39A sample file is provided in ``/usr/local/share/doc/ceph/sample.ceph.conf``
40
41
42MON creation
43------------
44
45Monitors are created by following the manual creation steps on::
46
f67539c2 47 https://docs.ceph.com/en/latest/install/manual-freebsd-deployment/
7c673cae
FG
48
49
50OSD creation
51------------
52
11fdf7f2 53OSDs can be manually created only, see :ref:`freebsd_adding_osds`