System Administration

Re: Create VG withmount minor/major number?

 
SOLVED
Go to solution
bullz
Super Advisor

Create VG withmount minor/major number?

Hello Guruz,

Is it possible to create VG without group detail like major/minor number?

Or is it possible to assign the default majo/minor number?

Server model is ia64
8 REPLIES 8
Torsten.
Acclaimed Contributor
Solution

Re: Create VG withmount minor/major number?

Do you talk about the mknod command like this:

#mknod/dev/vgnew/group c 64 0x010000

A vgcreate in LVM version 2.x creates the group file automagically.

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!   
Lijeesh N G_1
Respected Contributor

Re: Create VG withmount minor/major number?

Hi,

1)Is it possible to create VG without group detail like major/minor number?
==>group file is required.
Which is your OS version??
In 11.31, no need to create it manually , vgcreate command will create it.
In 11.23, you have to create it manually.
2)Or is it possible to assign the default majo/minor number?
==>No,...

Regards,
LIJEESH N G

bullz
Super Advisor

Re: Create VG withmount minor/major number?

My lvm version is

LVMProvider R11.23.007 CIM/WBEM Provider for LVM,

but i am unable to create VGs automaticaly.
Torsten.
Acclaimed Contributor

Re: Create VG withmount minor/major number?

Your LVM version is version 1 if you run 11.23.

Only 11.31 has version 2.0 or 2.1.

In this case you need to use SAM or create the group file manually.


Any problem with this?

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!   
Torsten.
Acclaimed Contributor

Re: Create VG withmount minor/major number?

See also

http://docs.hp.com/en/B2355-90950/ch06s01.html#bfibdggj

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!   
Lijeesh N G_1
Respected Contributor

Re: Create VG withmount minor/major number?

Bill Hassell
Honored Contributor

Re: Create VG withmount minor/major number?

> LVMProvider R11.23.007 CIM/WBEM Provider for LVM

This is the WBEM module to provide information for centralized web page managers such as HP's System Insight Manager.

There is no default number for the group file---you must pick a minor number value that is not duplicated. Just like the password file, to create a new entry, you must sort all the existing group files by minor number, then pick and unused value. This is slightly tricky because the minor number is in hex.

Here is a portion of a VG creator script that finds the first unused hex number pair:

set -A HEX 0 1 2 3 4 5 6 7 8 9 a b c d e f
HEX1=0
HEX2=0
# Find all the used group files - skip anything that isn't a group special file

USED=$(ll /dev/*/group | awk '/64 0x/ {print $6}' | sort)

# Search for 1st unused minor number
for TENS in ${HEX[@]}
do
for ONES in ${HEX[@]}
do
[ $(echo $USED | grep -c 0x${TENS}${ONES}0000) -eq 0 ] && break 2
done
done
if [ "$TENS$ONES" = "ff" ]
then
echo "\nUnable to find an unused group ID in:"
ll /dev/*/group | grep "64 0x"
echo "\nNo VG created\n"
exit 1
fi
echo "Next minor number is 0x${TENS}${ONES}0000"


Bill Hassell, sysadmin
bullz
Super Advisor

Re: Create VG withmount minor/major number?

Thanks all