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