3.2. Xgrid Agents on C10.4
Starting Xgrid agents on additional C10.4 machines is very easy. Click on “System
Preferences” (the light switch icon) and select “Sharing” (you may need to open the lock
at the bottom of the window if it is closed by clicking on it and entering and administrator
password. Highlight “Xgrid” from among the list and click on “Configure”. Use “specific
controller” and select your server (mmac-servr00). (Thanks to Bonjour, a service
discovery protocol, all active Xgrid controllers will show up to be selected). Select
“Agent accepts tasks: always” (see note at the previous section) and enter your agent
password (e.g., cls-agent) for “Password”. Start, or restart (stop and start) the Xgrid
agent.
If you want to submit jobs from this computer as well, see the “one last thing” note
at the previous section.
4. Setting up a Common NFS Shared Directory
Since OpenMPI, LAM-MPI, and MPICH2 need the user’s executable to be available
on all nodes, the easiest (and due to the nature of some file-opening MPI programs) and
best way to do that is to have a directory on all nodes that is shared and has the same
absolute path. As we had problems with automatic (boot-time) sharing setup with AFP
(Apple Filing Protocol) we are going to describe a straightforward (however not globally
secure) way of sharing a common directory with nfs. The name and absolute path of this
directory is going to be “/NetCommon”. We are going to use some of the information
collected from [7][10].
4.1. NFS Sharing on S10.4 server
Open a terminal window and for the sake of simplicity obtain root access (“su –“).
Create the directory to be shared and give it a generous access right:
“mkdir /NetCommon; chmod 777 /NetCommon”. Start “Workgroup Manager” and log
in to it as “diradmin”. Click on “Sharing” on top and then click “All”, select the
“MacintoshHD” and then highlight the “NetCommon” folder. On the left, click on
“General” and check “Share this item”, click on “Save”. Click on Protocols and go
through all offered protocols unchecking and then saving each an every one (Windows,
FTP, Apple File Sharing) except for NFS which you should enable. While the NFS
protocol is showing, uncheck “read-only” but leave both “mapping” related boxes
checked. To make things simple, select “World” next to “Export this item to”; when done
click on save. Since now you have at least one NFS shared folder, your NFS service
should have been automatically enabled by the OS. To check on that, click “Admin” on
top (make sure that the arrow on the left of your server’s name points downwards) and
see if the dot next to NFS is green (which it should be). Additionally, the settings can be
checked from a terminal window, by typing: “nidump –r /exports /”.
4.2. NFS Import on C10.4 client
Open “NetInfo Manager” (found under “Applications→Utilities”), and unlock the
lock at the bottom by clicking on it and entering your admin password. If you do not have
Comentarios a estos manuales