Operating System - HP-UX
1826373 Members
5141 Online
109692 Solutions
New Discussion

HPUX 11.31 ioscan not showing disks

 
SOLVED
Go to solution
Roy Augustine
Advisor

HPUX 11.31 ioscan not showing disks

Hi,

Newbie on HPUX..

Our rp3410 running HPUX 11.31 is not showing any disks when i run "ioscan -fnC disk" (this machine has two scsi disks)
----------------------
bhpux1131_old# ioscan -fnC disk
bhpux1131_old#
----------------------

but i can see the disks using diskinfo..

----------------------

bhpux1131_old# diskinfo /dev/rdisk/disk6
SCSI describe of /dev/rdisk/disk6:
vendor: HP 146 G
product id: MAT3147NC
type: direct access
size: 143374744 Kbytes
bytes per sector: 512
bhpux1131_old#
----------------------

The output of "ioscan -f" is attached..

Please could someone help me to figure out why ioscan is not showing any didks?

Thanks,
Roy
21 REPLIES 21
Jeeshan
Honored Contributor

Re: HPUX 11.31 ioscan not showing disks

Hi roy

how do you know you have disk6?

try to run insf -e , it will reinstall your hardware driver.

then run

#ioscan -fnC disk
a warrior never quits
sreekanthtm
Trusted Contributor

Re: HPUX 11.31 ioscan not showing disks

First run simple ioscan command then insf...
#ioscan
#insf
#insf -e -C disk
Then try....
Rgds
Sreekanth
Roy Augustine
Advisor

Re: HPUX 11.31 ioscan not showing disks

Ashan,

I know it has two scsi disks because I have have physical access tothe system.. Recently I added one more disk and did ioscan to see if the system detected the new disk.. then only I noticed it is not showing any disks...

I went to /dev/rdisk to see if any device files are there, and it is.
Roy Augustine
Advisor

Re: HPUX 11.31 ioscan not showing disks

insf -e ("insf -e -C disk" also )gives the below output. but still ioscan is not showing the disks...
Roy Augustine
Advisor

Re: HPUX 11.31 ioscan not showing disks

output of "insf -e -C disk" follows...

insf: Installing special files for esdisk instance 4 address 64000/0xfa00/0x0
insf: Installing special files for esdisk instance 6 address 64000/0xfa00/0x2
insf: Installing special files for esdisk instance 7 address 64000/0xfa00/0x3
Jeeshan
Honored Contributor

Re: HPUX 11.31 ioscan not showing disks

alright!!!

then try to run insf then insf -e and run ioscan -fnC disk.
a warrior never quits
Roy Augustine
Advisor

Re: HPUX 11.31 ioscan not showing disks

Thank you for the reply...

even after "insf" and "insf -e -C disk", ioscan still not shows the disks...

Re: HPUX 11.31 ioscan not showing disks

Have you ran "insf -e" or insf -eC disk"

Try this :

1) insf -e
2) ioscan -fnCdisk
Torsten.
Acclaimed Contributor

Re: HPUX 11.31 ioscan not showing disks

If I read the "ioscan -f" output and this

bhpux1131_old# ioscan -fnC disk
bhpux1131_old#


it looks really strange.
IMHO any "insf" stuff will not help here, because you don't even see the devices (no need to worry about device files yet)!


First I would check is "ioscan" itself:

# type ioscan

Perhaps someone has bring a script in place?

# type ioscan
ioscan is /usr/sbin/ioscan

# file /usr/sbin/ioscan
/usr/sbin/ioscan: PA-RISC1.1 shared executable -not stripped



Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Roy Augustine
Advisor

Re: HPUX 11.31 ioscan not showing disks

Thanks for the suggestion Torsten,

I got the below output..

