While updating iSCSI links on my SAN to 10Gbps I wanted to gracefully remove the existing 1Gbps iSCSI paths from my TrueNAS.
Process to Change iSCSI Paths in TrueNAS
Edit /conf/base/etc/iscsi.conf and change the IP in t0 and t1 to the new IPs. My IQNs remained the same.
Run the following commands to manually connect to the new IPs and then check paths:
iscsictl -An t0
iscsictl -An t1
iscsisct -L
Run the following commands to remove the paths that are being abandoned and check the paths:
iscsictl -R -p 192.168.1.151
iscsictl -R -p 192.168.1.152
iscsictl -L
Check the pool and see if the iSCSI disk is online. Then write to a file.
References
man iscsictl