Operating System - HP-UX
1847290 Members
2373 Online
110263 Solutions
New Discussion

mknod ?? minor and major?

 
SOLVED
Go to solution
Deanna Tran_1
Frequent Advisor

mknod ?? minor and major?

when creating the special file...we
use the minor and major number ? how are those number play the role in vgcreate a volume group?
what does 64 means in major number and 0x010000 in minore means?
because i ran into this error when i tried to
do vgcreate
"can't open the control file"..a.nd when i deleted it again..it works...fine...and somehow helps me to explan this?
3 REPLIES 3
Michael Tully
Honored Contributor
Solution

Re: mknod ?? minor and major?

Not sure exactly what you mean.

64 is the major number reporesentation for the LVM driver.

# lsdev | grep lvm
64 64 lv lvm

The minor number represents the group file of the volume group being created. If you have used the first 10 minor numbers, i.e. 10 volume groups, there is a kernel parameter for this called 'maxvgs' that must be increased.
Anyone for a Mutiny ?
Pierce Byrne_1
Frequent Advisor

Re: mknod ?? minor and major?

In simple terms -
The major number 64 lets hpux know its a volume group.
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 final two the logical volume within the volume group.