Operating System - HP-UX
1748275 Members
3684 Online
108761 Solutions
New Discussion юеВ

Available minor numbers/VG

 
SOLVED
Go to solution
Jamesbond313
Occasional Contributor

Available minor numbers/VG


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
18 REPLIES 18
vishnu.khandare
Respected Contributor

Re: Available minor numbers/VG

Hi James,

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
You should deserve before U desire!!!!
James R. Ferguson
Acclaimed Contributor

Re: Available minor numbers/VG

Hi:

# 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...
Pete Randall
Outstanding Contributor

Re: Available minor numbers/VG

How about "ll /dev/vg*/group"? The output looks like this:

# 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
Pete Randall
Outstanding Contributor
Solution

Re: Available minor numbers/VG

How about "ll /dev/vg*/group"? The output looks like this:

# 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
Pete Randall
Outstanding Contributor

Re: Available minor numbers/VG

Apologies for the duplication. I forgot to check the retain spacing button.


Pete

Pete
Fraga
Advisor

Re: Available minor numbers/VG

Hi,

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
Fraga
Advisor

Re: Available minor numbers/VG

Correction:
major = 0x
minor = 64
Fraga
Advisor

Re: Available minor numbers/VG

Sorry, my posts were confusing, this inverted ...............
I will go for here.
Tim Nelson
Honored Contributor

Re: Available minor numbers/VG

and to give you more information than ever needed for a simple "ls -ld /dev/vg*/group" command.

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