Operating System - HP-UX
1753767 Members
6080 Online
108799 Solutions
New Discussion юеВ

Error in vgcreate command

 
CA1005821
Occasional Contributor

Error in vgcreate command

Hi all,

I have an error in my vgcreate command. The error states:
====================================
vgcreate: Cannot open the control file "/dev/vg02/group":
No such device
====================================
What have caused this error? I have scaned using ioscan but it displays the the raid device.
====================================
disk 5 0/7/0/1.0.0.0 sdisk CLAIMED DEVICE I2O RAID5
/dev/dsk/c5t0d0 /dev/rdsk/c5t0d0
====================================

I have already done the pvcreate command, created the vg02 directory, and already executed the mknod command.

Thanks in advanced.

Karl
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor

Re: Error in vgcreate command

Hi Karl,

Could you check next command, to check the minor and mayor numbers.

# ls -ll /de/*/group

# mknod /dev/vg02/group c 64 0x020000

# vgcreate /dev/vg02 /dev/dsk/c5t0d0

Hope it helps,
Robert-Jan.
CA1005821
Occasional Contributor

Re: Error in vgcreate command

Thanks for your reply. The group file for vg02 is already existing. Here is the output of the command you gave me.

# ls -ll /dev/*/group
crw-r----- 1 root sys 64 0x000000 Oct 22 14:46 /dev/vg00/group
crw-r--r-- 1 root sys 64 0x010000 Oct 27 15:41 /dev/vg01/group
crw-r--r-- 1 root sys 64 0x020000 Oct 27 18:17 /dev/vg02/group

But still I have the same error when I execute the vgcreate command.

Best regards,

Karl
CA955412
New Member

Re: Error in vgcreate command

Hi Karl,

Please check the syntax of your command and order.
I am listing the command for info. Please use caution during use of these commands.

1. mkdir /dev/vg02
2. mknod /dev/vg02/group c 64 0x020000
3. pvcreate -f /dev/rdsk/disknumber
4. vgcreate /dev/vg02 /dev/dsk/disknumber

Hope this helps
-BB


Robert-Jan Goossens
Honored Contributor

Re: Error in vgcreate command

Karl,

Could you check the permission of /dev/vg02

# ls -lad /dev/vg02
drwxr-xr-x 2 root root 1024 Oct 7 15:56 /dev/vg02

and the maxvgs kernel parameter.

# grep maxvgs /stand/system
maxvgs 80

Regards,
Robert-Jan.