]> git.proxmox.com Git - pve-docs.git/blame_incremental - pve-storage-nfs.adoc
mark toplevel docs
[pve-docs.git] / pve-storage-nfs.adoc
... / ...
CommitLineData
1NFS Backend
2-----------
3include::attributes.txt[]
4
5ifdef::wiki[]
6:pve-toplevel:
7endif::wiki[]
8
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
15automatically. There is no need to modify `/etc/fstab`. The backend
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
29preferable to use an IP address instead of a DNS name - unless you
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
41The local mount point (defaults to `/mnt/pve/<STORAGE_ID>/`).
42
43options::
44
45NFS mount options (see `man nfs`).
46
47.Configuration Example (`/etc/pve/storage.cfg`)
48----
49nfs: iso-templates
50 path /mnt/pve/iso-templates
51 server 10.0.0.10
52 export /space/iso-templates
53 options vers=3,soft
54 content iso,vztmpl
55----
56
57TIP: After an NFS request times out, NFS request are retried
58indefinitely by default. This can lead to unexpected hangs on the
59client side. For read-only content, it is worth to consider the NFS
60`soft` option, which limits the number of retries to three.
61
62
63Storage Features
64~~~~~~~~~~~~~~~~
65
66NFS does not support snapshots, but the backend uses `qcow2` features
67to implement snapshots and cloning.
68
69.Storage features for backend `nfs`
70[width="100%",cols="m,m,3*d",options="header"]
71|==============================================================================
72|Content types |Image formats |Shared |Snapshots |Clones
73|images rootdir vztempl iso backup |raw qcow2 vmdk subvol |yes |qcow2 |qcow2
74|==============================================================================
75
76Examples
77~~~~~~~~
78
79You can get a list of exported NFS shares with:
80
81 # pvesm nfsscan <server>
82
83ifdef::wiki[]
84
85See Also
86~~~~~~~~
87
88* link:/wiki/Storage[Storage]
89
90endif::wiki[]