cancel
Showing results for 
Search instead for 
Did you mean: 

Missing device files

SOLVED
Go to solution
Kwahae_1
Regular Advisor

Missing device files

I am running HP-UX 11i v1 on an rp4440 with a tape drive on  "0  0/5/1/0.3.0    stape     CLAIMED     DEVICE HP Ultrium 3-SCSI". ioscan fnCtape produces the following output:

 

tape        0  0/5/1/0.3.0    stape     CLAIMED     DEVICE       HP      Ultrium                                      3-SCSI
                             /dev/rmt/c7t3d0BEST    /dev/rmt/c7t3d0BESTn
                             /dev/rmt/c7t3d0BESTb   /dev/rmt/c7t3d0BESTnb
I have a utility that requires /dev/rmt/0m but this does not appear as a device file in ioscan. I tried insf -e to no avail. Please advise on how I can recreate the missing device file.  I can lssf /dev/rmt/0m without a problem.

 

Thank you for the help.

 

 

6 REPLIES
donna hofmeister
Trusted Contributor
Solution

Re: Missing device files

what are the results of

  • ll /dev/rmt/
  • ioscan -fnC tape
Pete Randall
Outstanding Contributor

Re: Missing device files

You can simply rename the existing device files (mv /dev/rmt/c7t3d0BESTn /dev/rmt/0mn, for example) or use a symbolic link.


Pete
rariasn
Honored Contributor

Re: Missing device files

Hi:

 

man 1m mknod

 

Sample format:

 

# ll c3t0*

 

crw-rw-rw-   2 bin        bin        205 0x030000 Jul 27  2010 c3t0d0BEST          <--- /dev/rmt/0m

crw-rw-rw-   2 bin        bin        205 0x030080 Jul 27  2010 c3t0d0BESTb       <--- /dev/rmt/0mb

crw-rw-rw-   2 bin        bin        205 0x030040 Jul 27  2010 c3t0d0BESTn       <--- /dev/rmt/0mn

crw-rw-rw-   2 bin        bin        205 0x0300c0 Jul 27  2010 c3t0d0BESTnb     <--- /dev/rmt/0mnb

 

# mknod /dev/rmt/0m c 205 0x030000

# chonw bin:bin /dev/rmt/0m

# chmod 666 /dev/rmt/0mn

 

# mknod /dev/rmt/0mnb c 205 0x030080

...

 

rgs

Kwahae_1
Regular Advisor

Re: Missing device files

Sorry I wasnt available. Results for ll are as follows:

 

