<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Tips_and_Tricks</title><link>https://sourceforge.net/p/xcat/wiki/Tips_and_Tricks/</link><description>Recent changes to Tips_and_Tricks</description><atom:link href="https://sourceforge.net/p/xcat/wiki/Tips_and_Tricks/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 04 Sep 2014 15:38:27 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/xcat/wiki/Tips_and_Tricks/feed" rel="self" type="application/rss+xml"/><item><title>Tips_and_Tricks modified by Lissa Valletta</title><link>https://sourceforge.net/p/xcat/wiki/Tips_and_Tricks/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -4,9 +4,17 @@

 ## Setting the Time Zone of a Diskless Image

-Try something like this (for RH system - should be similar for SuSE): 
-    
-    cat &amp;gt;/install/netboot/.......rootimg/etc/sysconfig/clock 
+~~~~
+
+   &lt;/pre&gt;&lt;pre&gt;cat &amp;gt;/install/netboot/.......rootimg/etc/sysconfig/clock &amp;lt;&amp;lt;EOF +="" ZONE="US/Mountain" +="" UTC="true" +="" ARC="false" +="" EOF="" +="" +="" cp="" -f="" usr="" share="" zoneinfo="" MST7MDT="" install="" netboot="" .......rootimg="" etc="" localtime&amp;lt;="" pre=""&amp;gt;
+
+~~~~

 The above will change the default to US/Mountain - MST7MDT time. 

@@ -16,7 +24,9 @@

 This tip comes from Shadd, off of the xcat mailing list: its a quick and dirty way to wipe the hard drives in the cluster. 

-psh all dd if=/dev/urandom of=/dev/hda &amp;amp;&amp;amp; dd if=/dev/zero of=/dev/hda 
+~~~~
+  psh all dd if=/dev/urandom of=/dev/hda &amp;amp;&amp;amp; dd if=/dev/zero of=/dev/hda 
+~~~~

 if you want to erase all drives on all nodes that should be enough just change hda to sda if it is scsi 

@@ -36,13 +46,13 @@

 ## Use lsdef to list node attributes

-All of the *def (object definition) commands know which tables all the attributes belong. And since they default to working with the node object type, **lsdef _nodename_** will list all the attributes that are set for this node in any table. 
+All of the *def (object definition) commands know which tables all the attributes belong. And since they default to working with the node object type, **lsdef nodename** will list all the attributes that are set for this node in any table. 

 * * *

 ## Database Documentation

