Open main menu

OpenVZ Virtuozzo Containers Wiki β

Editing DB2 installation

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 8: Line 8:
 
== Create a new VE ==
 
== Create a new VE ==
  
I created a new VE for the Debian distribution using debootstrap, as described in [[Debian template creation]].
+
I created a new VE for the Debian distribution using debootstrap.
  
 
== Set VE resource limits appropriately ==
 
== Set VE resource limits appropriately ==
  
These are tested resource limits for x86-64 system running Debian/GNU Linux 5.0.6:
+
DB2 installation can fail and it will not be possible to operate the database if your resource limits are too low. I used these limits for a small database:
  
* kmemsize to 26214400:29491200
+
* kmemsize to 10,000,000
* privvmpages to 2097152:unlimited
+
* privvmpages to 300,000
* shmpages to 1572864
+
* shmpages to 80,000
* numproc to 400
+
* numproc to 150
* tcpsndbuf to 1720320:2703360
+
* tcpsndbuf to 700,000
* tcprcvbuf to 1720320:2703360
+
* tcprcvbuf to 700,000
* vmguardpages to 2097152:unlimited
+
* diskspace to 6,000,000
* oomguardpages to 26112:unlimited
 
 
 
And according to DB2 9 documentation, the following minimal guest kernel options must be set in /etc/sysctl.conf:
 
<pre>kernel.shmmax = 1073741824
 
kernel.sem = 250 256000  32 1024
 
kernel.msgmax = 65535
 
kernel.msgmnb = 65535</pre>
 
  
 
== Install additional packages ==
 
== Install additional packages ==
Line 54: Line 47:
 
== Post-install actions ==
 
== Post-install actions ==
  
This is where it gets yukky. DB2 wants to run a browser inside the VE. It wants to run Java applets inside the browser. I installed Iceweasel, but the post-install script does not recognise it. I was eventually able to hack the script to recognise and use the browser but it crashed on one of the Java applets. I think you can get by without running the post-install.
+
This is where it gets yukky. DB2 wants to run a browser inside the VPS. It wants to run Java applets inside the browser. I installed Iceweasel, but the post-install script does not recognise it. I was eventually able to hack the script to recognise and use the browser but it crashed on one of the Java applets. I think you can get by without running the post-install.
  
 
Here's what to do instead:
 
Here's what to do instead:
Line 137: Line 130:
  
 
Please provide feedback in the discussion (Talk) page about improvements to this HOWTO.
 
Please provide feedback in the discussion (Talk) page about improvements to this HOWTO.
 
[[Category:HOWTO]]
 

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)