Changes between Version 4 and Version 5 of OsgVpbBuildEnvLinux
- Timestamp:
- Aug 3, 2010, 9:31:39 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OsgVpbBuildEnvLinux
v4 v5 4 4 5 5 Basically it is possible to render virtualPlanetBuilder Databases on MS Windows and Linux. Unfortunately MS Windows is not stable enough, maybe caused by NTFS and the heavy systemload (RAM, CPU, HDD). 6 To render large databases, it is absolutely necessary to use VPB on linux. This HowTo is guide to setup a proper6 To render large databases, it is absolutely necessary to use VPB on linux. This !HowTo is guide to setup a proper 7 7 8 8 … … 160 160 161 161 To fulfill this requirements, let's assume this setup: 162 * One node acts as server node and has the IP 192.168.0.55163 * Two nodes act as client nodes and have the IPs 192.168.0.54 and 192.168.0.56162 * One machine acts as server node and has the IP 192.168.0.55 163 * Two machines act as client nodes and have the IPs 192.168.0.54 and 192.168.0.56 164 164 * sshfs is used as network filesystem 165 165 * the username on all nodes is fsd 166 * The destination folder for the compiled database is {{/geodata}}167 * The local drive with geo source data is {{/localSourceData}}166 * The destination folder for the compiled database is /geodata 167 * The local drive with geo source data is /localSourceData 168 168 169 169 … … 178 178 }}} 179 179 180 Because remote ssh commands do not invoke the environment settings of an interactive shell, ssh must be prepared to provide the required environment variables also for ssh non-interactive-shell: 181 {{{ 182 #!sh 183 vim /etc/ssh/sshd_config 184 185 180 Because remote ssh commands do not invoke the environment settings of an interactive shell, ssh must be prepared to provide the required environment variables also for ssh non-interactive-shell: '''vim /etc/ssh/sshd_config''' 181 {{{ 182 #!sh 186 183 PermitUserEnvironment yes 187 188 vim /home/fsd/.ssh/environment 184 }}} 185 186 '''vim /home/fsd/.ssh/environment''' 187 {{{ 188 #!sh 189 189 LD_LIBRARY_PATH=/home/fsd/OpenSceneGraph/lib/:/home/fsd/VirtualPlanetBuilder/lib/ 190 190 OSG_FILE_PATH=/home/fsd/sampledata/:/home/fsd/sampledata/Images … … 209 209 210 210 === Preparation after boot of all clients === 211 * mount at the @@+++ server node @@the destination harddrive into the appropriate folder:211 * mount at the '''server node''' the destination harddrive into the appropriate folder: 212 212 {{{ 213 213 #!sh 214 214 mount /dev/sde1 /geodata 215 215 }}} 216 * mount on @@+++ all client nodes @@the destination directory of the server node over sshfs.216 * mount on '''all client nodes''' the destination directory of the server node over sshfs. 217 217 Let's assume the server has the IP 192.168.0.56: 218 218 {{{ … … 226 226 227 227 To allow easy recalls of the database build command, create a script: 228 {{vim /etc/geodata/compile_BRD_Sued.sh}}: 229 {{{ 228 '''vim /etc/geodata/compile_BRD_Sued.sh''' 229 {{{ 230 #!sh 230 231 #!/bin/sh 231 232 … … 245 246 246 247 If everything is setup correctly, the processing step ist very easy. Open an new shell on the server node and call as standard user (NOT ROOT!): 247 <code> 248 {{{ 249 #!sh 248 250 cd /geodata 249 251 ./compile_BRD_SUED.sh 250 </code> 252 }}} 251 253 252 254 While the database is creating, it is possible to watch the actual progress in another console. Because files are written and modified, the viewer application will give warnings or will terminate in few cases. This happens due to the creation progress and does not affect or modify the database, please ignore it. … … 262 264 263 265 To resume the crashed compile process, execute on the server node: 264 <code> 266 {{{ 267 #!sh 265 268 cd /geodata 266 269 vpbmaster --machines machinepool.txt --tasks build_master.tasks 267 </code> 268 269 Take care @@+++ NOT @@to call the compile script again, in this case all compiled tasks will be resetted to status "pending"270 }}} 271 272 Take care '''NOT''' to call the compile script again, in this case all compiled tasks will be resetted to status "pending" 270 273 271 274 See TerrainData for data sources. … … 274 277 275 278 If compiling fails at the beginning: 276 * reboot277 * Please check if you use a 64 bit operating system278 * check your limits: {{limits -a}}279 * reboot 280 * Please check if you use a 64 bit operating system 281 * check your limits: {{limits -a}} 279 282 280 283 If compiling fails after many hours or days: 281 * Maybe your OS runs out of any ressource, so reboot and resume (read above)282 * Check your hardware if resuming do not help.284 * Maybe your OS runs out of any ressource, so reboot and resume (read above) 285 * Check your hardware if resuming do not help. 283 286 284 287 If only local threads are executed, but no remote ones: 285 * Check your ssh setup, if you can login passwordless from the server node to the client nodes286 * Check your ssh setup, if your environmental variables on the client nodes are available if you login to a client node288 * Check your ssh setup, if you can login passwordless from the server node to the client nodes 289 * Check your ssh setup, if your environmental variables on the client nodes are available if you login to a client node