iscsiadm doesnt resolve hostname when used in node mode

2008-05-08 Thread Maysara

Hello,

I'm usinsg iscsiadm from iscsi-initiator-utils version
6.2.0.865-0.8.el5, and i also tried opne-iscsi 2.0.730-1etch1in a line
like this:

iscsiadm -m discovery -t sendtargets -p iscsi-storage| cut -f2 -d\ |
xargs -l -I '{}' iscsiadm -m node -T {} -p iscsi-storage -l

where iscsi-storage is defined in /etc/hosts , it fails to find iscsi-
storage in the node mode, but works fine in the discovery mode, if i
change iscsi-storage to the ip of the target in the node mode, it
works fine ... i suppose this is a bug ! no ?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: iscsiadm doesnt resolve hostname when used in node mode

2008-05-08 Thread Mike Christie

Maysara wrote:
 Hello,
 
 I'm usinsg iscsiadm from iscsi-initiator-utils version
 6.2.0.865-0.8.el5, and i also tried opne-iscsi 2.0.730-1etch1in a line
 like this:
 
 iscsiadm -m discovery -t sendtargets -p iscsi-storage| cut -f2 -d\ |
 xargs -l -I '{}' iscsiadm -m node -T {} -p iscsi-storage -l
 
 where iscsi-storage is defined in /etc/hosts , it fails to find iscsi-
 storage in the node mode, but works fine in the discovery mode, if i
 change iscsi-storage to the ip of the target in the node mode, it
 works fine ... i suppose this is a bug ! no ?

iscsiadm takes the values that are returned from discovery. It does not 
do any hostname resolution. So if the target gives us a ip address 
during discovery you have to pass iscsiadm -m node ... -l a ip address. 
If the target gives us hostnames then you have to use the hostnames it 
gave us.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: iscsiadm doesnt resolve hostname when used in node mode

2008-05-08 Thread Maysara

thank you mike, but im unable to figure out how to tell ietd what to
return, but this is probably not the right place to ask anyway :)

I have another question, would it be sane/doable to have load
distribution using that ? ie dns returns diffrent ips in a round robin
fashion ? or even simple failover ?

On May 8, 6:59 pm, Mike Christie [EMAIL PROTECTED] wrote:
 Maysara wrote:
  Hello,

  I'm usinsg iscsiadm from iscsi-initiator-utils version
  6.2.0.865-0.8.el5, and i also tried opne-iscsi 2.0.730-1etch1in a line
  like this:

  iscsiadm -m discovery -t sendtargets -p iscsi-storage| cut -f2 -d\ |
  xargs -l -I '{}' iscsiadm -m node -T {} -p iscsi-storage -l

  where iscsi-storage is defined in /etc/hosts , it fails to find iscsi-
  storage in the node mode, but works fine in the discovery mode, if i
  change iscsi-storage to the ip of the target in the node mode, it
  works fine ... i suppose this is a bug ! no ?

 iscsiadm takes the values that are returned from discovery. It does not
 do any hostname resolution. So if the target gives us a ip address
 during discovery you have to pass iscsiadm -m node ... -l a ip address.
 If the target gives us hostnames then you have to use the hostnames it
 gave us.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---