Operating System - HP-UX
1752691 Members
5635 Online
108789 Solutions
New Discussion юеВ

Re: Iscsiutil and the "ghost" iscsi server

 
SOLVED
Go to solution
uxbeginner22
Trusted Contributor

Iscsiutil and the "ghost" iscsi server

 

I see on startup hp-ux try to initalize iscsi client.

But the server iscsi was removed some years ago.

The command iscsiutil -pv return

 

/opt/iscsi/bin/iscsiutil -pv

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

Session # 1
------------
        Session Instance No.      : 1
        ISID                      : 0x000000000000
        Session State             : Offline
        Target Name               : nameoftarget
        Target Alias              : 
        No. of Target Addresses   : 1

  Address # 1
  ------------
        IP Address                : 192.168.0.12
        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 # 2
------------
        Session Instance No.      : 0
        ISID                      : 0x000000000000
        Session State             : Offline
        Target Name               : nameoftarget
        Target Alias              : 
        No. of Target Addresses   : 1

  Address # 1
  ------------
        IP Address                : 192.168.0.12
        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)

 

 

So I try to remove it and..

 

/opt/iscsi/bin/iscsiutil -d -I 192.168.0.12 -P 3260
iscsiutil: Delete failed.  The target address "192.168.0.12:3260,1" is not present in the driver repository: Invalid argument

 

The question is: how to remove the "ghost" server?

 

3 REPLIES 3
Bill Hassell
Honored Contributor

Re: Iscsiutil and the "ghost" iscsi server

Just remove the iscsi startup script in /sbin/init.d.



Bill Hassell, sysadmin
uxbeginner22
Trusted Contributor
Solution

Re: Iscsiutil and the "ghost" iscsi server

I prefer this

sudo mv  /sbin/rc2.d/S532iscsi /sbin/rc2.d/s532iscsi



Is a workaround and not a solution..but is working

Bill Hassell
Honored Contributor

Re: Iscsiutil and the "ghost" iscsi server

You might this more useful:

sudo mv  /sbin/rc2.d/S532iscsi /sbin/rc2.d/..S532iscsi

By prepending the dots, all the disabled scripts remain unchanged but can easily be seen in an ls/ll command. 



Bill Hassell, sysadmin