1820882 Members
3493 Online
109628 Solutions
New Discussion юеВ

lvcreate error

 
SOLVED
Go to solution
Habib_4
Advisor

lvcreate error

Hi guys,

When trying to create logical volumes I am getting the following error:

lvcreate: "/dev/vg01/group": not a character device.

Any idea why?

Cheers!
12 REPLIES 12
Tomek Gryszkiewicz
Trusted Contributor

Re: lvcreate error

Did you specify /dev/vg01/group as a vg_name?
Please provide the exact command creating this lvol

--
Grych
melvyn burnard
Honored Contributor

Re: lvcreate error

so what comand did you use?
what does ll /dev/vg01 give you for the group file??
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Ivan Ferreira
Honored Contributor

Re: lvcreate error

What is the output of vgdisplay -v?

Do you have other LV in vg01 or this is a new Volume Group? Have you done all commands neccesary to create the volume group? For example:

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x030000

pvcreate /dev/rdsk/c1t0d0
pvcreate /dev/rdsk/c1t2d0

vgcreate -s 2 /dev/vg01 /dev/dsk/c1t0d0 /dev/dsk/c1t2d0
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Patrick Wallek
Honored Contributor

Re: lvcreate error

You cannot use group as a LV name. group is a special file used by a VG. If you look in /dev/vg01, you will see a file called 'group' there already.

Use any name other than 'group'.

Peter Godron
Honored Contributor

Re: lvcreate error

Habib,
I would suggest using SAM. It easy for standard tasks such as LVM configuration. Also prevents typing mistakes.

Can you do a:
ll /dev/vg01
dr-xr-xr-x 2 root sys 96 Aug 5 2005 vg01

ll /dev/vg01/group

cr--r--r-- 1 root sys 64 0x020000 Aug 5 2005 group
Jeff Schussele
Honored Contributor
Solution

Re: lvcreate error

Hi Habib,

Check the /dev/vg01/group file - it should look like:

crw-r--r-- 1 root sys 64 0x010000

The key is the "c". IF it's "b" then it's defined as a block device.
Proper mknod command would look like:

mknod group c 64 0x010000

Again the "c" is the key.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Geoff Wild
Honored Contributor

Re: lvcreate error

Was vg created correctly?

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000

then do your vgcreate...

Also, make sure you don't have the same minor number as another vg.

ll /dev/vg*/group

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
A. Clay Stephenson
Acclaimed Contributor

Re: lvcreate error

It sounds as though /dev/vg01/group is a regular file rather than a device node. (or it's a pipe or a block device node) It is also possible that you have non-unique minor device numbers.

Do an ls -l /dev/vg* and post the output.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: lvcreate error

Hi:

Does your group file look like?

crw-r----- 1 root sys 64 0x000000 Aug 20 1997 /dev/vg01/group

That is, did you use 'mknod' to create the volume group device file? like:

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

Regards!

...JRF...

Asif Sharif
Honored Contributor

Re: lvcreate error

Salam Habib,

Please find the attached document for creating Physical and logical volumes, It will help you.

Regards,
Asif Sharif
Regards,
Asif Sharif
Habib_4
Advisor

Re: lvcreate error

Thanks to all you guys, especially Asif.
Your help has helped me through!

Cheers!
Habib_4
Advisor

Re: lvcreate error

Thanks for the advice