]> git.proxmox.com Git - pve-docs.git/blame - pve-storage-cifs.adoc
Add documentation for CIFS Storage Plugin.
[pve-docs.git] / pve-storage-cifs.adoc
CommitLineData
de14ebff
WL
1CIFS Backend
2-----------
3ifdef::wiki[]
4:pve-toplevel:
5:title: Storage: CIFS
6endif::wiki[]
7
8Storage pool type: `cifs`
9
10The CIFS 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
13CIFS server, so the backend can mount the share automatically in
14the hole cluster. 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 CIFS 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
32share::
33
34CIFS share (as listed by `pvesm cifsscan`).
35
36Optional properties:
37
38username::
39
40If not presents, "guest" is used.
41
42password::
43
44The user password.
45It will be saved in a private directory (/etc/pve/priv/<STORAGE_ID>.cred).
46
47domain::
48
49sets the domain (workgroup) of the user
50
51smbversion::
52
53SMB protocol Version (default is `3`).
54SMB1 is not supported due to security issues.
55
56path::
57
58The local mount point (defaults to `/mnt/pve/<STORAGE_ID>/`).
59
60.Configuration Example (`/etc/pve/storage.cfg`)
61----
62cifs: backup
63 path /mnt/pve/backup
64 server 10.0.0.11
65 share VMData
66 content backup
67 username anna
68 smbversion 3
69
70----
71
72Storage Features
73~~~~~~~~~~~~~~~~
74
75CIFS does not support snapshots, but the backend uses `qcow2` features
76to implement snapshots and cloning.
77
78.Storage features for backend `nfs`
79[width="100%",cols="m,m,3*d",options="header"]
80|==============================================================================
81|Content types |Image formats |Shared |Snapshots |Clones
82|images rootdir vztmpl iso backup |raw qcow2 vmdk subvol |yes |qcow2 |qcow2
83|==============================================================================
84
85Examples
86~~~~~~~~
87
88You can get a list of exported CIFS shares with:
89
90 # pvesm cifsscan <server> [--username <username>] [--password]
91
92ifdef::wiki[]
93
94See Also
95~~~~~~~~
96
97* link:/wiki/Storage[Storage]
98
99endif::wiki[]