1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <refentry id="vfs_ceph_new.8">
6 <refentrytitle>vfs_ceph_new</refentrytitle>
7 <manvolnum>8</manvolnum>
8 <refmiscinfo class="source">Samba</refmiscinfo>
9 <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10 <refmiscinfo class="version">&doc.version;</refmiscinfo>
15 <refname>vfs_ceph_new</refname>
17 Utilize features provided by libcephfs low-level APIs
23 <command>vfs objects = ceph_new</command>
28 <title>DESCRIPTION</title>
30 <para>This VFS module is part of the
31 <citerefentry><refentrytitle>samba</refentrytitle>
32 <manvolnum>8</manvolnum></citerefentry> suite.</para>
35 The <command>vfs_ceph_new</command> VFS module exposes
36 CephFS specific features for use by Samba.
40 Ceph is a distributed network file system designed to provide
41 excellent performance, reliability, and scalability. This is a
42 shared library allowing applications to access a Ceph
43 distributed file system via a POSIX-like interface.
47 This module can be combined with other modules, but it
48 should be the last module in the <command>vfs objects</command>
49 list. Modules added to this list to the right of the ceph
50 entry may not have any effect at all.
54 <command>vfs_ceph_new</command> performs mapping between Windows
55 and POSIX Access Control Lists (ACLs). To ensure correct
56 processing and enforcement of POSIX ACLs, the following Ceph
57 configuration parameters are automatically applied:
60 <command>client acl type = posix_acl</command>
61 <command>fuse default permissions = false</command>
65 <emphasis role="strong">NOTE</emphasis>:
66 This is a second implementation of a ceph module which uses libcephfs
67 low-level APIs (compared to the original
68 <citerefentry><refentrytitle>vfs_ceph</refentrytitle>
69 <manvolnum>8</manvolnum></citerefentry> module which uses path-based
70 APIs). Using the low-level API allows more optimized and fine-grained
71 access to the Ceph storage layer.
76 <title>CONFIGURATION</title>
79 <command>vfs_ceph_new</command> requires that the underlying
80 share path is a Ceph filesystem.
84 <smbconfsection name="[share]"/>
85 <smbconfoption name="vfs objects">ceph_new</smbconfoption>
86 <smbconfoption name="path">/non-mounted/cephfs/path</smbconfoption>
87 <smbconfoption name="kernel share modes">no</smbconfoption>
91 Since <command>vfs_ceph_new</command> does not require a
92 filesystem mount, the share <command>path</command> is treated
93 differently: it is interpreted as an absolute path within the
94 Ceph filesystem on the attached Ceph cluster.
95 In a ctdb cluster environment where ctdb manages Samba,
96 <command>CTDB_SAMBA_SKIP_SHARE_CHECK=yes</command> must be
97 configured to disable local share path checks, otherwise ctdb
98 will not reach a healthy state.
102 Note that currently <command>kernel share modes</command> have
103 to be disabled in a share running with the CephFS vfs module for
104 file serving to work properly.
109 <title>OPTIONS</title>
114 <term>ceph_new:config_file = path</term>
117 Allows one to define a ceph configfile to use. Empty by default.
120 Example: ceph_new:config_file =
127 <term>ceph_new:user_id = name</term>
130 Allows one to explicitly set the client ID used for the
131 CephFS mount handle. Empty by default (use the libcephfs
135 Example: ceph_new:user_id = samba
141 <term>ceph_new:filesystem = fs_name</term>
144 Allows one to explicitly select the CephFS file system
145 to use when the Ceph cluster supports more than one
146 file system. Empty by default (use the default file
147 system of the Ceph cluster).
150 Example: ceph_new:filesystem = myfs2
156 <term>ceph_new:proxy = [ yes | no | auto ]</term>
159 Allows one to indicate use of the libcephfs proxy library
160 for optimized resource utilization, allowing more simultaneous
161 client connections. Prerequisites include the presence of
162 <emphasis>libcephfs_proxy.so.X</emphasis> shared library file
163 under loadable locations for dynamic linker and an active(running)
164 <emphasis>libcephfsd</emphasis> daemon.
168 <listitem><para><constant>no</constant> (default) - Do
169 not use the proxy library but regular connection through
170 <emphasis>libcephfs.so.X</emphasis>.</para></listitem>
172 <listitem><para><constant>yes</constant> - Always use
173 the proxy library and fail the client connection request
174 if prerequisites are unmet.</para></listitem>
176 <listitem><para><constant>auto</constant> - Attempt to
177 use the proxy library but fall back to the regular cephfs
178 connection if prerequisites are unmet.</para></listitem>
189 <title>VERSION</title>
192 This man page is part of version &doc.version; of the Samba suite.
197 <title>AUTHOR</title>
199 <para>The original Samba software and related utilities
200 were created by Andrew Tridgell. Samba is now developed
201 by the Samba Team as an Open Source project similar
202 to the way the Linux kernel is developed.</para>