Good morning,
I want to setup a shared LVM storage on a iSCSI target to be able shift VMs between Proxmox hosts. It might be a cluster later. Currently, we do these tests to migrate from VMWare ESXi to Proxmox 9.
For these tests, I used two Proxmox 9 servers. I denote them with server 1 and server 2.
iSCSI server using Ubuntu 24.04.03. iSCSI provided by tgt.
Config:
<target iqn.2026-01.iscsi1.com:lun1>
backing-store /dev/vdb
initiator-address 192.168.1.0/24
</target>
On server 1: Added iSCSI target using GUI Datacenter -> Storage -> Add -> iSCSI:
On server 2: Added iSCSI target using GUI Datacenter -> Storage -> Add -> iSCSI:
Thank you in advance.
I want to setup a shared LVM storage on a iSCSI target to be able shift VMs between Proxmox hosts. It might be a cluster later. Currently, we do these tests to migrate from VMWare ESXi to Proxmox 9.
For these tests, I used two Proxmox 9 servers. I denote them with server 1 and server 2.
iSCSI server using Ubuntu 24.04.03. iSCSI provided by tgt.
Config:
<target iqn.2026-01.iscsi1.com:lun1>
backing-store /dev/vdb
initiator-address 192.168.1.0/24
</target>
On server 1: Added iSCSI target using GUI Datacenter -> Storage -> Add -> iSCSI:
- ID: iscsi1-disk
- Portal :IP of iSCSI server above
- Target is displayed with name above: iqn.2026-01.iscsi1.com:lun1
- Nodes: All (no restrictions) <- this is default
- Enable: ticked ) <- this is default
- Use LUNs directly: unticked
- Check of availabililty: lsscsi shows disk as /dev/sdc:
[7:0:0:0] storage IET Controller 0001 - - [7:0:0:1] disk IET VIRTUAL-DISK 0001 /dev/sdc
- Generation of LVM physical volume:
pvcreate /dev/sdc - Generation of LVM volume group:
vgcreate iscsi1-lvm /dev/sdc
- ID: shared-storage-1
- Base storage: Existing volume groups
- Volume group: iscsi1-lvm
- Content: Disk image, Container <- this is default
- Nodes: All (no restrictions) <- this is default
- Enable: ticked ) <- this is default
- Shared: ticked
- Wipe Removed Volumes: unticked ) <- this is default
- Advanced: Allow Snapshots as Volume-Chain: ticked
On server 2: Added iSCSI target using GUI Datacenter -> Storage -> Add -> iSCSI:
- ID: iscsi1-disk
- Portal: IP of iSCSI server above
- Target is displayed with name above: iqn.2026-01.iscsi1.com:lun1
- Nodes: All (no restrictions) <- this is default
- Enable: ticked ) <- this is default
- Use LUNs directly: unticked
- ID: shared-storage-1
- Base storage: Existing volume groups
- Volume group: iscsi-lvm
- Content: Disk image, Container <- this is default
- Nodes: All (no restrictions) <- this is default
- Enable: ticked ) <- this is default
- Shared: ticked
- Wipe Removed Volumes: unticked ) <- this is default
- Advanced: Allow Snapshots as Volume-Chain: ticked
- Added test VM (VM ID: 60000) on server 1.
- Copy its qcow2 disk to shared-storage 1 using GUI keeping the original disk on local storage.
- Detach disk copy from VM and re-attached disk on local storage.
- Generate test VM on server 2 on GUI.
- Import of disk from shared storage not possible as GUI does not show this storage.
- CLI command
qm disk rescan
shows error message: failed to stat '/dev/iscsi1-lvm/vm-60000-disk-0.qcow2' - Cannot add disk.
- Generate new VM using same VM ID 60000 on server 2.
- Same failure.
- Adding disk manually in CLI into config file: disk works in VM.
Thank you in advance.