]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | ============================== |
2 | FreeBSD Implementation details | |
3 | ============================== | |
4 | ||
5 | ||
11fdf7f2 | 6 | Disk layout |
7c673cae FG |
7 | ----------- |
8 | ||
9 | Current 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 | ||
29 | Configuration | |
30 | ------------- | |
31 | ||
32 | As per FreeBSD default parts of extra software go into ``/usr/local/``. Which | |
11fdf7f2 | 33 | means 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 |
35 | from ``/etc/ceph`` to ``/usr/local/etc/ceph``:: | |
36 | ||
37 | ln -s /usr/local/etc/ceph /etc/ceph | |
11fdf7f2 | 38 | |
7c673cae FG |
39 | A sample file is provided in ``/usr/local/share/doc/ceph/sample.ceph.conf`` |
40 | ||
41 | ||
42 | MON creation | |
43 | ------------ | |
44 | ||
45 | Monitors 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 | ||
50 | OSD creation | |
51 | ------------ | |
52 | ||
11fdf7f2 | 53 | OSDs can be manually created only, see :ref:`freebsd_adding_osds` |