]> git.proxmox.com Git - pve-docs.git/blame - pve-storage-nfs.adoc
spelling/grammar/capitalization
[pve-docs.git] / pve-storage-nfs.adoc
CommitLineData
aa039b0f
DM
1NFS Backend
2-----------
fc3425bd 3include::attributes.txt[]
aa039b0f
DM
4
5Storage pool type: `nfs`
6
7The NFS backend is based on the directory backend, so it shares most
8properties. The directory layout and the file naming conventions are
9the same. The main advantage is that you can directly configure the
10NFS server properties, so the backend can mount the share
8c1189b6 11automatically. There is no need to modify `/etc/fstab`. The backend
aa039b0f
DM
12can also test if the server is online, and provides a method to query
13the server for exported shares.
14
15Configuration
16~~~~~~~~~~~~~
17
18The backend supports all common storage properties, except the shared
19flag, which is always set. Additionally, the following properties are
20used to configure the NFS server:
21
22server::
23
24Server IP or DNS name. To avoid DNS lookup delays, it is usually
5eba0743 25preferable to use an IP address instead of a DNS name - unless you
aa039b0f
DM
26have a very reliable DNS server, or list the server in the local
27`/etc/hosts` file.
28
29export::
30
31NFS export path (as listed by `pvesm nfsscan`).
32
33You can also set NFS mount options:
34
35path::
36
8c1189b6 37The local mount point (defaults to `/mnt/pve/<STORAGE_ID>/`).
aa039b0f
DM
38
39options::
40
41NFS mount options (see `man nfs`).
42
8c1189b6 43.Configuration Example (`/etc/pve/storage.cfg`)
aa039b0f
DM
44----
45nfs: iso-templates
46 path /mnt/pve/iso-templates
47 server 10.0.0.10
48 export /space/iso-templates
49 options vers=3,soft
50 content iso,vztmpl
51----
52
53TIP: After an NFS request times out, NFS request are retried
54indefinitely by default. This can lead to unexpected hangs on the
55client side. For read-only content, it is worth to consider the NFS
56`soft` option, which limits the number of retries to three.
57
58
59Storage Features
60~~~~~~~~~~~~~~~~
61
5eba0743 62NFS does not support snapshots, but the backend uses `qcow2` features
aa039b0f
DM
63to implement snapshots and cloning.
64
65.Storage features for backend `nfs`
66[width="100%",cols="m,m,3*d",options="header"]
67|==============================================================================
68|Content types |Image formats |Shared |Snapshots |Clones
69|images rootdir vztempl iso backup |raw qcow2 vmdk subvol |yes |qcow2 |qcow2
70|==============================================================================
71
72Examples
73~~~~~~~~
74
75You can get a list of exported NFS shares with:
76
77 # pvesm nfsscan <server>
deb4673f
DM
78
79ifdef::wiki[]
80
81See Also
82~~~~~~~~
83
f532afb7 84* link:/wiki/Storage[Storage]
deb4673f
DM
85
86endif::wiki[]