1 .. _deploy-cephadm-nfs-ganesha:
7 .. note:: Only the NFSv4 protocol is supported.
9 The simplest way to manage NFS is via the ``ceph nfs cluster ...``
10 commands; see :ref:`cephfs-nfs`. This document covers how to manage the
11 cephadm services directly, which should only be necessary for unusual NFS
17 Cephadm deploys NFS Ganesha daemon (or set of daemons). The configuration for
18 NFS is stored in the ``nfs-ganesha`` pool and exports are managed via the
19 ``ceph nfs export ...`` commands and via the dashboard.
21 To deploy a NFS Ganesha gateway, run the following command:
25 ceph orch apply nfs *<svc_id>* [--port *<port>*] [--placement ...]
27 For example, to deploy NFS with a service id of *foo* on the default
28 port 2049 with the default placement of a single daemon:
32 ceph orch apply nfs foo
34 See :ref:`orchestrator-cli-placement-spec` for the details of the placement
40 Alternatively, an NFS service can be applied using a YAML specification.
53 In this example, we run the server on the non-default ``port`` of
54 12345 (instead of the default 2049) on ``host1`` and ``host2``.
56 The specification can then be applied by running the following command:
60 ceph orch apply -i nfs.yaml
66 Deploying an *ingress* service for an existing *nfs* service will provide:
68 * a stable, virtual IP that can be used to access the NFS server
69 * fail-over between hosts if there is a host failure
70 * load distribution across multiple NFS gateways (although this is rarely necessary)
72 Ingress for NFS can be deployed for an existing NFS service
73 (``nfs.mynfs`` in this example) with the following specification:
82 backend_service: nfs.mynfs
85 virtual_ip: 10.0.0.123/24
89 * The *virtual_ip* must include a CIDR prefix length, as in the
90 example above. The virtual IP will normally be configured on the
91 first identified network interface that has an existing IP in the
92 same subnet. You can also specify a *virtual_interface_networks*
93 property to match against IPs in other networks; see
94 :ref:`ingress-virtual-ip` for more information.
95 * The *monitor_port* is used to access the haproxy load status
96 page. The user is ``admin`` by default, but can be modified by
97 via an *admin* property in the spec. If a password is not
98 specified via a *password* property in the spec, the auto-generated password
103 ceph config-key get mgr/cephadm/ingress.*{svc_id}*/monitor_password
109 ceph config-key get mgr/cephadm/ingress.nfs.myfoo/monitor_password
111 * The backend service (``nfs.mynfs`` in this example) should include
112 a *port* property that is not 2049 to avoid conflicting with the
113 ingress service, which could be placed on the same host(s).