PAR Technologies V5 manual Appendix C. Upgrading ParaStation4 to ParaStation5, # psiadmin -s

Page 93

Appendix C. Upgrading ParaStation4 to ParaStation5

This appendix explains how to upgrade an existing ParaStation4 installation to the current ParaStation5 version.

C.1. Building and installing ParaStation5 packages

Just recompile the packages:

#rpmbuild --rebuild psmgmt.5.0.0-0.src.rpm

#rpm -U psmgmt.5.0.0-0.i586.rpm

#rpmbuild --rebuild pscom.5.0.0-0.src.rpm

#rpm -U pscom.5.0.0-0.i586.rpm

#rpm -U pscom-modules.5.0.0-0.i586.rpm

#rpmbuild --rebuild psmpi2.5.0.0-1.src.rpm

#rpm -U psmpi2.5.0.0-1.i586.rpm

Before installing the new packages, stop the ParaStation psid daemon on each node. This will terminate all currently running jobs!

Install the psmgmt, pscom and psmpi2 packages on all nodes using the rpm command. Install the psdoc package holding the documantation on the login node(s) and frontend servers.

The existing ParaStation4 configuation file /opt/parastation/config/parastation.conf is just fine for ParaStation5. If new features like process pinning should be used, adjust the existing configuration file. Look for pinProcs, CPUmap, bindMem, supplGrps and RLimit Core entries in the new template file parastation.conf.tmpl, copy them to the current configuration file and adjust them to your needs.

The configuration file of ParaStation5 located in /etc is no longer a symbolic link to /opt/parastation/config/parastation.conf, therefore we recommend to copy this file to /etc.

Restart the ParaStation daemons:

# psiadmin -s

This will startup the psid on all nodes of the cluster. Check with psiadmin command if all nodes and interconnects are available.

C.2. Changes to the runtime environment

When running applications with ParaStation5, some differences to ParaStation4 must be observed.

First of all, jobs must be started using the new mpiexec command. Refer to mpiexec(8) for options and details.

The former mpirun command is no longer supported! If it is still available, due to an ParaStation4 mpich- ps4 package still installed, this command will not run executables compiled and linked with ParaStation5!

In addition, jobs may no longer be started by running the executable, like

$ ./myprog …

ParaStation5 Administrator's Guide

89

Image 93
Contents Administrators Guide Info@par-tec.com ParaStation5 Administrators GuideTable of Contents Problem different groups of nodes are seen as up or down History of ParaStation IntroductionAbout this document Runtime daemon Technical overviewLibraries Kernel modulesLicense Installation PrerequisitesHardware Directory structure SoftwareKernel version Getting the ParaStation5 RPM packages Installation via RPM packagesMan Mpi2, mpi2-intel, mpi2-pgi, mpi2-pscInstalling the RPMs Compiling the ParaStation5 packages from sourceFile Version Installing the documentation Etc/init.d/xinetd reloadParaStation entries Further steps Installing MPI# rpm -Uv psdoc-5.0.0-1.noarch.rpm # rpm -Uv psmpi2.5.0.0-1.i586.rpmUninstalling ParaStation5 ParaStation5 Administrators Guide Configuration of the ParaStation system ConfigurationCopy template Define Number of nodesEnable optimized network drivers # /opt/parastation/bin/testconfigHostname id HWType runJob starter accounter Testing the installation # /opt/parastation/bin/testnodes -np nodes # /opt/parastation/bin/psiadmin -s -c listParaStation5 pscom communication library Insight ParaStation5# echo 10 /proc/sys/ps4/state/ResendTimeout Directory /proc/sys/ps4/state# cat /proc/sys/ps4/state/connections Directory /proc/sys/ps4/local Controlling process placementUsing the ParaStation5 queuing facility Using non-ParaStationapplicationsExporting environment variables for a task Export LDPRELOAD=/opt/parastation/lib64/libp4tcp.so Controlling ParaStation5 communication pathsPspshm or Pspsharedmem Authentication within ParaStation5PSPP4S or PSPP4SOCK Export PSPLIB=/opt/parastation/lib64/libpscomopenib.soSingle system view Homogeneous user ID spaceParallel shell tool Nodes and CPUsIntegrating external queuing systems Integration with AFSTok2env PSIRARGPRE0=/some/path/env2tokMulticasts Copying files in parallel Using ParaStation accounting# UseMCast Route add -net 224.0.0.0 netmask 240.0.0.0 dev ethXUsing memory binding Using ParaStation process pinningChanging the default ports for psid8 Spawning processes belonging to all groupsPort Troubleshooting Problem psiadmin returns errorProblem node shown as down Problem bad performance Problem cannot start parallel taskProblem different groups of nodes are seen as up or down Problem cannot start process on frontendProblem psid does not startup, reports port in use Problem pssh failsProblem processes cannot access files on remote nodes Reference Pages ParaStation5 Administrators Guide Parastation.conf InstallDir inst-dir , InstallationDir inst-dirDescription ParametersStartscript SetupscriptStopscript StatusscriptOpenib P4sockMvapi ElanNrOfNodes num Accounter$GENERATE 1-96 node$0,2 $0 Node node17 16 HWType ethernet p4sock starter yes runJobs noDeadInterval num SelectTime timeLogLevel num MCastGroup group-numCPUTime time Core sizeDataSize size MemLock sizeProc CPUmap map Processes maxprocsStatusTimeout ms RdpTimeout msRdpClosedTimeout ms RdpResendTimeout msSee also ErrorsParaStation5 Administrators Guide Psiadmin SynopsisOptions Standard Input Standard ErrorStandard Output Extended descriptionExit AllAllproc cnt count Down Count hw hwHardware LoadRdp Summary max maxQuit User nodes Accounters nodesGroup nodes Maxproc nodesFreeOnSuspend nodes Master nodesHandleOldBins nodes NodesSort nodesRlrss nodes Cpumap nodesStatusTimeout nodes RdpTimeout nodesRdpClosedTimeout nodes RdpResendTimeout nodesRestart nodes Resolve nodesPsiddebug mask nodes Selecttime time nodesPattern Name Description HandleOldBins 0 1 nodes Rdpmaxretrans val nodes StatusTimeout ms nodes RdpTimeout ms nodesRdpClosedTimeout ms nodes RdpResendTimeout ms nodesQuiet FilesNormal VerbosePsid Configfile=file Debug=levelLogfile=file Filename TestconfigNum ? , --usage Show a help messageParaStation5 Administrators Guide Np num TestnodesCnt num MapParaStation5 Administrators Guide Testpse -npnum TestpseParaStation5 Administrators Guide Sock P4statNet ?,--helpParaStation5 Administrators Guide P4tcp AddDelete ParaStation5 Administrators Guide Pattern Description PsaccounterCoredir=dir Dumpcore?, --help Var/account/yyyymmdd Accounting files, one per dayPsaccview Lu,--ltotuser Lj,--ljobsLg,--ltotgroup Ls,--ltotsumAqtime CpuweightCputime EndInitialization file Mlisten ParaStation5 Administrators Guide Appendix A. Quick Installation Guide # /opt/parastation/bin/psiadmin psiadmin add # chkconfig -a /etc/init.d/parastationTesting Appendix B. ParaStation license Page Page Page # psiadmin -s Building and installing ParaStation5 packagesAppendix C. Upgrading ParaStation4 to ParaStation5 Changes to the runtime environmentPage ARP GlossarySee ParaStation Logger To share a common address space within a node ParaStation5 Administrators Guide