How to remove offline iSCSI storage?

MagicFab

Renowned Member
May 6, 2016
55
16
73
Canada
legoutdulibre.com
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?
 
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?