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