|
[Sponsors] |
August 2, 2009, 08:00 |
|
#21 |
Senior Member
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18 |
Dear Tomislav,
it's always interesting to see what people use your developments for ... We never thought of this applications, but there is no reason why it should not work with some additional modules, care and attention. @nfs: The nfs module is shipped with the distro and I used it create the distro. Simply mount directories as usual (and with the usual problem). @sshd: It's shiped with SLAX, it not switched on by default. See here: http://www.slax.org/modules.php?search=sshd&category= @orte error: I see the same problem and have no idea right now. I would also consider Alberto's OpenSUSE image. It's big, but probably more complete in tems of networking. http://www.cfd-online.com/Forums/ope...se-studio.html Henrik |
|
August 2, 2009, 08:42 |
|
#22 | |
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
Quote:
I'm a reall noob in networking. why do I need to export the directories (and which directories) with nfs? The only thing I can think of is that processes on the slave node are able to write to the master node. Is this true? I thought that mpirun (TCP/IP) takes care of the write() function. @sshd solved, thank you for the advice. I wrote the wrong address for one host by accident. @orte error: The problem here is that mpirun uses sshd which in turn calls for a non interactive login bash shell. From what I've been reading in bash man pages, bash uses different configuration files, depending on the manner it is called (/etc/profile for all, for interactive login or non interactive with --login option, ~/.bash_profile then ~/.bash_login, ... and so on). what I did, in my newbish way is this: I've copied the commands that source /OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc and all else from .bash_profile to EVERY config bash script I could find. It didn't help at all. First of all, I can't find where the interactive non-login bash is started, on the main node, or on the slave? And is there some recognition condition for when the bash is in non interactive mode? Then I could tell it to source /OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc script and set everything right. I've tried using mpirun this way Code:
mpirun --prefix=/path/to/Open MPI/on/SLAX/Live -H mario -np 2 interFoam -parallel Code:
/pathname/of/mpirun -H hostname -H mario -np 2 interFoam -parallel Then I tried passing enviromental variables to the slave node with -x command and using the instructions for mpirun calls found on OpenCFD site: Code:
/pathname/of/mpirun -x LD_LIBRARY_PATH=$LD_LIBRARY_PATH, -x PATH=$PATH -H mario -np 2 `which interFoam` -parallel mpi has noticed that a process on host mario has terminated with escape signal 11 (Segmentation Fault) If I'm not hit in the head too much, after 15 rounds in the ring with mpirun, this could mean that the process started on mario slave node, and terminated for some other reasons. Perhaps I should use -x and pass other FOAM variables such as $FOAM_MPI_LIBBIN and similar. @suseLIVE I'm looking into it right now. My problem is that I'm really new to networking so it's hard for me to know which way to go when an error occurs. If it were C++, there would be NO problem. I believe that everything is ok now in the networking part of the woods, the problem is with non-interactive login shell, at least that's what I've read. thank You VERY much for the advice! |
||
August 2, 2009, 08:44 |
|
#23 |
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
oh, I forgot: I've tried setting
Code:
distributed yes; of course, it didn't work. what a suprise. |
|
August 3, 2009, 00:25 |
|
#24 |
Member
Andrew King
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 82
Rep Power: 17 |
Hi,
I use the following in /etc/ssh/sshd_config to pass the required FOAM environment variables. Placed after "AcceptEnv LANG LC_*" (at least on ubuntu). Code:
AcceptEnv PATH AcceptEnv LD_LIBRARY_PATH AcceptEnv FOAM_* AcceptEnv WM_* AcceptEnv OPAL_PREFIX AcceptEnv MPI_BUFFER_SIZE Code:
mpirun -np 2 -host host1,host2 $(which icoFoam) -parallel Not sure exactly where sshd_config lives in SLAX though. but the above should work. Cheers, Andrew
__________________
Dr Andrew King Fluid Dynamics Research Group Curtin University |
|
August 3, 2009, 00:51 |
|
#25 | |
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
Quote:
It works now, but I still have some questions regardint mpirun. Question 1: If I only have damBreak directory on my master node, then OpenFOAM starts the parallel simulation, but exits with an error message telling me it cannot read decomposeParDict. Why? Question 2: When I scp damBreak on the slave node from the master node and execute my command explained below, data only gets written on the slave node. Why? What happens if I want to run the simulation on 12 slave nodes at the computer lab, will the data be written on all of them and not on the master node? My command is: Code:
$MPI_ARCH_PATH/bin/mpirun -np 2 -H mario `which interFoam` -parallel Best regards, Tomislav |
||
August 3, 2009, 04:54 |
|
#26 |
Member
Andrew King
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 82
Rep Power: 17 |
Hmmm, not sure about this one. We generally use an nfs mounted partition for the parallel runs.
From the command that you have run - I'm assuming that all your data ended up on 'mario', and mario isn't the master node. In this situation (**note that I haven't tested this**). You should be able to copy the processor{1,2,...,n} directories from each of the slave nodes to the master node and then use reconstructPar to put them back together. Unfortunately you are at the limit of my parallel experiences. So there's a bit of guesswork here. Cheers Andrew
__________________
Dr Andrew King Fluid Dynamics Research Group Curtin University |
|
August 3, 2009, 10:25 |
|
#27 | ||
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
Quote:
Quote:
Thank you very much for your advice! Tomislav |
|||
November 30, 2009, 14:39 |
problem of unpacking
|
#28 | |
New Member
KJHKLJHJ
Join Date: Nov 2009
Posts: 1
Rep Power: 0 |
Quote:
I've tried to make a bootable USB pen, but during unpacking, I get this message: tar: : .......... Cannot change ownership to uid 1000, gid 100: Operation not permitted" could anybody help me? thanks in advance |
||
January 20, 2010, 16:35 |
OpenFOAM SLAX
|
#29 |
New Member
Sergio Perez
Join Date: Jan 2010
Posts: 3
Rep Power: 16 |
Greetings. I am trying to use the SLAX version of OPENFoam, but I am having some difficulties.
After downloading, I burned the CD as instructed, and found 3 directories on the CD: boot, slax, and an empty conference directory. However, I can't find any further instructions as to how proceed. I looked through the directories, but cannot find anything. Any help would be greatly appreciated! Thank you. Sergio P. |
|
January 20, 2010, 16:46 |
|
#30 |
Senior Member
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18 |
Sergio,
I understand that you made an ISO out of the directories that you found in the tar and burned that. Is this correct? If NO: please read #3 more carefully. If YES: What happens when you boot the CD? Henrik |
|
January 20, 2010, 17:20 |
|
#31 |
New Member
Sergio Perez
Join Date: Jan 2010
Posts: 3
Rep Power: 16 |
Thanks Henrik,
Apparently God did not encumber me with excess brains - I was not booting up properly. All apears OK now. Thanks for the quick response. Sergio Perez |
|
January 21, 2010, 10:35 |
|
#32 |
New Member
Sergio Perez
Join Date: Jan 2010
Posts: 3
Rep Power: 16 |
Last night I tried the first OpenFOAM tutorial using SLAX, and it worked great.
Thanks for creating the SLAX version - it's been a huge help in getting OpenFOAM running! A very basic tip to those who, like myself, are not the most computer literate: to boot up the disk, your computer may not automatically do so when you start the computer with the disk in it. You may need to press F2 repeatedly after starting the computer to get into BIOS. A screen will appear, and go to "Boot Sequence" (or something like it). Make sure that CD/DVD/CD is first on the list in the boot sequence. Then save it as you exit from BIOS. Also, in the first OpenFOAM tutorial, the procedure from the OpenFOAM website calls for changing the directory near the beginning to something/incompressible/icoFoam... it appears there is no incompressible directory, but leaving out the incompressible part appears to work fine. Again, many grateful thanks to the creators of OpenFOAM and the SLAX version. Sergio Perez |
|
May 27, 2010, 23:53 |
data storage, viewer
|
#33 |
New Member
Join Date: May 2009
Posts: 14
Rep Power: 17 |
Hi there,
first off I really appreciate this OF SLAX Version, it is a great chance for OF to attract new users due to it's simplicity I guess. How do you deal with the data storage? Is it possible to shift the time-step folders to an internal disc or another usb, or do I have to store all data on the usb I'm working from? Thanks in advance and best regards, Michael Last edited by Hasselhoff; May 28, 2010 at 03:09. |
|
May 28, 2010, 03:41 |
|
#34 |
Senior Member
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18 |
Dear Michael,
thanks for your interest in OpenFOAM on SLAX. This release is about a year old. Please have a look here http://www.cfd-online.com/Forums/ope...d-kubuntu.html I think this release will all your requirements. Best Regards, Henrik Rusche |
|
May 31, 2010, 02:18 |
|
#35 |
New Member
Join Date: May 2009
Posts: 14
Rep Power: 17 |
Thanks Henrik. I am now working with this version.
best regards, Michael |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |
The OpenFOAM extensions project | mbeaudoin | OpenFOAM | 16 | October 9, 2007 10:33 |
OpenFOAM Debian packaging current status problems and TODOs | oseen | OpenFOAM Installation | 9 | August 26, 2007 14:50 |