Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions doc/cephadm/nfs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,64 @@ The specification can then be applied using:
.. prompt:: bash #

ceph orch apply -i nfs.yaml

NFSv3
=====

.. note:: NFSv3 is a very old protocol. Please consider upgrading to NFSv4 instead.

to enable NFSv3, replace the Jinja2 template of cephadm::

# {{ cephadm_managed }}
NFS_CORE_PARAM {
Enable_NLM = false;
Enable_RQUOTA = false;
Protocols = 3, 4;
}

MDCACHE {
Dir_Chunk = 0;
}

EXPORT_DEFAULTS {
Attr_Expiration_Time = 0;
}

NFSv4 {
Delegations = false;
RecoveryBackend = 'rados_cluster';
Minor_Versions = 1, 2;
}

RADOS_KV {
UserId = "{{ user }}";
nodeid = "{{ nodeid}}";
pool = "{{ pool }}";
namespace = "{{ namespace }}";
}

RADOS_URLS {
UserId = "{{ user }}";
watch_url = "{{ url }}";
}

RGW {
cluster = "ceph";
name = "client.{{ rgw_user }}";
}

%url {{ url }}

and repalce the existing template using:

.. prompt:: bash #

ceph config-key set mgr/cephadm/services/nfs/ganesha.conf -i filename.conf
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also requires a ceph reconfig nfs.<svc_id> to apply the changes ...


Then apply the new config:

.. prompt:: bash #

ceph reconfig nfs.<svc_id>