Hello Anil Rana <https://plus.google.com/u/0/112685628807227708129?prsrc=4> ,
Try this,,,,, ================================================================ Configuring iSCSI initiator ==================== SCSI uses a client-server architecture. A "client" (ie: your system) is an initiator, it initiates requests. A "server" (ie: your storage device) is a target, it has something you want and answers requests from the initiator(s). Initiators come in two varieties: software and hardware. A software initiator is just a driver that handles all requests and pairs the network interfaces driver and the SCSI drivers together to make it all work. Using a software initiator any system with an ethernet card can act as an iSCSI initiator. A hardware initiator is an iSCSI HBA, which is basically just an ethernet card with a SCSI ASIC on-board to offload all the work from the system CPU. First, install the iscsi-initiator-utils package using: # yum install iscsi-initiator-utils Next, start the iscsid service and enable it to start when the system boots: # service iscsid start # chkconfig iscsid on Then obtain a listing of available targets from a given host (please note that ipaddress listed below must be replaced with the resolvable hostname or ip address of the system providing the port if different than default): # iscsiadm -m discovery -t sendtargets -p ipaddress xxx.xxx.xxx.xxx:3260,1 iqn.2010-03.com.example:tgtd Here the "iqn.2010-03.com.example:tgtd" is the target_iqn_name. You can view the information of your target by: # iscsiadm -m node -T -p ipaddress Finally, use the following command to login to the available target (again, replace target_iqn_name with one from the output of the previous command and replace ipaddress below with that of the target system): # iscsiadm -m node -T target_iqn_name -p ipaddress -l Logging in to [iface: default, target: iqn.2010-03.com.example:tgtd, portal: xxx.xxx.xxx.xxx,3260] Login to [iface: default, target: iqn.2010-03.com.example:tgtd, portal: xxx.xxx.xxx.xxx,3260]: successful Note, you can log into all the LUNs exported on the target by running: # iscsiadm -m discovery -t st -l This will enable the target(or targets if you logged into all) to be accessed upon reboots and it stores it in a node database found in /var/lib/iscsi that is more thoroughly described in the /usr/share/doc/iscsi-initiator-utils-VERSION/README file. If you want to disable the target, you need log out by: # iscsiadm -m node -T target_iqn_name -p ipaddress -u Note, you can log out of all targets by running: # iscsiadm -m node -U all For a more verbose listing of possible options for the iscsiadm command in Red Hat Enterprise Linux 5 refer to the manual page using: # man iscsiadm For a good overview of iSCSI in Red Hat Enterprise Linux 5 refer to the documentation provided in /usr/share/doc/iscsi-initiator-utils-VERSION/README. try:) ================================================================ On Tue, Feb 4, 2014 at 10:48 AM, Michael Christie <[email protected]>wrote: > > On Jan 30, 2014, at 7:40 PM, [email protected] wrote: > > root@Blade15:~# iscsid -f -d 8 > > iscsid: sysfs_init: sysfs_path='/sys' > > > > iscsid: sysfs_attr_get_value: open > '/module/scsi_transport_iscsi'/'version' > > > > iscsid: sysfs_attr_get_value: new uncached attribute > '/sys/module/scsi_transport_iscsi/version' > > > > iscsid: sysfs_attr_get_value: add to cache > '/sys/module/scsi_transport_iscsi/version' > > > > iscsid: sysfs_attr_get_value: cache > '/sys/module/scsi_transport_iscsi/version' with attribute value '2.0-870' > > > > iscsid: transport class version 2.0-870. iscsid version 2.0-871 > > iscsid: Can not bind IPC socket > > iscsid: in ctldev_close > > > You should kill all the iscsid instances then run that command. The above > message means iscsid did not start. > Without iscsid nothing will work. It could be it was already started. > > > > > > > > > > root@Blade15:~# iscsiadm -m node -T > iqn.1986-03.com.hp:storage.p2000g3.13351a9162 -p 10.10.30.1:3260 --login > > Logging in to [iface: iface2, target: > iqn.1986-03.com.hp:storage.p2000g3.13351a9162, portal: 10.10.30.1,3260] > > Logging in to [iface: iface4, target: > iqn.1986-03.com.hp:storage.p2000g3.13351a9162, portal: 10.10.30.1,3260] > > iscsiadm: Could not login to [iface: iface2, target: > iqn.1986-03.com.hp:storage.p2000g3.13351a9162, portal: 10.10.30.1,3260]: > > iscsiadm: initiator reported error (5 - encountered iSCSI login failure) > > iscsiadm: Could not login to [iface: iface4, target: > iqn.1986-03.com.hp:storage.p2000g3.13351a9162, portal: 10.10.30.1,3260]: > > iscsiadm: initiator reported error (5 - encountered iSCSI login failure) > > > > > When you run that command send the /var/log/messages and also the iscsid > output. > > Also run iscsiadm with -d 8. > > And does it work with just the defaults iface? Does it just not work when > trying to setup your own faces? > > -- > 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/groups/opt_out. > -- *.* -- 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/groups/opt_out.
