samba-tool: Fix enum values in dns.py
[Samba.git] / docs-xml / manpages / vfs_gpfs.8.xml
blobd1243a9b10f03f00488fcb1ddc6b4f175c9f12a4
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_gpfs.8">
5 <refmeta>
6         <refentrytitle>vfs_gpfs</refentrytitle>
7         <manvolnum>8</manvolnum>
8         <refmiscinfo class="source">Samba</refmiscinfo>
9         <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10         <refmiscinfo class="version">4.0</refmiscinfo>
11 </refmeta>
14 <refnamediv>
15         <refname>vfs_gpfs</refname>
16         <refpurpose>gpfs specific samba extensions like acls and prealloc</refpurpose>
17 </refnamediv>
19 <refsynopsisdiv>
20         <cmdsynopsis>
21                 <command>vfs objects = gpfs</command>
22         </cmdsynopsis>
23 </refsynopsisdiv>
25 <refsect1>
26         <title>DESCRIPTION</title>
28         <para>This VFS module is part of the
29         <citerefentry><refentrytitle>samba</refentrytitle>
30         <manvolnum>7</manvolnum></citerefentry> suite.</para>
32         <para>The <command>gpfs</command> VFS module is the home
33         for all gpfs extensions that Samba requires for proper integration
34         with GPFS. It uses the GPL library interfaces provided by GPFS.
35         </para>
37         <para>Currently the gpfs vfs module provides extensions in following areas :
38         <itemizedlist>
39         <listitem><para>NFSv4 ACL Interfaces with configurable options for GPFS</para></listitem>
40         <listitem><para>Kernel oplock support on GPFS</para></listitem>
41         <listitem><para>Lease support on GPFS</para></listitem>
42         </itemizedlist>
43         </para>
45         <para><command>NOTE:</command>This module follows the posix-acl behaviour
46         and hence allows permission stealing via chown. Samba might allow at a later
47         point in time, to restrict the chown via this module as such restrictions
48         are the responsibility of the underlying filesystem than of Samba.
49         </para>
51         <para>This module makes use of the smb.conf parameter
52         <smbconfoption name="acl map full control">acl map full control</smbconfoption>
53         When set to yes (the default), this parameter will add in the FILE_DELETE_CHILD
54         bit on a returned ACE entry for a file (not a directory) that already
55         contains all file permissions except for FILE_DELETE and FILE_DELETE_CHILD.
56         This can prevent Windows applications that request GENERIC_ALL access
57         from getting ACCESS_DENIED errors when running against a filesystem
58         with NFSv4 compatible ACLs.
59         </para>
61         <para>This module is stackable.</para>
63         <para>Since Samba 4.0 all options are per share options.</para>
65 </refsect1>
68 <refsect1>
69         <title>OPTIONS</title>
71         <variablelist>
73                 <varlistentry>
75                 <term>gpfs:sharemodes = [ yes | no ]</term>
76                 <listitem>
77                 <para>
78                 Enable/Disable cross node sharemode handling for GPFS.
79                 </para>
81                 <itemizedlist>
82                 <listitem><para>
83                 <command>yes(default)</command> - propagate sharemodes across all GPFS nodes.
84                 </para></listitem>
85                 <listitem><para>
86                 <command>no</command> - do not propagate sharemodes across all GPFS nodes.
87                 This should only be used if the GPFS file system is
88                 exclusively exported by Samba. Access by local unix application or
89                 NFS exports could lead to corrupted files.
90                 </para></listitem>
91                 </itemizedlist>
92                 </listitem>
94                 </varlistentry>
95                 <varlistentry>
97                 <term>gpfs:leases = [ yes | no ]</term>
98                 <listitem>
99                 <para>
100                 Enable/Disable cross node leases (oplocks) for GPFS.
101                 You should also set the <command>oplocks</command> and <command>kernel oplocks</command>
102                 options to the same value.
103                 </para>
105                 <itemizedlist>
106                 <listitem><para>
107                 <command>yes(default)</command> - propagate leases across all GPFS nodes.
108                 </para></listitem>
109                 <listitem><para>
110                 <command>no</command> - do not propagate leases across all GPFS nodes.
111                 This should only be used if the GPFS file system is
112                 exclusively exported by Samba. Access by local unix application or
113                 NFS exports could lead to corrupted files.
114                 </para></listitem>
115                 </itemizedlist>
116                 </listitem>
118                 </varlistentry>
120                 <varlistentry>
122                 <term>gpfs:hsm = [ yes | no ]</term>
123                 <listitem>
124                 <para>
125                 Enable/Disable announcing if this FS has HSM enabled.
126                 </para>
128                 <itemizedlist>
129                 <listitem><para>
130                 <command>no(default)</command> - Do not announce HSM.
131                 </para></listitem>
132                 <listitem><para>
133                 <command>yes</command> - Announce HSM.
134                 </para></listitem>
135                 </itemizedlist>
136                 </listitem>
138                 </varlistentry>
140                 <varlistentry>
142                 <term>gpfs:getrealfilename = [ yes | no ]</term>
143                 <listitem>
144                 <para>
145                 Enable/Disable usage of the <command>gpfs_get_realfilename_path()</command> function.
146                 This improves the casesensitive wildcard file name access.
147                 </para>
149                 <itemizedlist>
150                 <listitem><para>
151                 <command>yes(default)</command> - use <command>gpfs_get_realfilename_path()</command>.
152                 </para></listitem>
153                 <listitem><para>
154                 <command>no</command> - do not use <command>gpfs_get_realfilename_path()</command>.
155                 It seems that <command>gpfs_get_realfilename_path()</command> doesn't work on AIX.
156                 </para></listitem>
157                 </itemizedlist>
158                 </listitem>
160                 </varlistentry>
161                 <varlistentry>
163                 <term>gpfs:winattr = [ yes | no ]</term>
164                 <listitem>
165                 <para>
166                 Enable/Disable usage of the windows attributes in GPFS.
167                 GPFS is able to store windows file attributes e.g. HIDDEN,
168                 READONLY, SYSTEM and others natively. That means Samba doesn't
169                 need to map them to permission bits or extended attributes.
170                 </para>
172                 <itemizedlist>
173                 <listitem><para>
174                 <command>no(default)</command> - do not use GPFS windows attributes.
175                 </para></listitem>
176                 <listitem><para>
177                 <command>yes</command> - use GPFS windows attributes.
178                 </para></listitem>
179                 </itemizedlist>
180                 </listitem>
182                 </varlistentry>
183                 <varlistentry>
185                 <term>gpfs:merge_writeappend = [ yes | no ]</term>
186                 <listitem>
187                 <para>
188                 GPFS ACLs doesn't know about the 'APPEND' right.
189                 This option lets Samba map the 'APPEND' right to 'WRITE'.
190                 </para>
192                 <itemizedlist>
193                 <listitem><para>
194                 <command>yes(default)</command> - map 'APPEND' to 'WRITE'.
195                 </para></listitem>
196                 <listitem><para>
197                 <command>no</command> - do not map 'APPEND' to 'WRITE'.
198                 </para></listitem>
199                 </itemizedlist>
200                 </listitem>
202                 </varlistentry>
203                 <varlistentry>
205                 <term>gpfs:acl = [ yes | no ]</term>
206                 <listitem>
207                 <para>
208                 This option lets Samba use or ignore GPFS ACLs.
209                 </para>
211                 <itemizedlist>
212                 <listitem><para>
213                 <command>yes(default)</command> - use GPFS ACLs.
214                 </para></listitem>
215                 <listitem><para>
216                 <command>no</command> - do not use GPFS ACLs and pass everything
217                 to the next SMB_VFS module.
218                 </para></listitem>
219                 </itemizedlist>
220                 </listitem>
222                 </varlistentry>
223                 <varlistentry>
225                 <term>gpfs:refuse_dacl_protected = [ yes | no ]</term>
226                 <listitem>
227                 <para>
228                 As GPFS does not support the ACE4_FLAG_NO_PROPAGATE NFSv4 flag (which would be
229                 the mapping for the DESC_DACL_PROTECTED flag), the status of this flag is
230                 currently silently ignored by Samba. That means that if you deselect the "Allow
231                 inheritable permissions..." checkbox in Windows' ACL dialog and then apply the
232                 ACL, the flag will be back immediately.
233                 </para>
234                 <para>
235                 To make sure that automatic migration with e.g. robocopy does not lead to
236                 ACLs silently (and unintentionally) changed, you can set
237                 <command>gpfs:refuse_dacl_protected = yes</command> to enable an explicit
238                 check for this flag and if set, it will return NT_STATUS_NOT_SUPPORTED so
239                 errors are shown up on the Windows side and the Administrator is aware of
240                 the ACLs not being settable like intended
241                 </para>
243                 <itemizedlist>
244                 <listitem><para>
245                 <command>no(default)</command> - ignore the DESC_DACL_PROTECTED flags.
246                 </para></listitem>
247                 <listitem><para>
248                 <command>yes</command> - reject ACLs with DESC_DACL_PROTECTED.
249                 </para></listitem>
250                 </itemizedlist>
251                 </listitem>
253                 </varlistentry>
254                 <varlistentry>
256                 <term>gpfs:dfreequota = [ yes | no ]</term>
257                 <listitem>
258                 <para>
259                 Adjust reporting of the size and free space of a share
260                 according to quotas. If this setting is "yes", a
261                 request for size and free space will also evaluate the
262                 user quota of the user requesting the data, the group
263                 quota of the primary group of the user and the fileset
264                 quota for the fileset containing the top level
265                 directory of the share.
266                 </para>
268                 <para>
269                 If any of the soft or hard quota limits has been
270                 reached, the free space will be reported as 0. If a
271                 quota is in place, but the limits have not been
272                 reached, the free space will be reported according to
273                 the space left in the quota. If more than one quota
274                 applies the free space will be reported as the smallest
275                 space left in those quotas. The size of the share
276                 will be reported according to the quota usage. If more
277                 than one quota applies, the smallest size will be
278                 reported for the share size according to these quotas.
279                 </para>
281                 <itemizedlist>
282                 <listitem><para>
283                 <command>yes</command> - include the quotas
284                 when reporting the share size and free space
285                 </para></listitem>
286                 <listitem><para>
287                 <command>no(default)</command> - do not include quotas,
288                 simply report the size and free space of the file system
289                 </para></listitem>
290                 </itemizedlist>
291                 </listitem>
293                 </varlistentry>
294                 <varlistentry>
296                 <term>gpfs:prealloc = [ yes | no ]</term>
297                 <listitem>
298                 <para>
299                 If set to yes the gpfs_prealloc function will be used in the
300                 fallocate callback when appropriate. If set to no gpfs_prealloc
301                 will not be used. In both cases the system and libc calls are
302                 avoided.
303                 </para>
305                 <itemizedlist>
306                 <listitem><para>
307                 <command>yes (default)</command> - Use gpfs_prealloc for the
308                 fallocate callback.
309                 </para></listitem>
310                 <listitem><para>
311                 <command>no</command> - Do not use gpfs_prealloc for the
312                 fallocate callback.
313                 </para></listitem>
314                 </itemizedlist>
315                 </listitem>
317                 </varlistentry>
319                 <varlistentry>
321                 <term>nfs4:mode = [ simple | special ]</term>
322                 <listitem>
323                 <para>
324                 Controls substitution of special IDs (OWNER@ and GROUP@) on GPFS.
325                 The use of mode simple is recommended.
326                 In this mode only non inheriting ACL entries for the file owner
327                 and group are mapped to special IDs.
328                 </para>
330                 <para>The following MODEs are understood by the module:</para>
331                 <itemizedlist>
332                 <listitem><para><command>simple(default)</command> - use OWNER@ and GROUP@ special IDs for non inheriting ACEs only.</para></listitem>
333                 <listitem><para><command>special(deprecated)</command> - use OWNER@ and GROUP@ special IDs in ACEs for all file owner and group ACEs.</para></listitem>
334                 </itemizedlist>
335                 </listitem>
337                 </varlistentry>
340                 <varlistentry>
341                 <term>nfs4:acedup = [dontcare|reject|ignore|merge]</term>
342                 <listitem>
343                 <para>
344                 This parameter configures how Samba handles duplicate ACEs encountered in GPFS ACLs.
345                 GPFS allows/creates duplicate ACE for different bits for same ID.
346                 </para>
348                 <para>Following is the behaviour of Samba for different values :</para>
349                 <itemizedlist>
350                 <listitem><para><command>dontcare (default)</command> - copy the ACEs as they come</para></listitem>
351                 <listitem><para><command>reject</command> - stop operation and exit with error on ACL set op</para></listitem>
352                 <listitem><para><command>ignore</command> - don't include the second matching ACE</para></listitem>
353                 <listitem><para><command>merge</command> - bitwise OR the 2 ace.flag fields and 2 ace.mask fields of the 2 duplicate ACEs into 1 ACE</para></listitem>
354                 </itemizedlist>
355                 </listitem>
356                 </varlistentry>
359                 <varlistentry>
360                 <term>nfs4:chown = [yes|no]</term>
361                 <listitem>
362                 <para>This parameter allows enabling or disabling the chown supported
363                 by the underlying filesystem. This parameter should be enabled with
364                 care as it might leave your system insecure.</para>
365                 <para>Some filesystems allow chown as a) giving b) stealing. It is the latter
366                 that is considered a risk.</para>
368                 <para>Following is the behaviour of Samba for different values : </para>
369                 <itemizedlist>
370                 <listitem><para><command>yes</command> - Enable chown if as supported by the under filesystem</para></listitem>
371                 <listitem><para><command>no (default)</command> - Disable chown</para></listitem>
372                 </itemizedlist>
373                 </listitem>
374                 </varlistentry>
376                 <varlistentry>
377                 <term>gpfs:syncio = [yes|no]</term>
378                 <listitem>
379                 <para>This parameter makes Samba open all files with O_SYNC.
380                   This triggers optimizations in GPFS for workloads that
381                   heavily share files.</para>
383                 <para>Following is the behaviour of Samba for different
384                   values:
385                 </para>
386                 <itemizedlist>
387                 <listitem><para><command>yes</command> - Open files with O_SYNC
388                 </para></listitem>
389                 <listitem><para><command>no (default)</command> - Open files as
390                     normal Samba would do
391                 </para></listitem>
392                 </itemizedlist>
393                 </listitem>
394                 </varlistentry>
396         </variablelist>
397 </refsect1>
399 <refsect1>
400         <title>EXAMPLES</title>
402         <para>A GPFS mount can be exported via Samba as follows :</para>
404 <programlisting>
405         <smbconfsection name="[samba_gpfs_share]"/>
406         <smbconfoption name="vfs objects">gpfs</smbconfoption>
407         <smbconfoption name="path">/test/gpfs_mount</smbconfoption>
408         <smbconfoption name="nfs4: mode">special</smbconfoption>
409         <smbconfoption name="nfs4: acedup">merge</smbconfoption>
410 </programlisting>
411 </refsect1>
413 <refsect1>
414         <title>CAVEATS</title>
415         <para>
416         Depending on the version of gpfs, the <command>libgpfs_gpl</command>
417         library or the <command>libgpfs</command> library is needed at
418         runtime by the <command>gpfs</command> VFS module:
419         Starting with gpfs 3.2.1 PTF8, the complete <command>libgpfs</command>
420         is available as open source and <command>libgpfs_gpl</command> does no
421         longer exist. With earlier versions of gpfs, only the
422         <command>libgpfs_gpl</command> library was open source and could be
423         used at run time.
424         </para>
425         <para>
426         At build time, only the header file <command>gpfs_gpl.h</command>
427         is required , which is a symlink to <command>gpfs.h</command> in
428         gpfs versions newer than 3.2.1 PTF8.
429         </para>
430 </refsect1>
432 <refsect1>
433         <title>VERSION</title>
434         <para>This man page is correct for version 3.0.25 of the Samba suite.
435         </para>
436 </refsect1>
438 <refsect1>
439         <title>AUTHOR</title>
441         <para>The original Samba software and related utilities
442         were created by Andrew Tridgell. Samba is now developed
443         by the Samba Team as an Open Source project similar
444         to the way the Linux kernel is developed.</para>
446         <para>The GPFS VFS module was created with contributions from
447         Volker Lendecke and the developers at IBM.
448         </para>
450         <para> This manpage was created by the IBM FSCC team </para>
451 </refsect1>
453 </refentry>