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