1753886 Members
7794 Online
108809 Solutions
New Discussion юеВ

Remove special file...

 
SOLVED
Go to solution
OLIVA_1
Regular Advisor

Remove special file...

Hello,

I would like remove Ultrium drive below which is in State "NO_HW".
I have removed all special files with rmsf command but I alway have the line:

tape 0 0/0/1/0.1.0 stape NO_HW DEVICE HP Ultrium 1-SCSI

This tape drive doesn't exist anymore.

Someone can help me ?

(root)#ioscan -fnCtape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 0/0/1/0.1.0 stape NO_HW DEVICE HP Ultrium 1-SCSI
/dev/rmt/0m /dev/rmt/0mn /dev/rmt/c0t1d0BEST /dev/rmt/c0t1d0BESTn
/dev/rmt/0mb /dev/rmt/0mnb /dev/rmt/c0t1d0BESTb /dev/rmt/c0t1d0BESTnb
tape 4 0/0/1/0.2.0 stape CLAIMED DEVICE HP C1537A
/dev/rmt/1m /dev/rmt/4m /dev/rmt/c0t2d0BEST /dev/rmt/c0t2d0DDS
/dev/rmt/1mb /dev/rmt/4mb /dev/rmt/c0t2d0BESTb /dev/rmt/c0t2d0DDSb
/dev/rmt/1mn /dev/rmt/4mn /dev/rmt/c0t2d0BESTn /dev/rmt/c0t2d0DDSn
/dev/rmt/1mnb /dev/rmt/4mnb /dev/rmt/c0t2d0BESTnb /dev/rmt/c0t2d0DDSnb
tape 3 0/0/1/0.4.0 stape CLAIMED DEVICE HP Ultrium 1-SCSI
/dev/rmt/3m /dev/rmt/3mn /dev/rmt/c0t4d0BEST /dev/rmt/c0t4d0BESTn
/dev/rmt/3mb /dev/rmt/3mnb /dev/rmt/c0t4d0BESTb /dev/rmt/c0t4d0BESTnb
(root)#



Thanks,
7 REPLIES 7
Jaime Bolanos Rojas.
Honored Contributor
Solution

Re: Remove special file...

Hi Oliva!

Did you already tried rmsf -H (hw path) ?

Regards,

Jaime.
Work hard when the need comes out.
Pupil_1
Trusted Contributor

Re: Remove special file...

reboot should clear the Unclaimed H/W !!
There is always something new to learn everyday !!
freddy_21
Respected Contributor

Re: Remove special file...

hello Olivia,

reboot your server. it can help you to remove the NOHW state.

thanks
freddy
David Child_1
Honored Contributor

Re: Remove special file...

Oliva,

Your 'rmsf' probably worked fine, but the system still has records of this device. Then when you run 'ioscan -fnCtape' it re-creates the "missing" device files.

If you run 'rmsf' as before (or using the -H flag as listed) it will get rid of the device files (that is all rmsf does). Then, during the next reboot everything should be cleared up.

David
Bill Hassell
Honored Contributor

Re: Remove special file...

ioscan is looking at kernel memory so although the device is gone, it will not disappear from ioscan until the system reboots. The kernel finds the previously installed hardware from /stand/ioconfig during reboot and scans for new hardware to add it to ioconfig.


Bill Hassell, sysadmin
Ralph Grothe
Honored Contributor

Re: Remove special file...

From my experience exactly what Jamie advised you to do generally worked.
I have several times attached and detached external streamers, and mostly it worked although on shouldn't do it (but I always powered the drive off ;-).
Also whenever some SAN disks are detached from an hpux host by our SAN admin this is what I run afterwards, and all NO_HW entries usually disappear

# /usr/sbin/ioscan -Fdsdisk|awk -F: '/NO_HW/{print$11}'|xargs -n1 rmsf -v -H
Madness, thy name is system administration
OLIVA_1
Regular Advisor

Re: Remove special file...

Thanks to all.


rmsf -H 0/0/1/0.1.0

works fine !