I am playing with iscsi for the first time and saw the following document online (
http://www.c0t0d0s0.org/archives/422...sic-iSCSI.html) and tried the steps. I have run into a strange issue and am looking for any ideas.
I was able to setup the initiator and scan in a new 500GB LUN that Natapp folks carved out for me. However, I quickly discovered that I set it up on the wrong dev system. After scanning in the new LUN (it showed up 3 times however:
# iscsiadm list target
Target: iqn.1992-08.com.netapp:sn.135109822
Alias: -
TPGT: 1004
ISID: 4000002a0000
Connections: 1
Target: iqn.1992-08.com.netapp:sn.135109822
Alias: -
TPGT: 1002
ISID: 4000002a0000
Connections: 1
Target: iqn.1992-08.com.netapp:sn.135109822
Alias: -
TPGT: 2000
ISID: 4000002a0000
Connections: 1
All I did on the new LUN's was label them. They were never added into VXVM, or used for a filesystem. However, my attempts to remove the LUN's are all failing. If I try to remove the target:
iscsiadm remove target-param iqn.1992-08.com.netapp:sn.135109822 - the command comes back, no errors, but has not removed the target.
I have tried to disable the discovery and remove the discovery address, and both fail saying the LUN is busy:
# iscsiadm modify discovery -t disable
iscsiadm: logical unit in use
iscsiadm: Unable to complete operation
Any ideas on how to get rid of these?