- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Remove disk device files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2002 07:30 PM
08-19-2002 07:30 PM
Rgds,
Dewa Negara
target 13 10/4/12.11 target NO_HW DEVICE
disk 64 10/4/12.11.0 disc3 NO_HW DEVICE EMC SYMMETRIX
/dev/dsk/c2t11d0 /dev/floppy/c2t11d0 /dev/rdsk/c2t11d0 /dev/rfloppy/c2t11d0
disk 65 10/4/12.11.1 disc3 NO_HW DEVICE EMC SYMMETRIX
/dev/dsk/c2t11d1 /dev/floppy/c2t11d1 /dev/rdsk/c2t11d1 /dev/rfloppy/c2t11d1
disk 66 10/4/12.11.2 disc3 NO_HW DEVICE EMC SYMMETRIX
/dev/dsk/c2t11d2 /dev/floppy/c2t11d2 /dev/rdsk/c2t11d2 /dev/rfloppy/c2t11d2
disk 67 10/4/12.11.3 disc3 NO_HW DEVICE EMC SYMMETRIX
/dev/dsk/c2t11d3 /dev/floppy/c2t11d3 /dev/rdsk/c2t11d3 /dev/rfloppy/c2t11d3
disk 68 10/4/12.11.4 disc3 NO_HW DEVICE EMC SYMMETRIX
/dev/dsk/c2t11d4 /dev/floppy/c2t11d4 /dev/rdsk/c2t11d4 /dev/rfloppy/c2t11d4
disk 69 10/4/12.11.5 disc3 NO_HW DEVICE EMC SYMMETRIX
/dev/dsk/c2t11d5 /dev/floppy/c2t11d5 /dev/rdsk/c2t11d5 /dev/rfloppy/c2t11d5
disk 70 10/4/12.11.6 disc3 NO_HW DEVICE EMC SYMMETRIX
/dev/dsk/c2t11d6 /dev/floppy/c2t11d6 /dev/rdsk/c2t11d6 /dev/rfloppy/c2t11d6
disk 71 10/4/12.11.7 disc3 NO_HW DEVICE EMC SYMMETRIX
/dev/dsk/c2t11d7 /dev/floppy/c2t11d7 /dev/rdsk/c2t11d7 /dev/rfloppy/c2t11d7
target 14 10/4/12.12 target NO_HW DEVICE
disk 72 10/4/12.12.0 disc3 NO_HW DEVICE EMC SYMMETRIX
/dev/dsk/c2t12d0 /dev/floppy/c2t12d0 /dev/rdsk/c2t12d0 /dev/rfloppy/c2t12d0
disk 73 10/4/12.12.1 disc3 NO_HW DEVICE EMC SYMMETRIX
/dev/dsk/c2t12d1 /dev/floppy/c2t12d1 /dev/rdsk/c2t12d1 /dev/rfloppy/c2t12d1
disk 74 10/4/12.12.2 disc3 NO_HW DEVICE EMC SYMMETRIX
/dev/dsk/c2t12d2 /dev/floppy/c2t12d2 /dev/rdsk/c2t12d2 /dev/rfloppy/c2t12d2
disk 75 10/4/12.12.3 disc3 NO_HW DEVICE EMC SYMMETRIX
/dev/dsk/c2t12d3 /dev/floppy/c2t12d3 /dev/rdsk/c2t12d3 /dev/rfloppy/c2t12d3
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2002 07:42 PM
08-19-2002 07:42 PM
Re: Remove disk device files
You can get rid of the device files using "rmsf" command, but you cannot get rid of the corresponding pointers in the kernel tree. A reboot is needed to clear the entries.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2002 03:16 AM
08-20-2002 03:16 AM
Re: Remove disk device files
rm /dev/rdsk/c*
insf -e
ioscan -fCdisk
i don't know about floppy, but it should work the same way..
Regards,
Ceesjan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2002 03:43 AM
08-20-2002 03:43 AM
SolutionUse:
> for i in `ioscan -funC disk | grep -v grep | grep NO_HW | awk '{ print $3 }'`
> do
> rmsf -k -H $i
> done
This little program will erase all the device files that are not connect ( NO_HW ) on your system.
Try it.
Juanma.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2002 04:30 AM
08-20-2002 04:30 AM
Re: Remove disk device files
If you want to remove specific device files, then do a "rmsf -a /dev/...".
Do *not* use rm(1) to remove device files. rm(1) does not remove the system definition (from ioconfig).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2002 05:05 AM
08-20-2002 05:05 AM
Re: Remove disk device files
ioscan -fnC disk | grep NO_HW | awk '{print $3}' | xargs -i -t rmsf -H {}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2002 07:14 PM
08-20-2002 07:14 PM
Re: Remove disk device files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2002 09:10 PM
08-20-2002 09:10 PM
Re: Remove disk device files
Thanks alot for all information. Actually I have tried to use rmsf -k -H
[root@sihp8020:/root]
# for i in `ioscan -fnC disk | grep NO_HW | awk '{print $3}'`
> do
> echo "Removing HW_PATH $i"
> rmsf -k -H $i
> done
Removing HW_PATH 10/4/12.2.7
Removing HW_PATH 10/4/12.3.0
Removing HW_PATH 10/4/12.3.1
Removing HW_PATH 10/4/12.3.2
Removing HW_PATH 10/4/12.3.3
Removing HW_PATH 10/4/12.3.4
Removing HW_PATH 10/4/12.3.5
Removing HW_PATH 10/4/12.3.6
Removing HW_PATH 10/4/12.3.7
Removing HW_PATH 10/4/12.4.0
Removing HW_PATH 10/4/12.4.1
Removing HW_PATH 10/4/12.4.2
Removing HW_PATH 10/4/12.4.3
Removing HW_PATH 10/4/12.10.7
Removing HW_PATH 10/4/12.11.0
Removing HW_PATH 10/4/12.11.1
Removing HW_PATH 10/4/12.11.2
Removing HW_PATH 10/4/12.11.3
Removing HW_PATH 10/4/12.11.4
Removing HW_PATH 10/4/12.11.5
Removing HW_PATH 10/4/12.11.6
Removing HW_PATH 10/4/12.11.7
Removing HW_PATH 10/4/12.12.0
Removing HW_PATH 10/4/12.12.1
Removing HW_PATH 10/4/12.12.2
Removing HW_PATH 10/4/12.12.3
[root@sihp8020:/root]
# ioscan -fnC disk | grep NO_HW
disk 27 10/4/12.2.7 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 28 10/4/12.3.0 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 29 10/4/12.3.1 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 30 10/4/12.3.2 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 31 10/4/12.3.3 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 32 10/4/12.3.4 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 33 10/4/12.3.5 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 34 10/4/12.3.6 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 35 10/4/12.3.7 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 36 10/4/12.4.0 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 37 10/4/12.4.1 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 38 10/4/12.4.2 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 39 10/4/12.4.3 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 63 10/4/12.10.7 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 64 10/4/12.11.0 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 65 10/4/12.11.1 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 66 10/4/12.11.2 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 67 10/4/12.11.3 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 68 10/4/12.11.4 disc3 NO_HW DEVICE EMC SYMMETRIX
disk 69 10/4/12.11.5 disc3 NO_HW DEVICE EMC SYMMETRIX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2002 10:49 PM
08-20-2002 10:49 PM
Re: Remove disk device files
So, please, do NOT forget to give us points.
Thanks.
Juanma.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 12:32 AM
08-21-2002 12:32 AM
Re: Remove disk device files
I tried to run rmsf -a
Thanks.
Dewa
[root@sihp8020:/root]
# rmsf -a /dev/dsk/c2t12d0
[root@sihp8020:/root]
# rmsf -a /dev/rdsk/c2t12d0
[root@sihp8020:/root]
# rmsf -a /dev/rfloppy/c2t12d0
[root@sihp8020:/root]
# rmsf -a /dev/floppy/c2t12d0
[root@sihp8020:/root]
# ioscan -fnC disk | more
disk 72 10/4/12.12.0 disc3 NO_HW DEVICE EMC SYMMETRIX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 12:47 AM
08-21-2002 12:47 AM
Re: Remove disk device files
I hope this help you.
Juanma.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 12:59 AM
08-21-2002 12:59 AM
Re: Remove disk device files
I think that one of these will probably not list the removed path(s).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 05:23 AM
08-21-2002 05:23 AM
Re: Remove disk device files
As I mentioned before, you can only get rid of the device files with "rmsf" but not the pointers in the kernel IO tree. So, you will still see NO_HW associated with those paths until you reboot the server.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 05:42 AM
08-21-2002 05:42 AM
Re: Remove disk device files
[Please no (0) points for this response.]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 10:26 PM
08-21-2002 10:26 PM
Re: Remove disk device files
To remove the device files, I ran rmsf -H ,hw_path>, but NO_HW can not be deleted from ioscan. So as the suggestion, I will reboot the server soon. This server is a production server. So I need to schedule for rebooting the server. I will update you guys after rebooting.
Thanks alot for all suggestions.
Regards,
Dewa