Operating System - HP-UX
1832282 Members
1996 Online
110041 Solutions
New Discussion

two device file on same address

 
mukesh_a
Advisor

two device file on same address

this is regarding HP server model# 9000/887/G70

here we are getting two device on same address
i.e for all hard disk ,
# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
==============================================================
disk 14 8.0.0 disc3 CLAIMED DEVICE SEAGATE ST34572WC
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
/dev/floppy/c0t0d0 /dev/rfloppy/c0t0d0
disk 1 8.2.0 disc3 CLAIMED DEVICE SEAGATE ST34572WC
/dev/dsk/c0t2d0 /dev/rdsk/c0t2d0
/dev/floppy/c0t2d0 /dev/rfloppy/c0t2d0
disk 15 8.8.0 disc3 CLAIMED DEVICE SEAGATE ST34572WC
/dev/dsk/c0t8d0 /dev/rdsk/c0t8d0
/dev/floppy/c0t8d0 /dev/rfloppy/c0t8d0
disk 5 8.9.0 disc3 CLAIMED DEVICE SEAGATE ST34572WC
/dev/dsk/c0t9d0 /dev/rdsk/c0t9d0
/dev/floppy/c0t9d0 /dev/rfloppy/c0t9d0
4 REPLIES 4
Rajeev  Shukla
Honored Contributor

Re: two device file on same address

Hi Mukesh,
Which ones are you trying to refer?
I dont see anything wrong with what you have posted above.
Also you can have as many device files corresponding to one H/W address its just which one and for what purpose you use it matters.

Regards
Rajeev
mukesh_a
Advisor

Re: two device file on same address

i am not understanding why floppy device file are appearing for each hard disk device file
A. Clay Stephenson
Acclaimed Contributor

Re: two device file on same address

This is rather common in UNIX. For example, the same physical tape drive might have several device nodes associated with it (rewind, norewind, compression on/off, Berkley/ATT style positioning). In your case, a SCSI INQUIRY simply returns DISK so device nodes were built to cover all the combinations and permutation. If this bothers you, simply rm the unused device nodes.
If it ain't broke, I can fix that.
Bill Hassell
Honored Contributor

Re: two device file on same address

Device files are quite arbitrarily named and created by infs. You must be running an old version of HP-UX where floppies used to be of some use. You can simply remove the /dev/floppy and /dev/rfloppy directory. These device files are identical to the ones in the dsk/rdsk directories. Verify with lssf as in:

lssf /dev/*floppy/*
lssf /dev/*dsk/*


Bill Hassell, sysadmin