--------------------------------------
bhpux1131_old# type ioscan
ioscan is /usr/sbin/ioscan
bhpux1131_old# file /usr/sbin/ioscan
/usr/sbin/ioscan: PA-RISC1.1 shared executable -not stripped
bhpux1131_old#
--------------------------------------
on the same machine whe I executed "setboot" I got the below results..
---------------------------------
bhpux1131_old# setboot
Primary bootpath : 0/1/1/1.0x2.0x0 (/dev/rdisk/disk7)
Alternate bootpath : 0/0/2/0.0.0x0.0x0 (/dev/rdisk/disk4)

Autoboot is ON (enabled)
Autosearch is ON (enabled)

bhpux1131_old#
----------------------------------

then I did scan on that H/W path and I got,
----------------------------------
bhpux1131_old# ioscan -H 0/1/1/1
H/W Path Class Description
=======================================
0/1/1/1 ext_bus SCSI C1010 Ultra160 Wide LVD
bhpux1131_old#

bhpux1131_old# ioscan -H 0/1/1/1.0x2.0x0
bhpux1131_old#


Thanks,
Roy
Solution

Re: HPUX 11.31 ioscan not showing disks

Roy,

What happens if you select just the new agile view from ioscan

ioscan -fnNC disk

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Roy Augustine
Advisor

Re: HPUX 11.31 ioscan not showing disks

Thank you Duncan!!

running 'ioscan -fnNC disk' gives the below output on the machine, which shows the disks..

bhpux1131_old# ioscan -fnNC disk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 4 64000/0xfa00/0x0 esdisk CLAIMED DEVICE TEAC DV-28E-C
/dev/disk/disk4 /dev/rdisk/disk4
disk 6 64000/0xfa00/0x2 esdisk CLAIMED DEVICE HP 146 GMAT3147NC
/dev/disk/disk6 /dev/rdisk/disk6
disk 7 64000/0xfa00/0x3 esdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/disk/disk7 /dev/rdisk/disk7
bhpux1131_old#

Still curious to know why normal "ioscan -f" is not displaying the disks... Is it an expected behavior is 11.31 ?

nyways, thanks for pointing me to the correct command...
Torsten.
Acclaimed Contributor

Re: HPUX 11.31 ioscan not showing disks

strange ...


Something is really wrong with this system.

This is not expected behaviour!

From a similar system (same OS):

#ioscan -f
Class I H/W Path Driver S/W State H/W Type Description
==============================================================================
...
ext_bus 2 0/1/1/0 c8xx CLAIMED INTERFACE SCSI C1010 Ultra160 Wide LVD
target 1 0/1/1/0.0 tgt CLAIMED DEVICE
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
target 0 0/1/1/0.1 tgt CLAIMED DEVICE
disk 0 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 36.4GMAS3367NC
...


#ioscan -t
Thu Apr 17 12:05:38 2008

#ioscan -m dsf
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk5 /dev/rdsk/c2t0d0
/dev/rdisk/disk6 /dev/rdsk/c3t2d0
/dev/rdisk/disk7 /dev/rdsk/c0t0d0
/dev/rdisk/disk32 /dev/rdsk/c2t1d0


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Roy Augustine
Advisor

Re: HPUX 11.31 ioscan not showing disks

Hi Torsten,

