On 02/25/2011 09:26 AM, Matthew Richardson wrote:
I'm currently trying to run discovery against a server when I already
have a logged in session to a target on a different server.
When I run:
iscsiadm -m discovery -p 192.168.1.2:3260 -t sendtargets
I receive the error:
iscsiadm: This command will remove the record [iface: default, target:
iqn.2010-05.com.example.server1:foo, portal: 192.168.1.1,3260], but a
session is using it. Logout session then rerun command to remove record.
However, I don't want to log out this first session, since its currently
in use.
How do I get round this? (Apologies if this is a really simple
question, but I can't seem to find an answer anywhere...)
Do you just want to iscsiadm to add records for new target portals? If
so then you can do
iscsiadm -m discovery -p 192.168.1.2:3260 -t sendtargets -o new
If you want to add records for new portals and delete records for
portals no longer returned by discovery (you must be logged out of these
though) you can do:
iscsiadm -m discovery -p 192.168.1.2:3260 -t sendtargets -o new -o delete
or if you just wanted to delete old unused portals that are no longer
returned by discovery you can do
iscsiadm -m discovery -p 192.168.1.2:3260 -t sendtargets -o delete
--
You received this message because you are subscribed to the Google Groups
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com.
To unsubscribe from this group, send email to
open-iscsi+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/open-iscsi?hl=en.