1820542 Members
2507 Online
109626 Solutions
New Discussion юеВ

ISCSI SETUP ON HP-UX

 
SOLVED
Go to solution
Carlo Henrico_1
Regular Advisor

ISCSI SETUP ON HP-UX

Hi All

I have been trying to read up on the forums and elsewhere but am getting more confused as I go along.

I have an HP-UX 11.23 server and have installed the iscsi initiator. We have loaned an intel-based storage system which has ISCSI on it (to do a POC). I have done all kinds of things on the HP server to try and access the storage system but am now more confused than ever.

obelix2:/ (root) $ iscsiutil -p

Discovery Target Information
----------------------------

Target # 1
-----------
IP Address : 192.169.32.182
iSCSI TCP Port : 3260
iSCSI Portal Group Tag : 1

User Configured:
----------------

Authenticaton Method : None
CHAP Method : CHAP_UNI
Initiator CHAP Name :
CHAP Secret : password1234
Header Digest : None,CRC32C
Data Digest : None,CRC32C (default)

obelix2:/ (root) $ iscsiutil -l
Initiator Name : iqn.1986-03.com.hp:obelix2.Z3dfc11f3bce85c29
Initiator Alias :

Authentication Method : None
CHAP Method : CHAP_UNI
Initiator CHAP Name :
CHAP Secret : 1qazxc1qazxc
NAS Hostname : snap711058
NAS Secret : password1234
Radius Server Hostname : snap711058
Header Digest : None,CRC32C
Data Digest : None,CRC32C (default)
SLP Scope list for iSLPD :


Please help. A step-by-step dummy guide would be appreciated please!

Thanks

Carlo
Live fast, die young - enjoy a good looking corpse!
17 REPLIES 17
Asif Sharif
Honored Contributor
Solution

Re: ISCSI SETUP ON HP-UX

Carlo Henrico_1
Regular Advisor

Re: ISCSI SETUP ON HP-UX

...this being one of the confusing pages I have been to.

Live fast, die young - enjoy a good looking corpse!
Carlo Henrico_1
Regular Advisor

Re: ISCSI SETUP ON HP-UX

...the last 2 steps being:

obelix2:/ (root) $ /usr/sbin/ioscan -H 255
H/W Path Class Description
=================================
255/0 iscsi iSCSI Virtual Node
obelix2:/ (root) $ /usr/sbin/insf -H 255
obelix2:/ (root) $ iscsiutil -p -O
obelix2:/ (root) $


No errors but no success either.
Live fast, die young - enjoy a good looking corpse!
Asif Sharif
Honored Contributor

Re: ISCSI SETUP ON HP-UX

Hi Carlo,

Same thing i have simulated on 11.31, same behavior i am getting, I am working on it, and will come back ASAP.

Regards,
Asif Sharif
Regards,
Asif Sharif
Carlo Henrico_1
Regular Advisor

Re: ISCSI SETUP ON HP-UX

Thanks!
Live fast, die young - enjoy a good looking corpse!
Asif Sharif
Honored Contributor

Re: ISCSI SETUP ON HP-UX

I rebooted the system and run these commands and my disks are showing.

#PATH=$PATH:/opt/iscsi/bin
#iscsiutil -a -I 192.168.2.105 -P 3260
#iscsiutil -p -D
#ioscan -H 255
#insf -H 255
#iscsiutil -p -O
#ioscan -fnC disk

check the iswd process is running?

# ps -ef|grep iswd

Regards,
Asif Sharif
Regards,
Asif Sharif
Carlo Henrico_1
Regular Advisor

Re: ISCSI SETUP ON HP-UX

Hi Asif

I have also done all the and that process is running.

I do however see the following in the syslog:

Oct 13 13:18:53 obelix2 vmunix: 255/0: Invalid iSCSI Name format (iqn.2008-10:dss.target0) received from the target.

Carlo
Live fast, die young - enjoy a good looking corpse!
Asif Sharif
Honored Contributor

Re: ISCSI SETUP ON HP-UX

Oct 13 13:18:53 obelix2 vmunix: 255/0: Invalid iSCSI Name format (iqn.2008-10:dss.target0) received from the target.

--> Invalid iSCSI Name format (iqn.2008-10:dss.target0)

