- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reappearing 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
Discussions
Discussions
Forums
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
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-08-2000 04:40 AM
тАО08-08-2000 04:40 AM
Before, all 8 LUN's were in use due to earlier modifications. I've also had, for a short time, a seventh disk in the AutoRAID. I had in my /dev/dsk and /dev/rdsk device files for these old configuration. I deleted these (both /dev/dsk and /dev/rdsk) and run insf -e -C disk. To my surprise, this recreated all seven device files although only four are in use at the moment (for LUN1 to LUN4).
I've tried this again but with the same results. To my knowledge, the system should create only the device files for the LUN's in use at the moment.
Why are the extra device files recreated ??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2000 05:02 AM
тАО08-08-2000 05:02 AM
Re: Reappearing device files
try an ioscan -f before insf -e
Regards
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2000 06:03 AM
тАО08-08-2000 06:03 AM
Re: Reappearing device files
I did run an ioscan -fnC disk both before and after insf with no new results.
When I run ioscan -f -C disk I get NO_HW in de list for the addresses mentioned but insf -e still gives me the same result.
disk 8 8/8.1.4 sdisk NO_HW DEVICE HP C5447A
disk 13 8/8.1.5 sdisk NO_HW DEVICE HP C5447A
disk 15 8/8.1.6 sdisk NO_HW DEVICE HP C5447A
disk 17 8/8.1.7 sdisk NO_HW DEVICE HP C5447A
Maybe I should remove the unnecessary device files and then reboot the system (K370)? Maybe the kernel still holds some of the paths involved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2000 06:10 AM
тАО08-08-2000 06:10 AM
Re: Reappearing device files
even if you do an ioscan -f and then an insf your server is still going to look a mess with some hardware devices left unclaimed. Best to rmsf the devices that shouldnt be there and then reboot. All should come up cleanly and no old device info left around.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2000 06:46 AM
тАО08-08-2000 06:46 AM
Solutionrmsf (not rm)
lssf (not ls -l)
insf or mksf (not mknod)
The reason is that the kernel maintains an internal instance list of all the devices since hardware paths are much too long to fit into the minor number.
So after removing the lvols, then physical devices (and possibly the volume groups), use rmsf -H 1/2.3.0 (or whatever) to remove all the device files related to that hardware path.
Now add back the device files with insf -H 1/2.3.4.0 (and optionally, -I # to specify the same or different instance number). The instance number is the number after the letter c in a device file as in c1t2d0. While you can use mknod for non-hardware files (ie, /dev/null), the instance number must be assigned by the kernel.
insf actually polls the driver to determine all the responding addresses and creates an device file for each address (and if present, LUNs).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2000 07:23 AM
тАО08-09-2000 07:23 AM
Re: Reappearing device files
Rerun the ioscan -f -C disk.
Then listed the device files in /dev/rdsk.
Used rmsf -a /dev/dsk/device files to remove both the device from the system and their device files.
After this, ioscan gave the required result.