On 06/08/2015 11:45 AM, [email protected] wrote: > When open-iscsi is running with use_discoveryd=YES, one has to restart > open-iscsi when targets are added or removed:
What do you mean by target here? If whatever entity we are doing discovery to at ip 1.1.1.1 returns targetX and targetY and you remove targetY, then open-iscsi discoveryd mode should logout of targetY and delete scsi devices/LU that were accessed through it. If this is not working then send the /var/log/messages. If by target you mean you are removing what was replying to discovery requests at the IP 1.1.1.1, then it will not work as you want, because discoveryd thinks that the entity at 1.1.1.1 is just down or cannot be reached due to a network problem. You have to restart because, we do not know if the network is down temporarily or because it was deleted. I think we could add some code that limits retries though. If when you delete the entity at 1.1.1.1 that was handling discovery, returns a iscsi login error during login of the discovery session indicating that it is up, but it does not handle iscsi services any longer, then we might have a bug and you have to restart open-iscsi right now. Send me the /var/log/messages. > > 1. Add a target: > > a. iscsiadm -m discoverydb -o new -p 1.1.1.1 -t st -l > b. iscsiadm -m discoverydb -p 1.1.1.1 -t st -o update -n > discovery.sendtargets.use_discoveryd -v Yes > c. /etc/init.d/open-iscsi restart > > 2. Remove target: > > > a. iscsiadm -m discoverydb -p 1.1.1.1 -t st -o delete > > b. /etc/init.d/open-iscsi restart > > > Is there a way to have open-iscsi pick the new targets without > restarting open-iscsi, i.e. I do not want to touch any existing sessions > for targets that I didn't remove and be able to pick up new targets that > are put into the discovery mode? > > Also, is there a way to logoff a specific target with > use_discoveryd=YES. I can logoff via iscsiadm -m session, but the > session is re-established after the discoveryd poll interval. No. In this mode, we assume you want all the targets returned and are managing what you want to be logged into through the target's ACLs. > > - Tak > > -- > You received this message because you are subscribed to the Google > Groups "open-iscsi" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at http://groups.google.com/group/open-iscsi. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/open-iscsi. For more options, visit https://groups.google.com/d/optout.
