OpenVZ Forum


Home » General » Support » *SOLVED* env_create error: Resource temporarily unavailable
*SOLVED* env_create error: Resource temporarily unavailable [message #11235] Thu, 15 March 2007 20:01 Go to next message
Olate is currently offline  Olate
Messages: 5
Registered: March 2007
Junior Member
I have just customised the config for one of our VPSs and just after creating it and trying to set the password, I get an error:

[root@186 ~]# vzctl set 301 --userpasswd root:password
Starting VE ...
VE is mounted
env_create error: Resource temporarily unavailable
VE start in progress...
VE is not running
Password change failed
Unable to stop: VE is not running


Config being used is:

ONBOOT="yes"

# UBC parameters (in form of barrier:limit)
# Primary parameters
AVNUMPROC="40:40"
NUMPROC="85:95"
NUMTCPSOCK="95:100"
NUMOTHERSOCK="95:100"
VMGUARPAGES="32768:262144" 
# Secondary parameters
KMEMSIZE="16384:131072" 
TCPSNDBUF="16384:131072" 
TCPRCVBUF="16384:131072"
OTHERSOCKBUF="16384:131072"
DGRAMRCVBUF="16384:131072"
OOMGUARPAGES="16384:131072"
# Auxiliary parameters
LOCKEDPAGES="32:32"
SHMPAGES="8192:8192"
PRIVVMPAGES="16384:131072"
NUMFILE="2048:2048"
NUMFLOCK="100:110"
NUMPTY="16:16"
NUMSIGINFO="256:256"
DCACHESIZE="1048576:1097728"

PHYSPAGES="0:1048576" 
NUMIPTENT="128:128"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="4194304:4194304"
DISKINODES="200000:220000"
QUOTATIME="0"

# CPU fair sheduler parameter
CPUUNITS="18317"


What is causing this resource unavailable error?

[Updated on: Fri, 16 March 2007 09:04] by Moderator

Report message to a moderator

Re: env_create error: Resource temporarily unavailable [message #11237 is a reply to message #11235] Thu, 15 March 2007 20:15 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

would be great to know
(1) kernel and vzctl version
(2) if you compiled the kernel yourself -- your .config file
(3) is there anything bad/strange in dmesg?


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: env_create error: Resource temporarily unavailable [message #11238 is a reply to message #11235] Thu, 15 March 2007 20:17 Go to previous messageGo to next message
Olate is currently offline  Olate
Messages: 5
Registered: March 2007
Junior Member
Kernel: 2.6.18-ovz028test018.1
vzctl: 3.0.14

Kernel was a RPM install.

Last few things from dmesg that I think are relevant are:

VE: 301: stopped
VE: 301: failed to start with err=-11
VE: 301: stopped
VE: 301: failed to start with err=-11
VE: 301: stopped
VE: 301: failed to start with err=-11
Re: env_create error: Resource temporarily unavailable [message #11246 is a reply to message #11235] Fri, 16 March 2007 07:40 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
OOMGUARPAGES="16384:131072"
KMEMSIZE="16384:131072"

It is certainly not enough! Note, that thess paramaters are measured in bytes, unlike, for example, privvmpages, that is measured in pages.

Maybe some other parameters also need to be increased.

Vasily.

Re: env_create error: Resource temporarily unavailable [message #11254 is a reply to message #11235] Fri, 16 March 2007 09:02 Go to previous messageGo to next message
Olate is currently offline  Olate
Messages: 5
Registered: March 2007
Junior Member
Thanks, that was it.
Re: env_create error: Resource temporarily unavailable [message #11260 is a reply to message #11254] Fri, 16 March 2007 11:03 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

I strongly suggest you to use vzcfgvalidate utility to check your VE config. For example, this is what it told me on your config:

Error: barrier should be equal limit for numproc (currently, 85:95)
Error: barrier should be equal limit for numtcpsock (currently, 95:100)
Error: barrier should be equal limit for numothersock (currently, 95:100)
Error: limit should be = 9223372036854775807 for vmguarpages (currently, 262144)
Error: limit should be = 9223372036854775807 for oomguarpages (currently, 131072)
Error: limit should be = 9223372036854775807 for physpages (currently, 1048576)
Error: kmemsize.bar should be > 2736128 (currently, 16384)
Warning: privvmpages.bar should be > 32768 (currently, 16384)
Error: tcpsndbuf.lim-tcpsndbuf.bar should be > 243200 (currently, 114688)
Error: othersockbuf.lim-othersockbuf.bar should be > 243200 (currently, 114688)
Warning: tcprcvbuf.lim-tcprcvbuf.bar should be > 243200 (currently, 114688)
Warning: tcprcvbuf.bar should be > 65536 (currently, 16384)
Warning: tcpsndbuf.bar should be > 65536 (currently, 16384)
Warning: dgramrcvbuf.bar should be > 32768 (currently, 16384)
Warning: othersockbuf.bar should be > 32768 (currently, 16384)


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: permanet ip for all VE0 across network
Next Topic: *SOLVED* Create FC6 Template
Goto Forum:
  


Current Time: Thu Jul 11 17:20:31 GMT 2024

Total time taken to generate the page: 0.02356 seconds