Me too think the same - there is something wrong with this machine... I checked all other 11.31 machines we have.. all these machines are showing disks in the "ioscan -f" output. But none of those machines are rp3410 (the model on which I'm facing this issue).

Anybody out there who has rp3410 running 11.31, please check if normal ioscan shows disks...

one more thing I noticed is the difference in the H/W path. in all other machines it shows something like 01/2/3/4.0.0 but only in this machine (rp3410) the H/W path for disks are shown as 64000/0xfa00/0x0

Roy

Torsten.
Acclaimed Contributor

Re: HPUX 11.31 ioscan not showing disks

I run the commands on a rp3440 (very similar system) - of course it should show the disks like on every other system.

The different format is the new layout vs. the legacy. Different options for ioscan (e.g. -N) will produce different output.

I would consider to "repair" the system by doing new install - who knows what else is wrong now...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Pete Randall
Outstanding Contributor

Re: HPUX 11.31 ioscan not showing disks

Roy,

The hardware path differences you noted are due to the agile view showing the persistent device file rather than the legacy device file. See the man page for intro(7):

"A persistent device special file is associated with a LUN hardware path, and thus transparently supports agile addressing and multipathing.
.
.
.
A legacy device special file is locked to a particular physical hardware path, and does not support agile addressing. Such a device special file contains hardware path information such as SCSI bus, target, and LUN in the device file name and minor number. Specifically, the class and instance portions of the device special file name indicate hardware path information and are in the format c#t#d#"


Pete

Pete

Re: HPUX 11.31 ioscan not showing disks

Roy,

Chechk that the sdisk device driver is in the kernel (I can't believe it won't be though):

kcmodule -v sdisk

Is tjere actually anything in the /dev/[r]dsk/ directories?

ls /dev/*dsk/*
lssf /dev/*dsk/*

HTH

Duncan

I am an HPE Employee
Accept or Kudo

Re: HPUX 11.31 ioscan not showing disks

Roy,

Think I have it figured out now - see p12 of this whitepaper:

http://docs.hp.com/en/dsfmigration/persistent_dsf_migration.pdf

The section entitled "Disable Legacy DSFs"

I'm guessing that someone has run:

rmsf -L

You can check whether this is the case by running:

insf -L -v

If it states that Legacy mode is disabled, then I'm right.

Seems you can re-enable legacy DSFs using:

insf -L

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Torsten.
Acclaimed Contributor

Re: HPUX 11.31 ioscan not showing disks

Duncan, I think you hit it...

# ioscan -fnCdisk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 3 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-C
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 0 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 36.4GMAS3367NC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
disk 2 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
# rmsf -L
WARNING: This command may be disruptive to the system.
Before running this command, make sure you have first run
iofind(1M) and migrated all applications using legacy device
special files. Please refer to the man page of rmsf(1M) to
verify the possible side effects of the option '-L'.
Do you want to continue ?
(You must respond with 'y' or 'n'.): y
rmsf: Legacy mode has been successfully disabled
# ioscan -fnCdisk
#
# insf -L -v
insf: Legacy mode is disabled
# insf -L
This command will re-install all legacy I/O nodes and legacy DSFs.
Do you want to continue ?
(You must respond with 'y' or 'n'.): y
insf: Legacy mode has been successfully enabled
# ioscan -fnCdisk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 3 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-C
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 0 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 36.4GMAS3367NC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
disk 2 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
#



... no need to re-install ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Roy Augustine
Advisor

Re: HPUX 11.31 ioscan not showing disks

Many Thanks Duncan! and all others..

See the below output..

bhpux1131_old# kcmodule -v sdisk
Module sdisk (1.0)
Description Legacy SCSI disk driver
Timestamp Wed Aug 2 04:04:09 2006 [44CFD6E1]
State static (best state)
State at Next Boot static (best state)
Capable static unused
Depends On module esdisk:0.0.0
interface HPUX_11_31_PERF:1.0

bhpux1131_old# ioscan -fnC disk
bhpux1131_old# insf -L -v
insf: Legacy mode disabled
bhpux1131_old# insf -L
bhpux1131_old# 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-C
disk 2 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GMAT3147NC
disk 3 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
bhpux1131_old#


So it was because the 'Legacy Mode' was disabled in this system.

Thank You very much for putting your efforts and valuable time in finding the root cause of this issue.

(Sorry for being very late to reply...)

Thanks,
Roy
Roy Augustine
Advisor

Re: HPUX 11.31 ioscan not showing disks

This issue was because the "Legacy Mode" was disabled in this particular system. once that is enabled, 'ioscan -fnC disk' is now showing the disks in the system.

Thanks everyone for the Support.