Changes

Jump to: navigation, search

Resource shortage

280 bytes added, 12:40, 3 July 2006
Note about floating point arithm. added to Disk quota
</li>
<li>To increase the disk space quota, use vzctl set --diskspace. For example, we want to increase it by a factor of 1.52:
<pre>
vzctl set 123 --diskspace $((1048576*1.52 )):$((1153434*1.52 )) --save
</pre>
</li>
<li>To increase the disk inodes quota, use <tt>vzctl set --diskinodes</tt>. For example, we want to increase it by a factor of 1.53:
<pre>
vzctl set 123 --diskinodes $((200000*1.53 )):$((220000*1.53 )) --save
</pre>
</li>
</ol>
 
{{Note|shell does not support floating-point arithmetics, i.e. you can not use expressions like <code>$((&nbsp;220000*1.5&nbsp;))</code>. To use floating point, try <code>bc</code> instead, something like this: <code><nowiki>$(echo&nbsp;220000*1.5&nbsp;|&nbsp;bc)</nowiki></code>.}}
[[Category:Troubleshooting]]
[[Category:HOWTO]]

Navigation menu