Operating System - HP-UX
1837016 Members
2146 Online
110111 Solutions
New Discussion

HP-UX11 give error when creating Volume Group thru Sam

 
Olebile
Frequent Advisor

HP-UX11 give error when creating Volume Group thru Sam

How do I solve this guys?

vgcreate: Cannot open the control file "/dev/xxx/group": Nosuch device

Perfomance Monitoring is not always easy
4 REPLIES 4
Michael Tully
Honored Contributor

Re: HP-UX11 give error when creating Volume Group thru Sam

Hi,

It could be that your system kernel has reached a limit where you cannot create any more volume groups. A quick check will do this.

# ll /dev/*/group (and see how many)

# kmtune -l -q maxvgs (will tell you what the system kernel has. The default is 10. My system below has 30. If this is the case you will need to increase the value. 'sam' can be used to do this task.)

# kmtune -l -q maxvgs
Parameter: maxvgs
Value:30
Default: 10
Minimum: -
Module: -





Anyone for a Mutiny ?
Shahul
Esteemed Contributor

Re: HP-UX11 give error when creating Volume Group thru Sam

Hi

Better U do thru command line. Follow these

Suppos U want to create vg01 with /dev/dsk/c5t0d0

I hope U have done pvcreate for this PV. If not

#pvcreate -f /dev/rdsk/c5t0d0

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

This is for creating devicefile group

#vgcreate -e 180000 /dev/vg01 /dev/dsk/c5t0d0

Here -e switch is for defining the maximum number of PEs in a PV
Now U have created VG. Now U can proceed with lvol creation.

Best of luck
Shahul
Olebile
Frequent Advisor

Re: HP-UX11 give error when creating Volume Group thru Sam

Thanks Mike,

The kernel parameter was at default value of 10 VG limit. The command line solution is also good but would not create any VG until the kernel parameter was modified to accomodate more VG creation.

Thanx Guys

Perfomance Monitoring is not always easy
Michael Tully
Honored Contributor

Re: HP-UX11 give error when creating Volume Group thru Sam

Hi,

Here is an easy way to fix the problem instead of using 'sam'

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# vi system

In the last half of the file add
maxvgs 30
Save the file

# mk_kernel -s system
# kmupdate

Your system is ready to reboot and will install the new kernel during the system reboot.

System reboot command
# shutdown -r -y 0

HTH
Michael
Anyone for a Mutiny ?