- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Available minor numbers/VG
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
10-19-2010 07:11 AM
10-19-2010 07:11 AM
When creating a device file named group in the volume directory with the mknod command, what command do I use to obtain and display available minor numbers
Mknod /dev/vgname/group c major 0xminor
Thanks in advance for the assistance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2010 07:19 AM
10-19-2010 07:19 AM
Re: Available minor numbers/VG
please use below command
#mknod /dev/vg0X/group c 64 0x0X0000
In Place of X change the no as per ur volume group for example vg01 as below
#mknod /dev/vg01/group c 64 0x010000
Hope this solves ur qery
Don't forget to assign points.
Regards
Vishnu Khandare
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2010 07:20 AM
10-19-2010 07:20 AM
Re: Available minor numbers/VG
# ls -l /dev/vg*
If you are running a release less than 11.31 you will need to verify your kernel's 'maxvgs' value. Since vg00 counts as a used slot, a 'maxvgs' value of 10 means that you could have 'vg00..vg09' assuming you name your volume groups to match their minor number.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2010 07:20 AM
10-19-2010 07:20 AM
Re: Available minor numbers/VG
# ll /dev/vg*/group
crw-r----- 1 root sys 64 0x000000 Mar 15 2004 /dev/vg00/group
cr--r--r-- 1 root sys 64 0x010000 Mar 30 2004 /dev/vg01/group
crw-rw-r-- 1 informix informix 64 0x030000 Nov 26 2009 /dev/vg03/group
The minor numbers are the first two digits after "0x".
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2010 07:20 AM
10-19-2010 07:20 AM
Solution# ll /dev/vg*/group
crw-r----- 1 root sys 64 0x000000 Mar 15 2004 /dev/vg00/group
cr--r--r-- 1 root sys 64 0x010000 Mar 30 2004 /dev/vg01/group
crw-rw-r-- 1 informix informix 64 0x030000 Nov 26 2009 /dev/vg03/group
The minor numbers are the first two digits after "0x".
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2010 07:21 AM
10-19-2010 07:21 AM
Re: Available minor numbers/VG
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2010 07:23 AM
10-19-2010 07:23 AM
Re: Available minor numbers/VG
It's simples:
/> ll /dev/*/group
crw-r----- 1 root sys 64 0x000000 Oct 30 2008 /dev/vg00/group
minor = 0x000000
major = 0x000000
Regards
EFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2010 07:30 AM
10-19-2010 07:30 AM
Re: Available minor numbers/VG
major = 0x
minor = 64
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2010 07:33 AM
10-19-2010 07:33 AM
Re: Available minor numbers/VG
I will go for here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2010 10:15 AM
10-19-2010 10:15 AM
Re: Available minor numbers/VG
the maximum number of volume groups is equal to the kernel parameter MAXVGS in 11.11 and 11.23, i believe the limit is 255 in 11.31
cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2010 11:01 AM
10-19-2010 11:01 AM
Re: Available minor numbers/VG
Still confusing. The major number is 64, which can be traced back to lsdev output to tell that this is an lvm device. The minor number is the first two digits following the 0x designation, in your example it would be 00, which most like indicates vg00.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2010 12:52 PM
10-19-2010 12:52 PM
Re: Available minor numbers/VG
a) The LVM volume groups do not have to
have names starting with "vg", so
this is more appropriate:
# ll /dev/*/group
b) On HP-UX 11.31, if you use VG versions
2.x, you do not need all that nonsence
about mknod(1M). For example:
# vgcreate -V 2.2 ...
It automatically creates the volume group and picks up a free minor number. Absolutely
no need to run command mknod(1M) manually.
c) Finally, on HP-UX 11.31, VG versions 2.x
have major number 128. Only VG version 1.0
(traditionally being in use for the last
27-odd years), has major number 64.
In short, if you use latest HP-UX 11.31,
I would not even try to use VG version 1.0.
Cheers,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2010 03:51 PM
10-19-2010 03:51 PM
Re: Available minor numbers/VG
ll /dev/*/group | awk '{print $6,$NF}'
Now not all of these group files may be in use. The VG may be deactivated or it may have just been created with mkdir and mknod but never used in a VG.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2010 03:52 PM
10-19-2010 03:52 PM
Re: Available minor numbers/VG
The minor number is in hex.
So the number that would follow 0x090000 would be 0x0a0000. 0x100000 would follow 0x0f0000.
There doesn't have to be any relationship between the vg name and the minor number but each VG must have a unique minor number.
It is common for vg01 to have 0x010000 and vg02 to have 0x020000, etc. but it is not necessary.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2010 06:26 PM
10-19-2010 06:26 PM
Re: Available minor numbers/VG
ll /dev/vg*/group
If you have 11iv3 you no need to worry abour minor number you simply run vgcreate(no need to do mkdir vg and mknod)
chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2010 01:34 PM
11-11-2010 01:34 PM
Re: Available minor numbers/VG
There is a convention that can be followed :-
/dev/vg05/lvol2
Minor number :- 0x050002
First 2 bits for volume group last 2 for logical volume (although very few people follow this as they give there own names for vgs and lvs). This is for LVM v1 . For v2 those 2 bits become 3 bits!. And hence in 11iv3 using LVM v2 we can have vgs and lvs upto fff which is more than 255 but only for LVM version2 and higher.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2010 01:35 PM
11-11-2010 01:35 PM
Re: Available minor numbers/VG
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2010 12:34 PM
11-12-2010 12:34 PM
Re: Available minor numbers/VG
addon,
If your maxvgs ( prior to 11iV3) parameter is 8 and you have used minor number -07- to create a group file ( 0x070000) , you will not be able to create anymore VG , even there is only two VGs existing in the system.
Vgcreate command will give you an error which you have never seen ..
enjoy it !!!
Regards,
Sooraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2010 12:36 PM
11-12-2010 12:36 PM