Verify that the iSCSI Name is valid.

The iSCSI Initiator Name or iSCSI Target Name is referred to as an iSCSI Name. The iSCSI Software Initiator configures a default Initiator Name in the "iqn" format. If you have changed the Initiator Name from its default using iscsiutil and the Initiator Name is in an invalid format, iSCSI login negotiation could fail leaving target devices inaccessible from the HP-UX host.

http://docs.hp.com/en/T1452-90012/ch06s02.html
Regards,
Asif Sharif
Carlo Henrico_1
Regular Advisor

Re: ISCSI SETUP ON HP-UX

Ok, change the iqn ID and now gone a step further:
obelix2:/ (root) $ iscsiutil -p -O

Operational Target Information
------------------------------

Target # 1
-----------
Target Name : iqn.2008-10.perago.com:intelstore.target0
Target Alias :
No. of Target Addresses : 1

Target Address # 1
-------------------
IP Address : 192.169.32.182
iSCSI TCP Port : 3260
iSCSI Portal Group Tag : 1

User Configured:
----------------

Authenticaton Method : None
CHAP Method : CHAP_UNI
Initiator CHAP Name :
CHAP Secret : password1234
Header Digest : None,CRC32C
Data Digest : None,CRC32C (default)


which it did not show erlier, and no more errors in the syslog.

The next step ioscan -fnC disk still does not show it...

Any other ideas?
Live fast, die young - enjoy a good looking corpse!
Asif Sharif
Honored Contributor

Re: ISCSI SETUP ON HP-UX

post the output of this command,

# ps -ef|grep iscsi

Regards,
Asif Sharif
Regards,
Asif Sharif
Carlo Henrico_1
Regular Advisor

Re: ISCSI SETUP ON HP-UX

obelix2:/ (root) $ ps -ef | grep iscsi
root 1238 1 0 Oct 11 ? 0:00 /opt/iscsi/bin/iscsi_resolvd
root 2277 1 0 Oct 11 ? 0:00 /usr/sbin/stm/uut/bin/tools/monitor/dm_iscsi_adapter
Live fast, die young - enjoy a good looking corpse!
Carlo Henrico_1
Regular Advisor

Re: ISCSI SETUP ON HP-UX

Hi Asif

Here too is the exact output of the above commands, maybe you can determine from them which one is going wrong...

obelix2:/ (root) $ ioscan -H 255
H/W Path Class Description
=================================
255/0 iscsi iSCSI Virtual Node
obelix2:/ (root) $ insf -H 255
obelix2:/ (root) $ iscsiutil -p -O
obelix2:/ (root) $ ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
disk 3 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
obelix2:/ (root) $

Carlo
Live fast, die young - enjoy a good looking corpse!
Asif Sharif
Honored Contributor

Re: ISCSI SETUP ON HP-UX

Run this process and then try...
#/opt/iscsi/bin/iswd

# ps -ef|grep iscsi
root 5023 1 0 12:25:44 ? 0:00 /opt/iscsi/bin/iswd
root 5035 5023 0 12:25:45 ? 0:00 /opt/iscsi/bin/iswd
root 5021 1 0 12:25:44 ? 0:00 /opt/iscsi/bin/iscsi_resolvd
root 5791 1 0 12:31:40 ? 0:00 /usr/sbin/stm/uut/bin/tools/moni

Regards,
Asif Sharif
Regards,
Asif Sharif
Carlo Henrico_1
Regular Advisor

Re: ISCSI SETUP ON HP-UX

obelix2:/ (root) $ ps -ef|grep iscsi
root 1238 1 0 Oct 11 ? 0:00 /opt/iscsi/bin/iscsi_resolvd
root 2277 1 0 Oct 11 ? 0:00 /usr/sbin/stm/uut/bin/tools/monitor/dm_iscsi_adapter
root 28328 1 0 10:14:41 ? 0:00 /opt/iscsi/bin/iswd
root 28338 20850 0 10:14:51 pts/tb 0:00 grep iscsi
Live fast, die young - enjoy a good looking corpse!
Carlo Henrico_1
Regular Advisor

Re: ISCSI SETUP ON HP-UX

OK! This looks much better!

