]> git.proxmox.com Git - pve-docs.git/blame - pve-storage-iscsi.adoc
fix wrong comma
[pve-docs.git] / pve-storage-iscsi.adoc
CommitLineData
aa039b0f
DM
1http://www.open-iscsi.org/[Open-iSCSI] initiator
2------------------------------------------------
fc3425bd 3include::attributes.txt[]
aa039b0f
DM
4
5Storage pool type: `iscsi`
6
7iSCSI is a widely employed technology used to connect to storage
8servers. Almost all storage vendors support iSCSI. There are also open
9source iSCSI target solutions available,
10e.g. http://www.openmediavault.org/[OpenMediaVault], which is based on
11Debian.
12
8c1189b6 13To use this backend, you need to install the `open-iscsi`
aa039b0f
DM
14package. This is a standard Debian package, but it is not installed by
15default to save resources.
16
17 # apt-get install open-iscsi
18
8c1189b6 19Low-level iscsi management task can be done using the `iscsiadm` tool.
aa039b0f
DM
20
21
22Configuration
23~~~~~~~~~~~~~
24
25The backend supports the common storage properties `content`, `nodes`,
26`disable`, and the following iSCSI specific properties:
27
28portal::
29
30iSCSI portal (IP or DNS name with optional port).
31
32target::
33
34iSCSI target.
35
36
8c1189b6 37.Configuration Example (`/etc/pve/storage.cfg`)
aa039b0f
DM
38----
39iscsi: mynas
40 portal 10.10.10.1
41 target iqn.2006-01.openfiler.com:tsn.dcb5aaaddd
42 content none
43----
44
45TIP: If you want to use LVM on top of iSCSI, it make sense to set
46`content none`. That way it is not possible to create VMs using iSCSI
47LUNs directly.
48
5eba0743 49
aa039b0f
DM
50File naming conventions
51~~~~~~~~~~~~~~~~~~~~~~~
52
53The iSCSI protocol does not define an interface to allocate or delete
54data. Instead, that needs to be done on the target side and is vendor
55specific. The target simply exports them as numbered LUNs. So {pve}
56iSCSI volume names just encodes some information about the LUN as seen
57by the linux kernel.
58
59
60Storage Features
61~~~~~~~~~~~~~~~~
62
63iSCSI is a block level type storage, and provides no management
64interface. So it is usually best to export one big LUN, and setup LVM
65on top of that LUN. You can then use the LVM plugin to manage the
66storage on that iSCSI LUN.
67
68.Storage features for backend `iscsi`
69[width="100%",cols="m,m,3*d",options="header"]
70|==============================================================================
71|Content types |Image formats |Shared |Snapshots |Clones
72|images none |raw |yes |no |no
73|==============================================================================
74
75
76Examples
77~~~~~~~~
78
79Scan a remote iSCSI portal, and returns a list of possible targets:
80
81 pvesm iscsiscan -portal <HOST[:PORT]>
82
deb4673f
DM
83ifdef::wiki[]
84
85See Also
86~~~~~~~~
87
f532afb7 88* link:/wiki/Storage[Storage]
deb4673f
DM
89
90endif::wiki[]
91
aa039b0f 92