Proxmox Virtual Environment
iSCSI
Basics
Initiator name is stored in /etc/iscsi/initiatorname.iscsi.
Change some default values in /etc/iscsi/iscsid.conf:
Add the iSCSI LUN via Proxmox VE GUI:
- Navigate to the Datacenter view.
- Select the storage where you want to add the iSCSI LUN.
- Click on "Add" and then "iSCSI".
- Fill in the required fields, including the iSCSI target information.
iSCSI Multipath
Proxmox does not preinstall multipath-tools, so it have to be installed manually:
Add /etc/multipath.conf configuration file - try to get information about SAN from vendor to set correct values. Following example is for DELL ME4024 SAN
To identify the iSCSI LUNs, use the WWID. The command scsi_id can be used to determine the WWID of a device:
Replace /dev/sdX with the appropriate device identifier, which you can get with following command:
Add WWIDs to the WWIDs file
Increase size of VG
- Enlarge LUN on SAN
- Get involved iSCSI devices
- Rescan the iSCSI devices - replace sdX with involved device names and repeat it for every device
- Check size before increasing for comparison
- Resize multipath device
- Check size after resizing
- Resize of physical volume
Add unreferenced disks back to VM
When this operation fails, check whether the disk is an LVM volume and whether it is deactivated, and if so, activate it.
When disk is deactivated - get LV Path from above command and activate it:
Repeat the rescan for the VM