1826242 Members
3064 Online
109692 Solutions
New Discussion

Re: pvcreate error

 
Jacob D Levin
Frequent Advisor

pvcreate error

Hi, we just installed an EVA 5000 and secure path. I've created disks on the SMA and I can see them on the UNIX side. when I try to create a new Volume group I get the following error.
vgcreate: "/dev/####/group": not a character device.

I've done an insf -e and everything seems fine
Any ideas?
just hit enter, what could it hurt?
7 REPLIES 7
Prashant Zanwar_4
Respected Contributor

Re: pvcreate error

YOu will have to do mknod first.

mknod /dev/vgxx/group 64 0x010000. Remember this should be uniq number. and in same format as above.

Before vgcreate you will do pvcreate on specified device and then follwo by

vgcreate -f -s 8 vgxx physicalvolumepath

Hope this helps

check your required disks status using ioscan

ioscan -fnC disk


Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Sundar_7
Honored Contributor

Re: pvcreate error

vgcreate will not create the group file for you. You need to manually create the vg directory and the group file before using vgcreate

# mkdir /dev/vgname
# mknod /dev/vgname c 64 0xNN0000

NN = a unique number smaller than the value of kernel parameter maxvgs

# vgcreate /dev/vgname /dev/dsk/

- Sundar
Learn What to do ,How to do and more importantly When to do ?
RAC_1
Honored Contributor

Re: pvcreate error

Before doing a vg create did you do??

mkdir /dev/vgxx
mknod /dev/vgxx/group c 64 0x0y0000
y-is minor number.

Anil
There is no substitute to HARDWORK
Jacob D Levin
Frequent Advisor

Re: pvcreate error

thanks Prashant,
I had tried to do this through SAM first and it kept failing. I did the mknod and it worked perfectly. thanks for the help!
just hit enter, what could it hurt?
Pete Randall
Outstanding Contributor

Re: pvcreate error

Jacob,

Take a look at the EXAMPLES section of the vgcreate man page for a step by step guide to creating VGs.


Pete

Pete
Jacob D Levin
Frequent Advisor

Re: pvcreate error

thanks to everyone else. I initially had the problem while trying to create the volume group through sam and forgot all about the mknod

just hit enter, what could it hurt?
Prashant Zanwar_4
Respected Contributor

Re: pvcreate error

Hmm..Happens..

Please assign points to all individuals.

Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."