- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: creat special file by using "insf"
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
05-08-2003 12:05 AM
05-08-2003 12:05 AM
I want to creat special file for one harddisk, can anyone tell me how to use
"# insf" to creat /dev/rdsk/cxtxdx??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2003 12:25 AM
05-08-2003 12:25 AM
Re: creat special file by using "insf"
If the disk already is displayed in your ioscan output, the easiest way is to do this:
# cd /dev; insf -e
This will create all device files that have a hardware address and no corresponding device file.
For a particular device you can use 'mksf' -C' or 'insf -H'
See the man page for either of these, will show you the details.
HTH
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2003 12:26 AM
05-08-2003 12:26 AM
Re: creat special file by using "insf"
Take a look at the pvcreate command.
# man pvcreate
Hope it helps,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2003 12:28 AM
05-08-2003 12:28 AM
SolutionExample:
1.List all the hard disk device file using
ioscan -nfC disk
2.Go to /dev/rdsk/
3.list all the disk file using ll command
crw-r----- 1 bin sys 188 0x001000 Feb 18 09:14 c0t1d0
crw-r----- 1 bin sys 188 0x002000 Feb 18 09:15 c0t2d0
crw-r----- 1 bin sys 188 0x003000 Oct 25 2000 c0t3d0
crw-r----- 1 bin sys 188 0x004000 Feb 18 09:15 c0t4d0
crw-r----- 1 bin sys 188 0x005000 May 7 2001 c0t5d0
crw-r----- 1 root sys 188 0x006000 Mar 24 17:40 c0t6d0
4.If your hard disk is not listed in /dev/rdsk
the you can create using mknod command
# mknod c0t3d0 c 188 0x003000 ( This is an example ) for device address 3
Or the other way you can use insf command like below:
# cd /dev
# insf -e ( This will create all the missing device )
Hope this will help you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2003 12:44 AM
05-08-2003 12:44 AM
Re: creat special file by using "insf"
do an ioscan and find the specific hardware path.
then do an
insf -H
man insf for more info.
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2003 12:48 AM
05-08-2003 12:48 AM
Re: creat special file by using "insf"
Thanks for your quickly reply, it's very helpful.
Hi Leo,
mknod c0t3d0 c 188 (major) 0x003000 (mimor)"
c0t3d0 is name,188 is major No., 0x003000 minor No.
Is there any command to find them?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2003 12:51 AM
05-08-2003 12:51 AM
Re: creat special file by using "insf"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2003 01:20 AM
05-08-2003 01:20 AM
Re: creat special file by using "insf"
There *are* exceptions, but these are *specifically* documented in *official* HP documentation (for example vgcreate(1M), scsi_ctl(7), etc.).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2003 03:04 AM
05-09-2003 03:04 AM
Re: creat special file by using "insf"
#insf -h (hardware path)
This will create the device files for just that hardware path. I am a HP CE and I have run into problems when running the #insf -e as this creates special files for all devices.
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2003 05:21 PM
05-11-2003 05:21 PM
Re: creat special file by using "insf"
Sometimes "# insf -H device-path" doesn't work. Don't know why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2003 10:54 PM
05-11-2003 10:54 PM
Re: creat special file by using "insf"
Note that the device file is *not* the only piece of information for a device. There is also the system definition of the device in ioconfig. See ioconfig(4) and ioinit(1M) for details.
If the device file is absent, but the system definition for the device still exists in ioinit, insf will not create new devices.
Therefor, if you remove a device file, you should *not* use the rm(1) command, but should use the rmsf(1M) command, *with* the "-a" option. For details, see rmsf(1M).