obelix2:/ (root) $ /opt/iscsi/bin/iswd
obelix2:/ (root) $ ps -ef|grep iscsi
root 1238 1 0 Oct 11 ? 0:00 /opt/iscsi/bin/iscsi_resolvd
root 2277 1 0 Oct 11 ? 0:00 /usr/sbin/stm/uut/bin/tools/monitor/dm_iscsi_adapter
root 28328 1 0 10:14:41 ? 0:00 /opt/iscsi/bin/iswd
root 28338 20850 0 10:14:51 pts/tb 0:00 grep iscsi
obelix2:/ (root) $ ioscan -H 255
H/W Path Class Description
==================================================
255/0 iscsi iSCSI Virtual Node
255/0/0.0 ext_bus iSCSI-SCSI Protocol Interface
255/0/0.0.0 target
255/0/0.0.0.1 disk iSCSI DISK
obelix2:/ (root) $ insf -H 255
insf: Installing special files for sdisk instance 4 address 255/0/0.0.0.1
obelix2:/ (root) $ iscsiutil -p -O

Operational Target Information
------------------------------

Target # 1
-----------
Target Name : iqn.2008-10.perago.com:intelstore.target0
Target Alias :
No. of Target Addresses : 1

Target Address # 1
-------------------
IP Address : 192.169.32.182
iSCSI TCP Port : 3260
iSCSI Portal Group Tag : 1

User Configured:
----------------

Authenticaton Method : None
CHAP Method : CHAP_UNI
Initiator CHAP Name :
CHAP Secret : null
Header Digest : None,CRC32C
Data Digest : None,CRC32C (default)
obelix2:/ (root) $
obelix2:/ (root) $ ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
disk 3 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
disk 4 255/0/0.0.0.1 sdisk CLAIMED DEVICE iSCSI DISK
/dev/dsk/c6t0d1 /dev/rdsk/c6t0d1
obelix2:/ (root) $


Thanks a lot for all you help. Points on their way!

Carlo
Live fast, die young - enjoy a good looking corpse!
Asif Sharif
Honored Contributor

Re: ISCSI SETUP ON HP-UX

you are most well.

Thats good, You problem has been solved.

Regards,
Asif Sharif
Regards,
Asif Sharif
Ayman-sukrab
New Member

Re: ISCSI SETUP ON HP-UX

hi all
I do all the following configurations, but when i execute ioscan -fnC disk ...i dont  find my disk
here is my configureation


NSS2:/#iscsiutil -p

Operational Target Information
------------------------------

Target # 1
-----------
        Target Name               : iqn.2013-05.com.mxp:disk1
        Target Alias              :
        No. of Target Addresses   : 1

Target Address # 1
-------------------
        IP Address                : 10.130.3.62
        iSCSI TCP Port            : 3260
        iSCSI Portal Group Tag    : 1

  User Configured:
  ----------------

        Authenticaton Method      :
        CHAP Method               : CHAP_UNI
        Initiator CHAP Name       :
        CHAP Secret               :
        Header Digest             : None,CRC32C (default)
        Data Digest               : None,CRC32C (default)

Discovery Target Information
----------------------------

Target # 1
-----------
        IP Address                : 10.130.3.62
        iSCSI TCP Port            : 3260
        iSCSI Portal Group Tag    : 1

  User Configured:
  ----------------

        Authenticaton Method      :
        CHAP Method               : CHAP_UNI
        Initiator CHAP Name       :
        CHAP Secret               :
        Header Digest             : None,CRC32C (default)
        Data Digest               : None,CRC32C (default)

Session information
-------------------

Session # 1
------------
        Session Instance No.      : 0
        ISID                      : 0x800000000000
        Session State             : Online
        Target Name               : iqn.2013-05.com.mxp:disk1
        Target Alias              :
        No. of Target Addresses   : 1

  Address # 1
  ------------
        IP Address                : 10.130.3.62
        iSCSI TCP Port            : 3260
        iSCSI Portal Group Tag    : 1

  User Configured:
  ----------------

        Authenticaton Method      :
        CHAP Method               : CHAP_UNI
        Initiator CHAP Name       :
        CHAP Secret               :
        Header Digest             : None,CRC32C (default)
        Data Digest               : None,CRC32C (default)