-An overview of all the tables can be viewed by running **man xcatdb** or by going to the [xCAT Database Man Pages](http://xcat.sf.net/man5/xcatdb.5.html). A description of a specific table is available using **man _tablename_** . 
+An overview of all the tables can be viewed by running **man xcatdb** or by going to the [xCAT Database Man Pages](http://xcat.sf.net/man5/xcatdb.5.html). A description of a specific table is available using **man tablename** . 

@@ -72,6 +82,8 @@

 One way to work around this, in the pre-partitioned drive install case, is to add the following line to the kickstart install template: 

+~~~~
     clearpart --none
+~~~~

 * * *
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lissa Valletta</dc:creator><pubDate>Thu, 04 Sep 2014 15:38:27 -0000</pubDate><guid>https://sourceforge.netedab8570ae4235d2e62636dd2b592294efc6ef27</guid></item><item><title>Tips_and_Tricks modified by Andy Wray</title><link>https://sourceforge.net/p/xcat/wiki/Tips_and_Tricks/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -62,3 +62,16 @@
 ## Install Server Notes

 [Here are notes to set up an install server with SLES10.1 ](InstallServer) 
+
+## What to do if RHELS 6.x install fails with "cleardisksel" error
+
+If RHELS 6.x fails to install using xCAT 2.7 or later, then the problem could due to the fact that xCAT now puts the "cmdline" argument on the kernel command line when installing RHELS 6.x on a node. Then if the RHELS 6.x kickstart install template does not include something defining the partitions (e.g., installing onto a pre-partitioned drive), then the following error will occur: 
+    
+    Examining storage devices
+    In interactive step cleardiskssel, can't continue
+
+One way to work around this, in the pre-partitioned drive install case, is to add the following line to the kickstart install template: 
+    
+    clearpart --none
+
+* * *
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Wray</dc:creator><pubDate>Mon, 23 Jun 2014 16:14:40 -0000</pubDate><guid>https://sourceforge.net32647ef3b1e326accfd4b6f1f91ce3c3ae23d236</guid></item><item><title>Tips_and_Tricks modified by Bruce</title><link>https://sourceforge.net/p/xcat/wiki/Tips_and_Tricks/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,6 +1,6 @@
 [TOC]

-# xCAT 2.0 User Tips
+# xCAT 2 User Tips and Tricks

 ## Setting the Time Zone of a Diskless Image

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bruce</dc:creator><pubDate>Mon, 23 Jun 2014 16:14:39 -0000</pubDate><guid>https://sourceforge.neta2742d4cdfb3d17abe34a93da342a53eff929f4b</guid></item><item><title>Tips_and_Tricks modified by Bruce</title><link>https://sourceforge.net/p/xcat/wiki/Tips_and_Tricks/</link><description>&lt;div class="markdown_content"&gt;&lt;div class="toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#xcat-20-user-tips"&gt;xCAT 2.0 User Tips&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="#setting-the-time-zone-of-a-diskless-image"&gt;Setting the Time Zone of a Diskless Image&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#wiping-node-hard-drives"&gt;Wiping Node Hard Drives&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#use-nodeset-wzxhzdk3nrwzxhzdk4-shell-instead-of-a-recovery-cd"&gt;Use "nodeset &amp;lt;nr&amp;gt; shell" Instead of a Recovery CD&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#use-lsdef-to-list-node-attributes"&gt;Use lsdef to list node attributes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#database-documentation"&gt;Database Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#use-regular-expressions-in-your-tables-to-greatly-reduce-the-size-of-the-tables"&gt;Use Regular Expressions in Your Tables to Greatly Reduce the Size of the Tables&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#install-esx-35"&gt;Install ESX 3.5&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#install-server-notes"&gt;Install Server Notes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h1 id="xcat-20-user-tips"&gt;xCAT 2.0 User Tips&lt;/h1&gt;
&lt;h2 id="setting-the-time-zone-of-a-diskless-image"&gt;Setting the Time Zone of a Diskless Image&lt;/h2&gt;
&lt;p&gt;Try something like this (for RH system - should be similar for SuSE): &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;cat&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;gt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;install&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;netboot&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;.......&lt;/span&gt;&lt;span class="n"&gt;rootimg&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;etc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;sysconfig&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;clock&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The above will change the default to US/Mountain - MST7MDT time. &lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id="wiping-node-hard-drives"&gt;Wiping Node Hard Drives&lt;/h2&gt;
&lt;p&gt;This tip comes from Shadd, off of the xcat mailing list: its a quick and dirty way to wipe the hard drives in the cluster. &lt;/p&gt;
&lt;p&gt;psh all dd if=/dev/urandom of=/dev/hda &amp;amp;&amp;amp; dd if=/dev/zero of=/dev/hda &lt;/p&gt;
&lt;p&gt;if you want to erase all drives on all nodes that should be enough just change hda to sda if it is scsi &lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id="use-nodeset-wzxhzdk3nrwzxhzdk4-shell-instead-of-a-recovery-cd"&gt;Use "nodeset &amp;lt;nr&amp;gt; shell" Instead of a Recovery CD&lt;/h2&gt;
&lt;p&gt;Why use a rescue CD when you can "nodeset &amp;lt;noderange&amp;gt; shell"? On the next boot, you should be able to psh, ssh, mount, vi, etc etc etc. The "nodeset &amp;lt;noderange&amp;gt; shell" command is like a builtin rescue CD for many nodes. &lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id="use-lsdef-to-list-node-attributes"&gt;Use lsdef to list node attributes&lt;/h2&gt;
&lt;p&gt;All of the *def (object definition) commands know which tables all the attributes belong. And since they default to working with the node object type, &lt;strong&gt;lsdef &lt;em&gt;nodename&lt;/em&gt;&lt;/strong&gt; will list all the attributes that are set for this node in any table. &lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id="database-documentation"&gt;Database Documentation&lt;/h2&gt;
&lt;p&gt;An overview of all the tables can be viewed by running &lt;strong&gt;man xcatdb&lt;/strong&gt; or by going to the &lt;a class="" href="http://xcat.sf.net/man5/xcatdb.5.html"&gt;xCAT Database Man Pages&lt;/a&gt;. A description of a specific table is available using &lt;strong&gt;man &lt;em&gt;tablename&lt;/em&gt;&lt;/strong&gt; . &lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id="use-regular-expressions-in-your-tables-to-greatly-reduce-the-size-of-the-tables"&gt;Use Regular Expressions in Your Tables to Greatly Reduce the Size of the Tables&lt;/h2&gt;
&lt;p&gt;In all the node-related tables (except for the &lt;strong&gt;nodelist&lt;/strong&gt; table), you can use regular expressions in a single row to represent many rows that would be only slightly different and conform to a pattern. See &lt;a class="" href="http://xcat.sf.net/man5/xcatdb.5.html"&gt;xCAT Database Man Pages&lt;/a&gt; for details and examples. &lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id="install-esx-35"&gt;Install ESX 3.5&lt;/h2&gt;
&lt;p&gt;&lt;a class="" href="../ESX_3.5_&amp;amp;_xCAT"&gt;See here for tutorial &lt;/a&gt; &lt;/p&gt;
&lt;h2 id="install-server-notes"&gt;Install Server Notes&lt;/h2&gt;
&lt;p&gt;&lt;a class="" href="/p/xcat/newwiki/InstallServer/"&gt;Here are notes to set up an install server with SLES10.1 &lt;/a&gt; &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bruce</dc:creator><pubDate>Mon, 23 Jun 2014 16:14:38 -0000</pubDate><guid>https://sourceforge.netde1d53a0bfff181a9bd1ba9ff0b78cc0b3410fcf</guid></item></channel></rss>