How to remove offline iSCSI storage?

I've retired a problematic iSCSI from a PVE system and now I can't seem to remove it from the configuration, via the web UI itself - it always shows up as "offline" - ie. "storage 'XYZ' is not online (500)".

How can I remove this from all configurations?
for my knowledge remove iscsi entry from /etc/pve/storage.cfg and from lio or whatever you used to define it
 
If you removed the entry in PVE, then you must remove the iscsi from the hostconfig. If you don't do this, pve will connect to the iscsishare every boot. So try like this:

1) iscsiadm -m node -T <target> -u
2) iscsiadm -m node -T <target> -o delete
3) if /etc/iscsi/send_targets/initiator/ which target belongs to is empty
rm -rf /etc/iscsi/send_targets/initiator/
4) remove from pve

The thing is the same like NFS or other storagetypes, you disable it in pve, but this does not mean disable or unmount it on the system. For these things, the admin is responsible.
 
  • Like
Reactions: manu
If you removed the entry in PVE, then you must remove the iscsi from the hostconfig. If you don't do this, pve will connect to the iscsishare every boot. So try like this:

1) iscsiadm -m node -T <target> -u
2) iscsiadm -m node -T <target> -o delete
3) if /etc/iscsi/send_targets/initiator/ which target belongs to is empty
rm -rf /etc/iscsi/send_targets/initiator/
4) remove from pve

The thing is the same like NFS or other storagetypes, you disable it in pve, but this does not mean disable or unmount it on the system. For these things, the admin is responsible.
What about if I do this will it disconnect the other targets as well?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!