- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- meaning of mknod
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
meaning of mknod
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-05-2009 11:28 PM
05-05-2009 11:28 PM
meaning of mknod
meaning of mknod
what is the meaning of this command..in my knowledge it is to create device file...but..here why we are using it as a character device file...what is the significant of this 64..why we are using four zeros after 01..
please give me an answer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-05-2009 11:44 PM
05-05-2009 11:44 PM
Re: meaning of mknod
Re: meaning of mknod
check lsdev = device driver = number 64 is LV/LVM
four zeros after 01 is normal counting of
devices.
mikap
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-05-2009 11:53 PM
05-05-2009 11:53 PM
Re: meaning of mknod
Re: meaning of mknod
mknod is the command to create special device files.
64 is the major number which is nothing but kernel driver number for lvm. #lsdev will list the available kernel drivers.
0x010000 -> is the minor which represents VG number in hex. But normally minor numbers represents hardware path, device specific parameters. Since LVM devices does not have these values it is represented with 4 zeros.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-05-2009 11:58 PM
05-05-2009 11:58 PM
Re: meaning of mknod
Re: meaning of mknod
Check this thread as well..
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1031631
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-06-2009 12:02 AM
05-06-2009 12:02 AM
Re: meaning of mknod
Re: meaning of mknod
Each device file has one major number it is points to the kernel for example major number of volume group is 64
major number of all device file belongs to same category should be same but minor number is different meaing of the minor number groups all the logical volumes within a volume group. The 1st two digits in the minor number identify the volume group and the last two the logical volume within the volume group.
minor number should be unique in a system
thanks and regards
sajjad
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-06-2009 12:38 AM
05-06-2009 12:38 AM
Re: meaning of mknod
Re: meaning of mknod
any idea,
how we can check which vg is occupied which major and minor number? so when we will create new vg we should not use that number. "However system itself will not allow to do so" thanks,
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-06-2009 12:43 AM
05-06-2009 12:43 AM
Re: meaning of mknod
Re: meaning of mknod
>>how we can check which vg is occupied which major and minor number? <<
Major number for all the VG is 64 only. Every VG should have only group file.To know the minor number give this command.
#ll /dev/*/group --> It will list the available
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-06-2009 12:59 AM
05-06-2009 12:59 AM
Re: meaning of mknod
Re: meaning of mknod
hello Avizen
Dear Avizen
please see Ganeshan posting also
ls -l /dev/*/group
it will display the minor number
u can use next minor or minor number not already available in system
ok
thanks and regards
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-06-2009 01:41 AM
05-06-2009 01:41 AM
Re: meaning of mknod
Re: meaning of mknod
mknod /dev/vg01/group c 64 0x010000
/sbin/mknod name c major minor
Character device special files are used for devices that can transfer single bytes at a time, such as nine-track magnetic tape drives, printers, plotters, disk drives operating in "raw" mode, and terminals. To create a character special file, use the c argument.
Block device special files are used for devices that usually transfer a block of data at a time, such as disk drives. To create a block device special file, use the b argument.
The remaining arguments specify the device that will be accessible through the new special file:
major
The major number specifies the major device type (for example, the device driver number).
minor
The minor number specifies the device location, which is typically, but not always, the unit, drive, and/or line number.
The major and minor values can each be specified in hexadecimal, octal, or decimal, using C language conventions (decimal: no leading zero; octal: leading zero; hexadecimal: leading 0x).
The assignment of major and minor device numbers is specific to each HP-UX system. Refer to the System Administrator manuals supplied with your system for details.
http://docs.hp.com/en/B2355-90691/mknod.1M.html
If it helps, pls assign point
Rgds//
Taifur
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP