Operating System - HP-UX
1850389 Members
2235 Online
104054 Solutions
New Discussion

ioscan missing device files

 
SOLVED
Go to solution
Ian Dennison_1
Honored Contributor

ioscan missing device files

I am trying to recreate device files for SAN Tape devices (LTO2) but the "insf -H [id]" command does not want to work. I did an "insf -e" and now cannot get any /dev/rmt/99mn device files back. Combining this with an "rmsf" also does not work.

Any suggestions from anyone? Thanks, Ian
Building a dumber user
9 REPLIES 9
Victor BERRIDGE
Honored Contributor

Re: ioscan missing device files

Hi Ian,
It may be a silly question, after ioscan do you see the devices?

All the best
Victor
R.O.
Esteemed Contributor

Re: ioscan missing device files

Hi,

Have you tried to recreate it :

mknod /dev/rmnt/0m c 205 0x010000

and then in /dev/mnt, with "b" instead of "c". The 205 is the driver ofr the tape devices, the "0x010000" is an example; put the correct one.

Hope this helps,

Regards,
"When you look into an abyss, the abyss also looks into you"
Bharat Katkar
Honored Contributor

Re: ioscan missing device files

Hi,
What did you see in "ioscan -fnC tape" ?
How many Tape devices you have?

Regards,
You need to know a lot to actually know how little you know
Ian Dennison_1
Honored Contributor

Re: ioscan missing device files

Victor / RO

Thanks for the quick replies.

The devices do appear in the "ioscan -fn" output, they are however missing the /dev/rmt/[99]mn device files. Enclosed is an example

tape 3 0/0/10/1/0.10.8.255.0.0.1 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/c9t0d1BEST /dev/rmt/c9t0d1BESTb /dev/rmt/c9t0d1BESTn /dev/rmt/c9t0d1BESTnb
tape 4 0/0/10/1/0.10.8.255.0.0.2 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/c9t0d2BEST /dev/rmt/c9t0d2BESTb /dev/rmt/c9t0d2BESTn /dev/rmt/c9t0d2BESTnb

The device files also exist in /dev/rmt/*mn, but do not seem to associate themselves to the files in the ioscan.

Thanks for your input so far, Ian
Building a dumber user
Ian Dennison_1
Honored Contributor

Re: ioscan missing device files

Bharat,

Good point, I should have included the contents of "ioscan -fnC tape".

here it is,...

tw01n0v3:/> cat /tmp/ioscan.fntape
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
tape 0 0/0/8/1/0/1/0.0.0 stape CLAIMED DEVICE HP C5683A
/dev/rmt/0m /dev/rmt/0mnb /dev/rmt/c2t0d0BESTn /dev/rmt/c2t0d0DDSb
/dev/rmt/0mb /dev/rmt/c2t0d0BEST /dev/rmt/c2t0d0BESTnb /dev/rmt/c2t0d0DDSn
/dev/rmt/0mn /dev/rmt/c2t0d0BESTb /dev/rmt/c2t0d0DDS /dev/rmt/c2t0d0DDSnb
tape 1 0/0/10/1/0.10.7.255.0.0.0 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/c8t0d0BEST /dev/rmt/c8t0d0BESTb /dev/rmt/c8t0d0BESTn /dev/rmt/c8t0d0BESTnb
tape 2 0/0/10/1/0.10.7.255.0.0.1 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/5m /dev/rmt/5mn /dev/rmt/c8t0d1BEST /dev/rmt/c8t0d1BESTn
/dev/rmt/5mb /dev/rmt/5mnb /dev/rmt/c8t0d1BESTb /dev/rmt/c8t0d1BESTnb
tape 3 0/0/10/1/0.10.8.255.0.0.1 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/c9t0d1BEST /dev/rmt/c9t0d1BESTb /dev/rmt/c9t0d1BESTn /dev/rmt/c9t0d1BESTnb
tape 4 0/0/10/1/0.10.8.255.0.0.2 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/c9t0d2BEST /dev/rmt/c9t0d2BESTb /dev/rmt/c9t0d2BESTn /dev/rmt/c9t0d2BESTnb
tape 5 0/0/10/1/1.11.7.255.0.0.0 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/c14t0d0BEST /dev/rmt/c14t0d0BESTb /dev/rmt/c14t0d0BESTn /dev/rmt/c14t0d0BESTnb
tape 6 0/0/10/1/1.11.7.255.0.0.1 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/c14t0d1BEST /dev/rmt/c14t0d1BESTb /dev/rmt/c14t0d1BESTn /dev/rmt/c14t0d1BESTnb
tw01n0v3:/>

Cheers, Ian
Building a dumber user
Bharat Katkar
Honored Contributor

Re: ioscan missing device files

Hi Ian,
"insf -e" should have worked for you.
Just to confirm, see if all your drives are powered ON and cabled properly to connect to the SYstem. Then try doing again:

# insf -e

This should not be harmful and this has worked for me always.
Regards,
Bharat
You need to know a lot to actually know how little you know
Michael Tully
Honored Contributor
Solution

Re: ioscan missing device files

It is absolutely safe to run insf -e

There used to be problems in older versions (9.x) for memory that created devices in the current directory, so you had to run it from /dev

Why not remove the whole path to device and start again?
Anyone for a Mutiny ?

Re: ioscan missing device files

Ian,

I've a vague memory that if *one* device file exists for a tape, insf -e doesn't create any others. SO for those devices that only seem to have a cXtYdZ device file, try rmsf'ing those devices (and even just rm if rmsf won't get rid of them) and then check you have *no* device files for the given devices with ioscan -funCtape, then insf -e again.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Ian Dennison_1
Honored Contributor

Re: ioscan missing device files

Micheal and Duncan,

You both hit it on the head - I needed to delete the old "/dev/rmt/[99][mnb]" files using "rmsf /dev/rmt/1m" etc, before performing an "ioscan -fn", an "insf -e" then re-creating my device links!

Most excellent thanks gents, 10 points each! Posting closed!

Share and Enjoy! Ian
Building a dumber user