Operating System - HP-UX
1834447 Members
2424 Online
110067 Solutions
New Discussion

ioctl error doing vgcreate

 
SOLVED
Go to solution
Frank Paukovitz
New Member

ioctl error doing vgcreate

OS: HP-UX 11.11
Hardware: Superdome partition (2)
Diskinfo: HDS
# diskinfo (just 1 of 4) /dev/rdsk/c3t0d0
SCSI describe of /dev/rdsk/c3t0d0:
vendor: HITACHI
product id: OPEN-E-CVS
type: direct access
size: 10240560 Kbytes
bytes per sector: 512

Problem: I have 4 fiber (non-switched)attached HDS disk, each with alternate paths. These disk are shared between two servers/partitions. I can execute a pvcreate without a problem. Yet, I can not create a volume group using these volumes. I get the following message:

===============================================
# vgcreate /dev/vg01 /dev/dsk/c3t0d0
Increased the number of physical extents per physical volume to 2500.
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 validated the disk are shared between the servers as required. I have been able to write to the actual device files -- just this problem with LVM.

Any comments, remarks or help is appreciated.

Thank you,
Frank
5 REPLIES 5
Bill McNAMARA_1
Honored Contributor
Solution

Re: ioctl error doing vgcreate

ll /dev/*/group
and make sure that the /dev/vg01/group file was created via
mknod /dev/vg01/group c 64 0x010000
and not something like 0x010001
which would represent lvol1

Later,
Bill
It works for me (tm)
Frank Paukovitz
New Member

Re: ioctl error doing vgcreate

I could/should have included this information:
# ll /dev/*/group
crw-rw-rw- 1 root sys 64 0x000001 Jul 30 17:41 /dev/vg01/group

I beleive the vgroup was created correctly.
Mark van Hassel
Respected Contributor

Re: ioctl error doing vgcreate

Hi,

Bill is correct, you have a wrong minor number it should be like: 0x010000
The surest sign that life exists elsewhere in the universe is that none of it has tried to contact us
Bill McNAMARA_1
Honored Contributor

Re: ioctl error doing vgcreate

crw-rw-rw- 1 root sys 64 0x000001 Jul 30 17:41 /dev/vg01/group
is an incorrect device file for vg01.. in fact as the kernel believes, this is vg00 lvol1.

The vg was created incorrectly.
rm -rf /dev/vg01
mkdir /dev/vg01

ll /dev/*/group
choose a unique id for the vg
mknod /dev/vg01/group c 64 0x010000

then vgcreate ....

Did you use SAM or command line to create the group file??

Later,
Bill


It works for me (tm)
Frank Paukovitz
New Member

Re: ioctl error doing vgcreate

Yes....I got it right the second time. I was doing it manually and had brain warp. Thank you for your assistance.