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