I have a couple of ProxMox nodes using iSCSI to connect to an iSCSI target-portal (multiple LUNs). This works, but due to a configuration mistake, when the target was added to ProxMox ipv6 was enabled on both the ProxMox nodes and the iSCSI target.
We don't want to use ipv6 at all, and will never want to use it in this particular environment in the future.
Ipv6 is now completely disabled on the ProxMox nodes AND on the target. Unfortunately all ProxMox nodes keep trying (several times per minute) to login to the target using the ipv6 connection even though they have a working ipv4 connection.
I have seen some info on the internet that you need to delete the folder corresponding to the ipv6 target in /var/lib/iscsi/nodes/, but that folder will magically re-appear after a reboot of the node. (And it doesn't affect the behavior of the nodes when it is deleted anyway.)
There must be a way to re-discover the target with iscsiadm and update the iscsi information to ONLY reflect the current ipv4 only setup.
But I can't figure out which parameters to feed to iscsiadm to make this happen.
How do I get rid of the outdated ipv6 information. Either through iscsiadm or by any other means?