- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Major and minor numbers
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
01-28-2004 08:04 AM
01-28-2004 08:04 AM
Major and minor numbers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2004 08:09 AM
01-28-2004 08:09 AM
Re: Major and minor numbers
ll /dev/*/group will list all the group device files. A VG is pointed to by it's group file.
5 th field is the major number.
6 th field is the minor number
10th or last field contains the volume group.
Note that minor number is limited by the 'maxvgs' kernel parameter.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2004 08:11 AM
01-28-2004 08:11 AM
Re: Major and minor numbers
# ll /dev/vg*/group*
crw-r----- 1 root sys 64 0x000000 Sep 30 13:53 /dev/vg00/group
crw-r--r-- 1 root sys 64 0x030000 Oct 1 08:51 /dev/vg01/group
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2004 08:17 AM
01-28-2004 08:17 AM
Re: Major and minor numbers
When doing the mknod command as a part of creating a VG it is of the syntax:
# mknod /dev/vg%%/group c 64 0x0?0000
Where %% is the name of your VG, normally like VG01, VG02, etc and the ? is a unique HEXADECIMAL number for the minor number.
To see what minor numbers are currently in use do:
# ll /dev/vg*/group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2004 08:20 AM
01-28-2004 08:20 AM
Re: Major and minor numbers
are 0xVG0001 for the first lvol, 0xVG0002 for the 2nd, ... . By convention VG for vg00 is 00, VG for vg01 is 01, VG for vg12 is 0c and so on but that is simply a convention. vg01 could easily use 0x060000 but life is a bit easier when you follow the rules. You do need to make absolutely certain than whatever you choose for the VG hex digits that they be unique on that system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2004 08:20 AM
01-28-2004 08:20 AM
Re: Major and minor numbers
Sri's approach is better because you can't assume that all VG names start with "vg"
And the default out of the box maxvgs value is 10. So any VG minor number (assuming they've been assigned completely AND in order) larger than 0x090000 (they're in HEX - so for EX 0x0a0000) will not be allowed until maxvgs is bumped up & a new kernel rebooted.
Personally, I think this parm is a *prime* candidate for being dynamic.
My 2 cents,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2004 08:28 AM
01-28-2004 08:28 AM
Re: Major and minor numbers
I do like A. Clay's suggestion. As you can see in my example I didn't do it that way. Even though I don't foresee ever having a whole lot of vg's on this server. (Never say never I guess)
Where I've seen this get ugly sometimes is with service guarded vg's.
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2004 09:01 AM
01-28-2004 09:01 AM
Re: Major and minor numbers
You can use 'lsdev' to get all major numbers of drivers.
When creating a volume group after using:
# mkdir /dev/vgxx
# mknod /dev/vgxx/group c 64 0x020000
The 'vgcreate' command will check for a duplicate number prior to creating the volume group. If it finds one, the command fails.
We rarely use /dev/vgNN, but more likely to use names like /dev/psdata so the numbering convention is out the window.
(just my 2 cents worth)