Proxmox: remove an iSCSI-backed LVM cleanly

How to tear down an iSCSI-backed LVM storage in Proxmox without leaving stale sessions that reconnect on reboot.

CrossedWires Team
July 28, 2025
3
Infrastructure
Proxmox: remove an iSCSI-backed LVM cleanly

The reverse of our multipath setup post. Same assumptions: two iSCSI paths (110 and 111), interfaces named iscsi-110 and iscsi-111, TrueNAS on the other end. Some steps run on every node, some on one node only.

Proxmox UI

Datacenter → Storage → select the LVM storage → Remove

On a single node

# show which PV (mpath/WWID) maps to which VG
pvs -o pv_name,vg_name
# remove the VG and all its LVs
vgremove -f <vgname>
# remove the physical volume
pvremove /dev/mapper/<wwid>

On all nodes‍

# list iscsi sessions to identify the target IQN
iscsiadm -m session# disconnect from the iscsi target
iscsiadm -m node -T <target_iqn> --logout
# delete the target record so it does not reconnect on reboot
iscsiadm -m node -T <target_iqn> -o delete

Example: removing general-vms and general-vms2

# general-vms
iscsiadm -m node -T iqn.2005-10.org.freenas.ctl:general-vms --logout
iscsiadm -m node -T iqn.2005-10.org.freenas.ctl:general-vms -o delete
# general-vms2
iscsiadm -m node -T iqn.2005-10.org.freenas.ctl:general-vms2 --logout
iscsiadm -m node -T iqn.2005-10.org.freenas.ctl:general-vms2 -o delete

‍

More from the blog

Are you ready?
Contact us