It seems desirable to run opnmosix on internal subnet. It would be nice if setpe detected that an entry in /etc/openmosix.map was one of this machines interfaces instead of only checking for main one. Anyway I've put in a slight change to allow the node number to be put in /local/etc/om-node-num [you might like to change that] for use in a -p option to setpe. --- /tmp/openmosix 2003-09-09 13:35:05.000000000 +1000 +++ /etc/init.d/openmosix 2003-09-09 13:15:48.000000000 +1000 @@ -41,9 +41,15 @@ AUTODISC=1 fi +OMnode="" +if [ -f /local/etc/om-node-num ] +then + OMnode="-p $(< /local/etc/om-node-num)" +fi + # Check the map-file for sanity if [ $AUTODISC -eq 0 ]; then - setpe -c -f $OMOSIX_MAP &> /dev/null + setpe $OMnode -c -f $OMOSIX_MAP &> /dev/null if [ ! $? -eq 0 ]; then einfo "openMosix: Invalid configuration in map-file $OMOSIX_MAP, using autodiscovery" AUTODISC=1 @@ -75,7 +81,7 @@ SETPE_OPTIONS="" [ $MYOMID ] && SETPE_OPTIONS="$SETPE_OPTIONS -p $MYOMID" [ $MOSGATES ] && SETPE_OPTIONS="$SETPE_OPTIONS -g $MOSGATES" - setpe -W $SETPE_OPTIONS -f $OMOSIX_MAP + setpe $OMnode -W $SETPE_OPTIONS -f $OMOSIX_MAP else # Configurate openMosix with the omdiscd OMDISCD_OPTIONS=""
I checked in the changes you suggested to the init-script. I also bumped the version to -r1 tom make sure everyone get's the new init. Please have a look at it and tell me if everything is as intended. Thanks for your help.
As i got no response I'll close this bug now.