1753560 Members
5842 Online
108796 Solutions
New Discussion юеВ

mknod

 
YOGI_3
Frequent Advisor

mknod

HI..

we are creating one VG on a new virtual disk..
But while creating group file we getting following error..
up to 0x0f0000 minor nos are in use.


# mknod group c 64 0x0h0000
mknod: illegal number
usage: mknod name b|c major minor
mknod name p


waiting for immidiate reply...


Thanx in adv

Yogesh
There is never a wrong time to do the right things
3 REPLIES 3
Simon Hargrave
Honored Contributor

Re: mknod

h is not hexadecimal (base 16 uses digits 0-9,a-f).

The next number you will use will be 0x100000.

bear in mind you may also need to check your kernel maxvgs parameter, if this doesn't work - it defines the maximum number of volume groups the server can have.

kmtune | grep maxvgs
saju_2
Respected Contributor

Re: mknod

Hi yogesh

Firsh check what all minor numbers are exisitng for the group files by

ll /dev/vg*/group|awk '{print $6,$10}'|sort -n

Then mknod /dev//group c 64

Make sure the minor number is a hexadecimel number..

For eg:
0x000000
0x030000
0x060000
0x070000
0x080000
0x0a0000
0x0c0000
0x0e0000
0x0f0000
0x120000
0x150000
0x160000
0x170000
0x180000
0x190000
0x1a0000
0x200000
0x210000
0x220000
0x230000
0x800000
0x810000

Regards
CS
Joseph Loo
Honored Contributor

Re: mknod

hi Yogesh,

basic mistake for hexadecimal as it do not even include h, only from a-f.

u may like to add the next group after checking vg group:

# ls -ld /dev/vg*/group
look at the last minor number and add 1 to it.


regards.
what you do not see does not mean you should not believe