Hello Lissa, Thanks for your quick reply, the level of xCAT is 2.8.2. Your reply is great help to my question, I can see the installdir value defined in site table. But why I can get the installdir value in xcatinfo on statefull node, otherwise there is no "INSTALLDIR" on stateless node? 1.xcatinfo on statefull node XCATSERVER=192.168.1.1 INSTALLDIR=/install REBOOT=TRUE 2. xcatinfo on stateless node IMAGENAME='rhels6.4-x86_64-stateless-compute' TIMESTAMP='Wed Feb 12 09:24:09 CST 2014' NODE=compute001 XCATSERVER='192.168.1.1'
From: Lissa Valletta <[email protected]> To: xCAT Users Mailing list <[email protected]>, Cc: [email protected] Date: 2014/04/02 19:19 Subject: Re: [xcat-user] How to add value to xcatinfo file on stateless nodes What level of xCAT are you running. lsxcatd -a will tell us what level. You should have had an xcatinfo file created in /opt/xcat/xcatinfo on your node during install. If it is missing you can run updatenode <noderange> -s This command will recreate the xcatinfo file on the node. It is very unusual to not have your site installdir attribute defined as /install. In fact, that is the default in the script below, if it is not in the xcatinfo file. It is also xCAT's default for the site installdir variable. So even if the file is missing, the xcatdsklspost script will work. tabdump site | grep installdir "installdir","/install",, Lissa K. Valletta 8-3/B10 Poughkeepsie, NY 12601 (tie 293) 433-3102 Inactive hide details for Jiang Tao CS Sun ---04/02/2014 07:01:32 AM---Hi all, I have one question, the variable INSTALLDIR in Jiang Tao CS Sun ---04/02/2014 07:01:32 AM---Hi all, I have one question, the variable INSTALLDIR in xcatinfo on stateless From: Jiang Tao CS Sun <[email protected]> To: [email protected], Date: 04/02/2014 07:01 AM Subject: [xcat-user] How to add value to xcatinfo file on stateless nodes Hi all, I have one question, the variable INSTALLDIR in xcatinfo on stateless nodes. In post script xcatdsklspost, will check the value of INSTALLDIR , if value equal null, then grant "/install". if [ -f /opt/xcat/xcatinfo ]; then INSTALLDIR=`grep 'INSTALLDIR' /opt/xcat/xcatinfo |cut -d= -f2` fi if [ -z "$INSTALLDIR" ]; then INSTALLDIR="/install" fi I want to know, how and where can define $INSTALLDIR value in xcatinfo file so that can achieve INSTALLDIR=`grep 'INSTALLDIR' /opt/xcat/xcatinfo| cut -d=-f2`? Regards, Todd (Jiangtao) Sun Technical Support Specialist Platform Computing, IBM Systems and Technology Group ---------------------------------------------------------------------------------------- IBM Technical Computing community is now on IBM developerWorks SMC https://www.ibm.com/developerworks/servicemanagement/tc/ You can find Best Practices, Integration Scenarios, Deployment Docs in the Wiki and do Technical Q & A in the Forum in the community on SMC. ------------------------------------------------------------------------------ _______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user ------------------------------------------------------------------------------ _______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
<<inline: graycol.gif>>
------------------------------------------------------------------------------
_______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
