Operating System - HP-UX
1834279 Members
1804 Online
110066 Solutions
New Discussion

Re: Error while creating Volume Group

 
SOLVED
Go to solution
Amod
Occasional Advisor

Error while creating Volume Group

I am using HP-UX 11.11. When I am trying to create a VG using external disks it is giving me following error

# vgcreate /dev/vg01 /dev/dsk/c0t9d0
Increased the number of physical extents per physical volume to 17501.
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.

Does anyone know the solution for this error ?
If you can't change it, enjoy it !!
7 REPLIES 7
RAC_1
Honored Contributor

Re: Error while creating Volume Group

what does diskinfo -v /dev/rdsk/c0t9d0 says?

I assume you have done pvcreate
There is no substitute to HARDWORK
Ravi_8
Honored Contributor

Re: Error while creating Volume Group

Hi,

#pvcreate -f /dev/rdsk/c0t9d0
#mkdir /dev/vg01
#cd /dev/vg01
#mknod group c 64 0x010000
#vgcreate vg01 /dev/dsk/c0t1d0

never give up
Ravi_8
Honored Contributor

Re: Error while creating Volume Group

Hi,

#pvcreate -f /dev/rdsk/c0t9d0
#mkdir /dev/vg01
#cd /dev/vg01
#mknod group c 64 0x010000
#vgcreate vg01 /dev/dsk/c0t9d0

never give up
Rajeev  Shukla
Honored Contributor

Re: Error while creating Volume Group

Have you created the /dev/vg01/group file with proper major and minor numbers.
The major number should be 64

Rajeev
T G Manikandan
Honored Contributor
Solution

Re: Error while creating Volume Group

Looks like the minor number for the volume group created is not correct.
you are using a number which is for a volume.
Use like

0x010000 for vg00
0x020000 for vg02,etc


Change it and it should work fine
Also make sure that they are unique taking into account of all the volume groups



Thanks
Amod
Occasional Advisor

Re: Error while creating Volume Group

Thanks everybody

The problem was with 'group' file minor number. I corrected it and now I am able to create the VG.

Thanks,
Amod.
If you can't change it, enjoy it !!
Ravi_8
Honored Contributor

Re: Error while creating Volume Group


we get many thanx's like this
never give up