This post is to provide steps from changing iSCSI Static Discovery to SendTargets Discovery. If zones are configured, zones need to be halted before changing the iSCSI discovery method then boot afterward. If zpool is configured, zpool needs to be exported before changing the iSCSI discovery method then import afterward.
Below are high level steps:
- halt zones
- export -f zfs pools
- remove static disks
- disable static discovery service
- restart target discovery service
- import pools
- boot zones
Below are detailed steps of changing from iSCSI Static to SendTargets Discovery method.
Note: No shutdown is required, but it will cause momentarily disruption to the connection.
1. Remove the luns from static-config and discovery address file.
# iscsiadm remove static-config iqn.2001-05.com.equallogic:0-8a0906-7fe02640d-3a76220fcab566f1-hddirswebep04-01,192.168.238.2:3260 # iscsiadm remove static-config iqn.2001-05.com.equallogic:0-8a0906-2e802640d-175003dddfc55491-hddirsappip01-01,192.168.238.2:3260
2. Disable static discovery
# iscsiadm modify discovery -s disable
3. Disable/enable SendTargets discovery to bring in the luns again.
# iscsiadm modify discovery -t disable # iscsiadm modify discovery -t enable
4. Then list the target again to make sure all the luns are discovered.