Operating System - HP-UX
1835871 Members
3251 Online
110085 Solutions
New Discussion

Removing devices from ioscan

 
SOLVED
Go to solution
Chuck J
Valued Contributor

Removing devices from ioscan

Hi All

Someone removed the quantum dlt from a server without shutting it down. The device is still showing in the ioscan and I want to get rid of it. I don't think just a reboot is going to fix the problem - what do I need to do:

# ioscan -funC tape
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
tape 0 8/12.5.0 stape NO_HW DEVICE QUANTUM DLT7000
/dev/rmt/1m /dev/rmt/c0t5d0BEST /dev/rmt/c0t5d0DDS2Cb
/dev/rmt/1mb /dev/rmt/c0t5d0BESTb /dev/rmt/c0t5d0DDS2Cnb
/dev/rmt/1mn /dev/rmt/c0t5d0BESTn
/dev/rmt/1mnb /dev/rmt/c0t5d0BESTnb


regards

Chuck J
6 REPLIES 6
Bill McNAMARA_1
Honored Contributor

Re: Removing devices from ioscan

you need to rebuild your ioinit maps.. arrrrr
or use rmsf.
But rmsf will not work in all cases.
I'll root out a post on this..

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x0aba119c3420d411b66300108302854d,00.html
(yikes)

Later,
Bill
It works for me (tm)
U.SivaKumar_2
Honored Contributor

Re: Removing devices from ioscan

I think only rebooting will fix this
Innovations are made when conventions are broken
Bill McNAMARA_1
Honored Contributor
Solution

Re: Removing devices from ioscan

Oh yea, of course, the NO_HW state will only go on reboot. it is the HW that was know to the kernel on ioinit.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xb5968cc5e03fd6118fff0090279cd0f9,00.html

The posts I've been mentioning are if you want to reclaim that device file again you need to recreate the maps. ie hpux will not use that device file again, unless identical hw has been added in exactly the same hw path.

this is a bit of a pain for disk arrays..

Later,
Bill
It works for me (tm)
Michael Tully
Honored Contributor

Re: Removing devices from ioscan

I'm not near a machine right now, but I'm sure you need to look at 'ioconfig'. The search should reveal something useful from our friend JRF...
Anyone for a Mutiny ?
justin berkman
Frequent Advisor

Re: Removing devices from ioscan

hi guys

for resolve this problem use
the command :

rmsf -a /dev/special file

Chuck J
Valued Contributor

Re: Removing devices from ioscan

Ok, let me check out the suggestions as soon as I can and get some points assigned...

Thanks

Chuck J