Operating System - HP-UX
1834450 Members
2041 Online
110067 Solutions
New Discussion

Re: vgcreate : invalid ioctl

 

vgcreate : invalid ioctl

LVM Gurus,

We have connected out new L-class to an EMC Symmetrix frame . I can see all the disks
I need and do diskinfo on them. I do have one
problem: my LVM system pukes when trying to
do vgcreate on those disks.( pvcreate was fine)
vgcreate -e 6144 -p 78 /dev/vg01 /dev/dsk/c13t0d0 /dev/dsk/c16t8d0

gives me:


vgcreate: Volume group "/dev/vg01" could not be created:
Inappropriate ioctl for device - the command was attempted on a
logical volume device rather than the control device.


I have looked at all the patches I had for other machines and installed :

PHCO_23876
PHCO_23651
PHKL_18543
PHKL_20016
PHKL_24943
PHKL_22785
PHKL_23939
PHKL_24027
PHKL_25188
PHSS_23996

The problem did not go away.

Does anyone have an idea what that message might mean?

Thanks a lot,

--dimitry.
5 REPLIES 5
Santosh Nair_1
Honored Contributor

Re: vgcreate : invalid ioctl

Dimitry,

The first thing I would check is the /dev/vg01/group file, concentrating on the major and minor numbers. The major number should be 64 and the minor number should be something like 0x0nn000, where nn should be in the range 00 - maxfiles (in hex).

-Santosh
Life is what's happening while you're busy making other plans
Stefan Farrelly
Honored Contributor

Re: vgcreate : invalid ioctl


You'll need to do a pvcreate -f on the EMC devices before you can use vg/lv commands on them.
Im from Palmerston North, New Zealand, but somehow ended up in London...
A. Clay Stephenson
Acclaimed Contributor

Re: vgcreate : invalid ioctl

HI,

I think the first thing I would do is start over beginning with a vgexport /dev/vg01 to clean everything up. Next do a strings /etc/lvmtab to check that all is as it should be.

Next follow the normal steps:
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
(assuming 0x010000 is the desired minor device)
then issue your vgcreate command. I assume the two device nodes you list are the correct primary amd alternate paths for the same device.
If it ain't broke, I can fix that.

Re: vgcreate : invalid ioctl

RESOLVED:



minor number was 0x000001 instead of 0x010000

Therefore, it complained about logical volume

Thanks,

--dimitry

Byron Myers
Trusted Contributor

Re: vgcreate : invalid ioctl

It is quite evident to me that Santosh and Clay bulls-eyed this problem. Where are their points?
If you can focus your eyes far and straight enough ahead of yourself, you can see the back of your head.