Operating System - HP-UX
1823753 Members
3962 Online
109664 Solutions
New Discussion юеВ

how to make iscsi disk offline

 

how to make iscsi disk offline

Hi,

I am using HP-UX 11.11 and installed iscsi
B.11.11.03e.

I have discovered and mounted iscsi disk using iscsiutil and ioscan.
I have deleted the discovery address using
#iscsiutil -d -I IP_ADDRESS.

In iscsiutil -pS, it is still showing session state as online.

Session # 3
------------
Session Instance No. : 3
ISID : 0x800000000003
Session State : Online

How to make that session state "Offline".?
4 REPLIES 4
Elmar P. Kolkman
Honored Contributor

Re: how to make iscsi disk offline

Have you tried rmsf ?
You can run it with the hardware address from ioscan:

# ioscan -fC disk
# rmsf -H

You might also try the -r option for iscsiutil. Or if you don't have other iscsi connections in use, do a restart of the iscsi driver.
Every problem has at least one solution. Only some solutions are harder to find.

Re: how to make iscsi disk offline

its working now. Now the session state shows offline. But for ioscan command it is still showing iscsi disk entries.

ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 0 10/0/14/0.0.0 sdisk CLAIMED DEVICE MITSUMI CD-ROM FX4830T!B
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 10/0/15/0.5.0 sdisk CLAIMED DEVICE HP 18.2GST318406LC
/dev/dsk/c2t5d0 /dev/rdsk/c2t5d0
disk 2 10/0/15/0.6.0 sdisk CLAIMED DEVICE HP 18.2GST318406LC
/dev/dsk/c2t6d0 /dev/rdsk/c2t6d0
disk 4 255/0/1.0.0.0 sdisk NO_HW DEVICE xxxiSCSIDisk
/dev/dsk/c4t0d0 /dev/rdsk/c4t0d0
disk 5 255/0/2.0.0.0 sdisk NO_HW DEVICE xxxiSCSIDisk
/dev/dsk/c5t0d0 /dev/rdsk/c5t0d0
disk 6 255/0/3.0.0.0 sdisk NO_HW DEVICE xxxiSCSIDisk
/dev/dsk/c6t0d0 /dev/rdsk/c6t0d0


Why those entries are still there?
There are no operational targets now. I also deleted iscsi discovery address.

If i use rmsf to delete those entries. I could not discover targets any more. I had to remove iscsi and install it again...

Elmar P. Kolkman
Honored Contributor

Re: how to make iscsi disk offline

rmsf -H 255/0/1.0.0.0 should work... It has done so for me in the past...

The NO_HW already indicates the disk is no longer available.
Every problem has at least one solution. Only some solutions are harder to find.

Re: how to make iscsi disk offline

Yes, its working with -H option. Thanks for your quick response.