updatenode will run all scripts defined for the node(s) in the following attributes (postbootscript,postscripts) by default when you use the -P flag; or run it with no flags which implies you are running -S -P -F options. postbootscripts=otherpkgs postscripts=syslog,remoteshell,syncfiles,syslog,new_set
You can specify specific scripts to run on the -P flag so instead of updatenode -P or updatenode run the following not to run the postbootscript updatenode -S -P syslog,remoteshell,syncfiles,syslog,new_set -F I admit the man page is misleading. Will fix that. Lissa K. Valletta 8-3/B10 Poughkeepsie, NY 12601 (tie 293) 433-3102 From: Craig West <[email protected]> To: xCAT Users Mailing list <[email protected]> Date: 01/02/2013 06:45 PM Subject: [xcat-user] Post BOOT scripts Hi, Trying to get an understanding of postscript versus postbootscripts. I understand that postbootscripts are run after the first boot, but it seems that they also get run every time updatenode <node> is run as well. I was hoping to use postbootscripts as a method for running scripts that only need to be run once after the machine is installed. Of course, they are still able to be run manually if I need them again. An example is configuring the Infiniband device. A script is provided called "configiba.1port", but putting it in postbootscripts and running updatenode makes that script get run again (each time the updatenode postscripts section is called). This script actually restarts the Infiniband stack, which has the potential to kill jobs and also causes Lustre issues (it hangs as Lustre is using the device and the script never completes). If this script was run once after boot only it wouldn't be an issue. For now we have modified the script to stop it restarting, but its not the best of solutions. Is this a bug, or a misunderstanding of the point of postbootscripts? The documentation I have found is not clear either way. Note: Running Centos 6, xCAT 2.7.6 and disk full installs. Thanks, Craig. ------------------------------------------------------------------------------ Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and much more. Keep your Java skills current with LearnJavaNow - 200+ hours of step-by-step video tutorials by Java experts. SALE $49.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122612 _______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
<<inline: graycol.gif>>
------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712
_______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
