]> git.proxmox.com Git - pve-docs.git/blame - pve-storage-cifs.adoc
attrs: update cephdocs template to quincy
[pve-docs.git] / pve-storage-cifs.adoc
CommitLineData
0ddd42aa 1[[storage_cifs]]
de14ebff
WL
2CIFS Backend
3-----------
4ifdef::wiki[]
5:pve-toplevel:
6:title: Storage: CIFS
7endif::wiki[]
8
9Storage pool type: `cifs`
10
0ddd42aa
TL
11The CIFS backend extends the directory backend, so that no manual
12setup of a CIFS mount is needed. Such a storage can be added directly
13through the {pve} API or the WebUI, with all our backend advantages,
14like server heartbeat check or comfortable selection of exported
15shares.
de14ebff
WL
16
17Configuration
18~~~~~~~~~~~~~
19
20The backend supports all common storage properties, except the shared
0ddd42aa
TL
21flag, which is always set. Additionally, the following CIFS special
22properties are available:
de14ebff
WL
23
24server::
25
0ddd42aa 26Server IP or DNS name. Required.
de14ebff 27
0ddd42aa
TL
28TIP: To avoid DNS lookup delays, it is usually preferable to use an IP
29address instead of a DNS name - unless you have a very reliable DNS
30server, or list the server in the local `/etc/hosts` file.
de14ebff 31
0ddd42aa 32share::
de14ebff 33
84f91027
TL
34CIFS share to use (get available ones with `pvesm scan cifs <address>` or the
35WebUI). Required.
de14ebff
WL
36
37username::
38
0ddd42aa 39The username for the CIFS storage. Optional, defaults to `guest'.
de14ebff
WL
40
41password::
42
0ddd42aa
TL
43The user password. Optional.
44It will be saved in a file only readable by root
84f91027 45(`/etc/pve/priv/storage/<STORAGE-ID>.pw`).
de14ebff
WL
46
47domain::
48
0ddd42aa 49Sets the user domain (workgroup) for this storage. Optional.
de14ebff
WL
50
51smbversion::
52
0ddd42aa 53SMB protocol Version. Optional, default is `3`.
de14ebff
WL
54SMB1 is not supported due to security issues.
55
56path::
57
0ddd42aa 58The local mount point. Optional, defaults to `/mnt/pve/<STORAGE_ID>/`.
de14ebff 59
93ee25d0 60content-dirs::
432750f7
LN
61
62Overrides for the default directory layout. Optional.
63
de14ebff
WL
64.Configuration Example (`/etc/pve/storage.cfg`)
65----
66cifs: backup
67 path /mnt/pve/backup
68 server 10.0.0.11
69 share VMData
70 content backup
71 username anna
72 smbversion 3
73
74----
75
76Storage Features
77~~~~~~~~~~~~~~~~
78
0ddd42aa
TL
79CIFS does not support snapshots on a storage level. But you may use
80`qcow2` backing files if you still want to have snapshots and cloning
81features available.
de14ebff 82
0ddd42aa 83.Storage features for backend `cifs`
de14ebff
WL
84[width="100%",cols="m,m,3*d",options="header"]
85|==============================================================================
c2c8eb89
DC
86|Content types |Image formats |Shared |Snapshots |Clones
87|images rootdir vztmpl iso backup snippets |raw qcow2 vmdk |yes |qcow2 |qcow2
de14ebff
WL
88|==============================================================================
89
90Examples
91~~~~~~~~
92
93You can get a list of exported CIFS shares with:
94
0ddd42aa 95----
84f91027 96# pvesm scan cifs <server> [--username <username>] [--password]
0ddd42aa
TL
97----
98
99Then you could add this share as a storage to the whole {pve} cluster
100with:
101
102----
103# pvesm add cifs <storagename> --server <server> --share <share> [--username <username>] [--password]
104----
de14ebff
WL
105
106ifdef::wiki[]
107
108See Also
109~~~~~~~~
110
111* link:/wiki/Storage[Storage]
112
113endif::wiki[]