1847693 Members
4040 Online
110265 Solutions
New Discussion

Re: creating a disk

 
Tan Tian Ho
Occasional Advisor

creating a disk

Hi
Iam using the command below to create the disk for my service guard enviroment. Just a quick check if my step looks correct to you ?
and what is the purpose of mknod /dev/vg01/group c 64 0x011000

what is c 64 0x011000 for and how do I assign what figure to it.. thanks if anyone can help.


ioscan -funC disk
inf
pvcreate -f /dev/rdsk/c4t3d1
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x011000
vgcreate vg01 /dev/dsk/c4t3d1
lvcreate -L 100 -n lvvgo1 /dev/vgo1
newfs -f vxfs /dev/vgmv36a/rlvvg01
mkdir /test
vgchange -a y vg01
mount /dev/dsk/c4t3d1 /test
4 REPLIES 4
Paul_481
Respected Contributor

Re: creating a disk

Hi,

The mknod command creates the control file named group in the directory /dev/vg01. This provides a means for the LVM kernel and LVM commands communicate withing the volume group that you create.

64 is always the used as a major number and the minor number 0x011000 should be any hexadecimal that has the following form 0xhh0000.

Or you can used SAM to create the volume group.

Regards,

Paul
A. Clay Stephenson
Acclaimed Contributor

Re: creating a disk

64 (decimal) is the major device number for LVM. Your minor device number 0x011000 is incorrect. The first two hex digits must be unique (ie no other /dev/vgxx/group may have the same leading hex digits). The last 4 digits must be zero.

By convention, vg00/group uses 0x000000, vg01/group uses 0x010000, /dev/vg02/group uses 0x020000 but any value can be used as long as it is unique to this host and as long as you do not exceed the maxvgs kernel value.
If it ain't broke, I can fix that.
bhavin asokan
Honored Contributor

Re: creating a disk

hi,

the minor number is incorrect.it has the form

0xhh0000

the first two digits (specified as hh)which is coming after 0x
only you can change.the last four digits should be zero as per convention.the two digits should be in hexadecimal format.and it should be less than the value of maxvgs parameter in kernel.

eg: if you are having a maxvgs parameter of 12
(its hex value is 0c) you can have those two digits from 00 to 09 ,0a,0b,0c .

regds,
bhavin asokan
Honored Contributor

Re: creating a disk

hi,

and see other lines also.may be typing mistake.
you have to newfs the lvol you created (/dev/vg01/lvvg01)not other lvol .give -F option ,not -f .

vgcreate /dev/vg01 /dev/dsk/c4t3d1
lvcreate -L 100 -n lvvg01 /dev/vg01
newfs -F vxfs /dev/vg01/rlvvg01

you have to mount lvol ,not the disk

mount /dev/vg01/lvvg01 /test