2 .. _ceph-volume-zfs-api:
6 The backend of ``ceph-volume zfs`` is ZFS, it relies heavily on the usage of
7 tags, which is a way for ZFS to allow extending its volume metadata. These
8 values can later be queried against devices and it is how they get discovered
11 Currently this interface is only usable when running on FreeBSD.
13 .. warning:: These APIs are not meant to be public, but are documented so that
14 it is clear what the tool is doing behind the scenes. Do not alter
18 .. _ceph-volume-zfs-tag-api:
22 The process of identifying filesystems, volumes and pools as part of Ceph relies
23 on applying tags on all volumes. It follows a naming convention for the
24 namespace that looks like::
26 ceph.<tag name>=<tag value>
28 All tags are prefixed by the ``ceph`` keyword to claim ownership of that
29 namespace and make it easily identifiable. This is how the OSD ID would be used
30 in the context of zfs tags::
34 Tags on filesystems are stored as property.
35 Tags on a zpool are stored in the comment property as a concatenated list
38 .. _ceph-volume-zfs-tags:
42 The following describes all the metadata from Ceph OSDs that is stored on a
43 ZFS filesystem, volume, pool:
48 Describes if the device is an OSD or Journal, with the ability to expand to
49 other types when supported
60 ceph.cluster_fsid=7146B649-AE00-4157-9F5D-1DBFF1D52C26
67 ceph.data_device=/dev/ceph/data-0
74 ceph.data_uuid=B76418EB-0024-401C-8955-AE6919D45CC3
81 ceph.journal_device=/dev/ceph/journal-0
88 ceph.journal_uuid=2070E121-C544-4F40-9571-0B7F35C6CB2B
95 ceph.osd_fsid=88ab9018-f84b-4d62-90b4-ce7c076728ff
107 Just used on :term:`bluestore` backends. Captures the path to the logical
112 ceph.block_device=/dev/gpt/block-0
117 Just used on :term:`bluestore` backends. Captures either the logical volume UUID or
122 ceph.block_uuid=E5F041BB-AAD4-48A8-B3BF-31F7AFD7D73E
127 Just used on :term:`bluestore` backends. Captures the path to the logical
132 ceph.db_device=/dev/gpt/db-0
137 Just used on :term:`bluestore` backends. Captures either the logical volume UUID or
142 ceph.db_uuid=F9D02CF1-31AB-4910-90A3-6A6302375525
147 Just used on :term:`bluestore` backends. Captures the path to the logical
152 ceph.wal_device=/dev/gpt/wal-0
157 Just used on :term:`bluestore` backends. Captures either the logical volume UUID or
162 ceph.wal_uuid=A58D1C68-0D6E-4CB3-8E99-B261AD47CC39
167 A compression-enabled device can allways be set using the native zfs settings on
168 a volume or filesystem. This will/can be activated during creation of the volume
170 When activated by ``ceph-volume zfs`` this tag will be created.
171 Compression manually set AFTER ``ceph-volume`` will go unnoticed, unless this
172 tag is also manually set.
174 Example for an enabled compression device::