Hello,

What's the difference between discovery and discoverydb modes?

The man page for the iscsiadm gives no explanation. The 
http://www.open-iscsi.org/docs/README gives the following description:

-m discoverydb --type=[type] --interface=[iface...] --portal=[ip:port] 
--print=[N] --op=[op]=[NEW | UPDATE | DELETE | NONPERSISTENT] --discover
*This command will use the discovery record settings* matching the record 
with type=type and portal=ip:port]. If a record does not exist, it 
will create a record using the iscsid.conf discovery settings.

-m discovery --type=[type] --interface=iscsi_ifacename --portal=[ip:port] 
--login --print=[N] --op=[op]=[NEW | UPDATE | DELETE | NONPERSISTENT]
Perform [type] discovery for target portal with ip-address [ip] and port 
[port].
*This command will not use the discovery record settings.* It will use the 
iscsid.conf discovery settings and it will overwrite the discovery record 
with iscsid.conf discovery settings if it exists. By default, it will then 
remove records for portals no longer returned. And, if a portal is returned 
by the target, then the discovery command will create a new record or 
modify an existing one with values from iscsi.conf and the command line.

The difference seems to be that the first one will use, and the second one 
will not use the discovery record settings. If that's the only difference, 
then can someone please elaborate on this? What are the discovery record 
settings? Is it iscsid.conf settings? What does it practically mean for the 
command to not use the discovery settings? What settings will it use then?

I found that the following two commands seemingly do the same things 
(perform target discovery). Are they actually anyhow functionally different?
iscsiadm -m discovery -t st -p 127.0.0.1
iscsiadm -m discoverydb -t st -p 127.0.0.1 --discover

For me it seems that discovery mode is an obsolete precursor of the 
discoverydb mode left there for compatibility purposes, but not cleaned 
from the man page and readme file.

Thanks,
Oleg

-- 
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.

Reply via email to