System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

hardware address not shown in ioscan output

 
SOLVED
Go to solution
rajesh73
Super Advisor

hardware address not shown in ioscan output

$/usr/local/bin/sudo ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
tape 2 0/1/1/0.3.0 stape NO_HW DEVICE HP Ultrium 2-SCSI
/dev/rmt/2m /dev/rmt/2mn /dev/rmt/c2t3d0BEST /dev/rmt/c2t3d0BESTn
/dev/rmt/2mb /dev/rmt/2mnb /dev/rmt/c2t3d0BESTb /dev/rmt/c2t3d0BESTnb
tape 6 0/1/2/0.1.4.0.0.0.2 stape CLAIMED DEVICE HP Ultrium 2-SCSI
tape 7 0/1/2/0.1.4.0.0.0.3 stape CLAIMED DEVICE HP Ultrium 2-SCSI
tape 8 0/1/2/0.1.4.0.0.1.2 stape CLAIMED DEVICE HP Ultrium 2-SCSI

the above command output why hardware address not shown
8 REPLIES
Manix
Honored Contributor
Solution

Re: hardware address not shown in ioscan output

>> the above command output why hardware address not shown

tape 2 0/1/1/0.3.0 stape >>NO_HW >>DEVICE HP Ultrium 2-SCSI

Hello Rajesh,
Please check hardware for tape2 is not detectedwhere as hw_path is clearly mentioned.

Check if it`s connected & properly.
try insf -eC

Thanks
Manix

HP-UX been always lovable - Mani Kalra
Jorge Pons
Trusted Contributor

Re: hardware address not shown in ioscan output

Hi

The HW Address is the third field... 0/1/1/0.3...?

What do you need?

Regards, Jorge



rajesh73
Super Advisor

Re: hardware address not shown in ioscan output

Hi,


i am asking the second one hardware address


tape 6 0/1/2/0.1.4.0.0.0.2 stape CLAIMED DEVICE HP Ultrium 2-SCSI
Jorge Pons
Trusted Contributor

Re: hardware address not shown in ioscan output

Hi

Tape 6,7 and 8 have no device files. It will be created with "insf"

Regards, Jorge
rajesh73
Super Advisor

Re: hardware address not shown in ioscan output

Hi,

sorry not for hardware address ,that is tape drive path (example:/dev/rmt/87mn)
rajesh73
Super Advisor

Re: hardware address not shown in ioscan output

this insf command disturb any storage mounted file system ?

Manix
Honored Contributor

Re: hardware address not shown in ioscan output

you may run insf -eH it will recreate files for that path only , i don`t think that it harm anything as device instances are already assigned and it will recreate device files for the same paths .
HP-UX been always lovable - Mani Kalra
Pete Randall
Outstanding Contributor

Re: hardware address not shown in ioscan output

No insf will not disturb anything. If you are unhappy with the device file names that insf gives you, I offer the following instructions on how to change them:



First, let me echo Bill Hassell in saying you can simply rename the existing device file. There is no significance other than historical to the device names as we know them.

Second, if you're still nervous about it, you can use a link - linking the undesired name to the preferred name.

Third, if you really want to re-create the device names properly, here is a guide:

1. Use "ioscan" to find out what the current device files look like and what the instance number is:
ioscan -kfnCtape


2. Use "mksf" to create each of the four types of device files:

/sbin/mksf -d stape -I 12 -a -b BEST rmt/12m
/sbin/mksf -d stape -I 12 -u -b BEST rmt/12mb
/sbin/mksf -d stape -I 12 -a -n -b BEST rmt/12mn
/sbin/mksf -d stape -I 12 -u -n -b BEST rmt/12mnb


3. Use "ll" to compare your newly created device files with those created by the system. Major and minor numbers should match between corresponding entries (205 0x061000 for both 12m and the equivalent c6t1d0BEST):

ll /dev/rmt |more

crw-rw-rw 1 bin bin 205 0x061000 Mar 17 08:40 12m
.
.
.
crw-rw-rw 1 bin bin 205 0x061000 Mar 17 08:40 c6t1d0BEST
.
.
.



4. repeat the ioscan to double check that your new device files are associated with the correct tape drive:

ioscan -kfnCtape



I was using 12m in the example but you can use anything you want.


Pete

Pete