Operating System - Tru64 Unix
1753867 Members
7180 Online
108809 Solutions
New Discussion юеВ

How to delete device special files for disks that don't exists

 
SOLVED
Go to solution
Victor Semaska_3
Esteemed Contributor

How to delete device special files for disks that don't exists

I'm sure this has been asked before but I can't find anything in the forums or in the Hardware Management Guide.

I have device special files for disks that don't exist. How do I delete them? I think it would be with dsfmgr but nothing I try works (dsfmgr -D dsk511*).

Here's what I see:
sobds2:/> hwmgr -v d
HWID: Device Name Mfg Model Location
------------------------------------------------------------------------------
3: /dev/dmapi/dmapi
4: /dev/scp_scsi
5: /dev/kevm
22: /dev/disk/dsk503c i2o_bs iop-0-dev-0
50: /dev/disk/floppy0c 3.5in floppy fdi0-unit-0
65: /dev/disk/cdrom0c COMPAQ CD-224E bus-1-targ-0-lun-0
66: /dev/disk/dsk0c HP HSV100 IDENTIFIER=1
67: /dev/disk/dsk1c HP HSV100 IDENTIFIER=2
68: /dev/disk/dsk2c HP HSV100 IDENTIFIER=3
69: /dev/disk/dsk3c HP HSV100 IDENTIFIER=4
70: /dev/disk/dsk4c HP HSV100 IDENTIFIER=5
71: /dev/disk/dsk5c HP HSV100 IDENTIFIER=6
72: /dev/disk/dsk510c HP HSV100 IDENTIFIER=510
73: /dev/disk/dsk505c HP HSV100 IDENTIFIER=505
74: /dev/disk/dsk504c HP HSV100 IDENTIFIER=504
75: /dev/disk/dsk506c HP HSV100 IDENTIFIER=506
76: /dev/disk/dsk502c HP HSV100 IDENTIFIER=502
77: /dev/random
78: /dev/urandom
84: /dev/cport/scp1 HSV100 bus-5-targ-0-lun-0
102: /dev/disk/dsk599c HP HSV100 IDENTIFIER=599
103: /dev/cport/scp2 I2O i2o0_cp
sobds2:/> ls -l /dev/disk/dsk511*
brw------- 1 root system 19,289 Jun 4 2004 /dev/disk/dsk511a
brw------- 1 root system 19,291 Jun 4 2004 /dev/disk/dsk511b
brw------- 1 root system 19,293 Jun 4 2004 /dev/disk/dsk511c
brw------- 1 root system 19,295 Jun 4 2004 /dev/disk/dsk511d
brw------- 1 root system 19,297 Jun 4 2004 /dev/disk/dsk511e
brw------- 1 root system 19,299 Jun 4 2004 /dev/disk/dsk511f
brw------- 1 root system 19,301 Jun 4 2004 /dev/disk/dsk511g
brw------- 1 root system 19,303 Jun 4 2004 /dev/disk/dsk511h

Thanks,
Vic
There are 10 kinds of people, one that understands binary and one that doesn't.
2 REPLIES 2
Ivan Ferreira
Honored Contributor
Solution

Re: How to delete device special files for disks that don't exists

If the disk is not showed in hwmgr v d or hwmgr show scsi, then you can safely remove the device special files using the rm command.

Then run dsfmgr -v
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Victor Semaska_3
Esteemed Contributor

Re: How to delete device special files for disks that don't exists

Ivan,

Didn't try 'hwmgr show scsi', that listed a disk with Device File '(null)'. Deleted that via 'hwmgr delete component -id' and those special device names were gone.

Thanks,
Vic
There are 10 kinds of people, one that understands binary and one that doesn't.