[StarCluster] PROBLEM ATTACHING VOLUME ON CENTOS init.d.nfs NOT FOUND

MacMullan, Hugh hughmac at wharton.upenn.edu
Tue Apr 21 09:21:23 EDT 2015


Hi Andrea:

Starcluster doesn't deal with CentOS perfectly.

* What version of CentOS are you running?
* Do you have 'nfs-utils' package installed?

For CentOS 6 you'll also need:
echo 'exit 0' > /etc/init.d/portmap
chmod +x /etc/init.d/portmap

For CentOS 7 I had to do even more fiddling, since it's now systemd-based, and some other funkiness is going on (StarCluster being too smart for its own good):

echo -e "rm /etc/exports.d/*\nexportfs -var\nsystemctl restart nfs-server.service" > /etc/init.d/nfs
chmod +x /etc/init.d/nfs
echo 'exit 0' > /etc/init.d/portmap
chmod +x /etc/init.d/portmap

I hope that's useful.

-Hugh

-----Original Message-----
From: starcluster-bounces at mit.edu [mailto:starcluster-bounces at mit.edu] On Behalf Of Andrea La Rizza
Sent: Tuesday, April 21, 2015 8:55 AM
To: starcluster at mit.edu
Subject: [StarCluster] PROBLEM ATTACHING VOLUME ON CENTOS init.d.nfs NOT FOUND

I have this error while running the cluster with my private CentOS AMI.

 >>> Starting NFS server on master
!!! ERROR - Error occured while running plugin 
'starcluster.clustersetup.DefaultClusterSetup':
!!! ERROR - remote command 'source /etc/profile && /etc/init.d/nfs
!!! ERROR - start' failed with status 127:
!!! ERROR - bash: /etc/init.d/nfs: No such file or directory

This is what I have in my init.d folder:

[root at master init.d]# ls
functions  netconsole  network  README
_______________________________________________
StarCluster mailing list
StarCluster at mit.edu
http://mailman.mit.edu/mailman/listinfo/starcluster



More information about the StarCluster mailing list