# ll /dev/rmt/*
crw-rw-rw-   1 bin        bin        205 0x081000 Oct 23  2010 /dev/rmt/0m
crw-rw-rw-   1 bin        bin        205 0x081080 Mar 14  2006 /dev/rmt/0mb
crw-rw-rw-   1 bin        bin        205 0x081040 Aug 16  2008 /dev/rmt/0mn
crw-rw-rw-   1 bin        bin        205 0x0810c0 Mar 14  2006 /dev/rmt/0mnb
crw-rw-rw-   2 bin        bin        205 0x075000 Aug  8  2009 /dev/rmt/1m
crw-rw-rw-   2 bin        bin        205 0x075080 Jul 31  2009 /dev/rmt/1mb
crw-rw-rw-   2 bin        bin        205 0x075040 Jul 31  2009 /dev/rmt/1mn
crw-rw-rw-   2 bin        bin        205 0x0750c0 Jul 31  2009 /dev/rmt/1mnb
crw-rw-rw-   2 bin        bin        205 0x063000 Jul 13 05:38 /dev/rmt/2m
crw-rw-rw-   2 bin        bin        205 0x063080 Nov  1  2010 /dev/rmt/2mb
crw-rw-rw-   2 bin        bin        205 0x063040 Nov  1  2010 /dev/rmt/2mn
crw-rw-rw-   2 bin        bin        205 0x0630c0 Nov  1  2010 /dev/rmt/2mnb
crw-rw-rw-   2 bin        bin        205 0x065000 Jan 20  2011 /dev/rmt/3m
crw-rw-rw-   2 bin        bin        205 0x065080 Jan 20  2011 /dev/rmt/3mb
crw-rw-rw-   2 bin        bin        205 0x065040 Jan 20  2011 /dev/rmt/3mn
crw-rw-rw-   2 bin        bin        205 0x0650c0 Jan 20  2011 /dev/rmt/3mnb
crw-rw-rw-   1 bin        bin        205 0x053000 Jul 29 10:24 /dev/rmt/c5t3d0BEST
crw-rw-rw-   1 bin        bin        205 0x053080 Jul 29 10:24 /dev/rmt/c5t3d0BESTb
crw-rw-rw-   1 bin        bin        205 0x053040 Jul 29 10:24 /dev/rmt/c5t3d0BESTn
crw-rw-rw-   1 bin        bin        205 0x0530c0 Jul 29 10:24 /dev/rmt/c5t3d0BESTnb
crw-rw-rw-   2 bin        bin        205 0x063000 Jul 13 05:38 /dev/rmt/c6t3d0BEST
crw-rw-rw-   2 bin        bin        205 0x063080 Nov  1  2010 /dev/rmt/c6t3d0BESTb
crw-rw-rw-   2 bin        bin        205 0x063040 Nov  1  2010 /dev/rmt/c6t3d0BESTn
crw-rw-rw-   2 bin        bin        205 0x0630c0 Nov  1  2010 /dev/rmt/c6t3d0BESTnb
crw-rw-rw-   2 bin        bin        205 0x065000 Jan 20  2011 /dev/rmt/c6t5d0BEST
crw-rw-rw-   2 bin        bin        205 0x065080 Jan 20  2011 /dev/rmt/c6t5d0BESTb
crw-rw-rw-   2 bin        bin        205 0x065040 Jan 20  2011 /dev/rmt/c6t5d0BESTn
crw-rw-rw-   2 bin        bin        205 0x0650c0 Jan 20  2011 /dev/rmt/c6t5d0BESTnb
crw-rw-rw-   1 bin        bin        205 0x073000 Jul 30 09:34 /dev/rmt/c7t3d0BEST
crw-rw-rw-   1 bin        bin        205 0x073080 Jun 27 18:56 /dev/rmt/c7t3d0BESTb
crw-rw-rw-   1 bin        bin        205 0x073040 Jul 29 13:12 /dev/rmt/c7t3d0BESTn
crw-rw-rw-   1 bin        bin        205 0x0730c0 Jun 27 18:56 /dev/rmt/c7t3d0BESTnb
crw-rw-rw-   2 bin        bin        205 0x075000 Aug  8  2009 /dev/rmt/c7t5d0BEST
crw-rw-rw-   2 bin        bin        205 0x075080 Jul 31  2009 /dev/rmt/c7t5d0BESTb
crw-rw-rw-   2 bin        bin        205 0x075040 Jul 31  2009 /dev/rmt/c7t5d0BESTn
crw-rw-rw-   2 bin        bin        205 0x0750c0 Jul 31  2009 /dev/rmt/c7t5d0BESTnb
crw-r--r--   1 bin        bin        205 0xfffffe Aug  1 15:13 /dev/rmt/stape_config

 

2. ioscan results:

# ioscan -fnC tape
Class     I  H/W Path     Driver S/W State   H/W Type     Description
=====================================================================
tape      0  0/5/1/0.3.0  stape CLAIMED     DEVICE       HP      Ultrium 3-SCSI
                         /dev/rmt/c7t3d0BEST    /dev/rmt/c7t3d0BESTb   /dev/rmt/c7t3d0BESTn   /dev/rmt/c7t3d0BESTnb
#

Thank you

 

rariasn
Honored Contributor

Re: Missing device files

Hi:

 

Device 0m can be  dds tape ...

 

rgs,

Duncan Edmonstone
Honored Contributor

Re: Missing device files

This will fix you issue:

 

1. Run "lssf /dev/rmt/*"

2. delete any entries that show as having a hardware path of "???" using the rmsf command

3. re-run "insf -e"

 


HTH

Duncan