<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Webalution&#039;s Tech Share &#187; Linux</title>
	<atom:link href="http://webalution.com/techshare/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://webalution.com/techshare</link>
	<description>Unix, Linux and Web Administration</description>
	<lastBuildDate>Sun, 17 Jan 2010 21:26:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Vmware Server 2 Web Access Connection Loss (vmware-hostd crash) Workarounds</title>
		<link>http://webalution.com/techshare/2009/11/16/vmware-server-2-web-access-connection-loss-vmware-hostd-crash-workarounds/</link>
		<comments>http://webalution.com/techshare/2009/11/16/vmware-server-2-web-access-connection-loss-vmware-hostd-crash-workarounds/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 03:24:22 +0000</pubDate>
		<dc:creator>George Knerr</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Vmware]]></category>

		<guid isPermaLink="false">http://webalution.com/techshare/?p=45</guid>
		<description><![CDATA[Summery of Issue With upgrading to RHEL 5.4, CentOS 5.4 and Ubuntu 9.10, the latest 2.x.x versions of VMware Server are having serious Web Access GUI connection failures, specifically vmware-hostd crashing repeatedly. This has been found with VMware Server 2.0.0, Vmware Server 2.0.1 and VMware Server 2.0.2. VMware Server 2.x.x was stable in the previous [...]]]></description>
			<content:encoded><![CDATA[<h2>Summery of Issue</h2>
<p>With upgrading to RHEL 5.4, CentOS 5.4 and Ubuntu 9.10, the latest 2.x.x versions of VMware Server are having serious Web Access GUI connection failures, specifically vmware-hostd crashing repeatedly.  This has been found with VMware Server 2.0.0, Vmware Server 2.0.1 and VMware Server 2.0.2.  VMware Server 2.x.x was stable in the previous revisions of the mentioned OS’s.  Below are two solutions that &#8220;appear&#8221; to make for a stable vmware-hostd process.  You are advised strongly to satisfy your own assuredness of the stability of vmware-hostd using these solutions before deployment to a mission critical environment.</p>
<p>Both solutions do not require you to stop all vmware related processes on the host server.  The following steps assume vmware-hostd has crashed and left VMware clients still running.</p>
<h2>Verify vmware-host Process has Failed</h2>
<p><strong><em>Note:</em></strong> If you get the below from the ps command you have another issue and this document is not for you.</p>
<div class="command_line"># ps -ef |grep vmware-hostd</p>
<p>root     10858     1    0 16:47 ?        00:00:02   /usr/lib/vmware/bin/vmware-hostd -a -d -u /etc/vmware/hostd/config.xml</p>
<p>root     11055   11026  0 17:02 pts/3    00:00:00 grep vmware-hostd</p></div>
<h2>Regaining VMware Server 2 Web Access GUI Control</h2>
<p>If you want to start the vmware-hostd process to manage your VMware Server 2 guest operating systems again you may do so with the following commands.</p>
<div class="command_line">
# export   LD_LIBRARY_PATH=/usr/lib/vmware/vmacore:/usr/lib/vmware/hostd:/usr/lib/vmware/lib/libxml2.so.2:/usr/lib/vmware/lib/libexpat.so.0:/usr/lib/vmware/lib/libstdc++.so.6:/usr/lib/vmware/lib/libgcc_s.so.1:/usr/lib/vmware/lib/libcrypto.so.0.9.8:/usr/lib/vmware/lib/libssl.so.0.9.8</p>
<p># /usr/lib/vmware/bin/vmware-hostd -a -d -u /etc/vmware/hostd/config.xml   &amp;</p>
<p>[1] 11139</p>
<p># &lt;hit return/enter&gt;</p>
<p>[1]+  Done                      /usr/lib/vmware/bin/vmware-hostd -a -d -u /etc/vmware/hostd/config.xml</p>
<p># ps -ef | grep hostd</p>
<p>root     11140     1 22 17:13 ?        00:00:01   /usr/lib/vmware/bin/vmware-hostd -a -d -u /etc/vmware/hostd/config.xml</p>
<p>root     11155   11026  0 17:13 pts/3    00:00:00 grep hostd&amp;</td>
</div>
<p>nohup is not needed in this instance as vmware-hostd runs as a daemon but the ampersand “&amp;” is.  Otherwise you’ll get logged output to the screen and when you exit your session vmware-hostd will stop too.</p>
<h2>Solving the VMware Server 2 Web Access GUI Connection Failure</h2>
<p>I recommend looking at both solutions.  I’m currently employing solution #2 but I’ll leave that decision up to you.  Both allow you to use the start/stop /etc/init.d/vmware script as you normally would and are permanent unlike the quick fix above to get the vmware-hostd process up and running again.  Again with both solutions you need to determine if they, in fact, produce a stable VMware Server 2 environment <em>before</em> deployment to a mission critical environment.</p>
<h2>SOLUTION #1 (libc-2.5.so reversion &#8211; RHEL 5.4 &amp; CentOS 5.4)</h2>
<p>Download and copy libc-2.5.so into place:</p>
<div class="command_line">
# lynx http://mirror.centos.org/centos/5.3/os/x86_64/CentOS/glibc-2.5-34.x86_64.rpm</p>
<p># rpm -Uvh &#8211;root=/tmp/ &#8211;nodeps ./glibc-2.5-34.x86_64.rpm</p>
<p># mkdir /usr/lib/vmware/lib/libc.so.6</p>
<p># cp /tmp/lib64/libc-2.5.so   /usr/lib/vmware/lib/libc.so.6/libc.so.6</td>
</div>
<p>Edit /usr/sbin/vmware-hostd adding the following export command just before the last line in the script as follows:</p>
<div class="command_line">
# tail -3 /usr/sbin/vmware-hostd</p>
<p>export   LD_LIBRARY_PATH=/usr/lib/vmware/lib/libc.so.6:$LD_LIBRARY_PATH</p>
<p>eval exec &#8220;$DEBUG_CMD&#8221; &#8220;$binary&#8221;   &#8220;$@&#8221;</td>
</div>
<h2>SOLUTION #2 (Circumventing vmware-hostd library wrapping script &#8211; RHEL 5.4, CentOS 5.4 &amp; Ubuntu 9.10 )</h2>
<p>Here is another method not requiring reverting to an older version of libc-2.5.so. The downside in this solution is it circumvents the dynamic library path building of the /usr/sbin/vmware-hostd script and executes the /usr/lib/vmware/bin/vmware-hostd binary directly.  I do not know if this will present problems in the future or not.</p>
<p>Below is the snippet from the modified /etc/init.d/vmware.  You can see I added a LD_LIBRARY_PATH statement, commented out the old exec call and added a new one.</p>
<div class="command_line">
# Start host agent</p>
<p>vmware_start_hostd() {</p>
<p>export   LD_LIBRARY_PATH=/usr/lib/vmware/vmacore:/usr/lib/vmware/hostd:/usr/lib/vmware/lib/libxml2.so.2:/usr/lib/vmware/lib/libexpat.so.0:/usr/lib/vmware/lib/libstdc++.so.6:/usr/lib/vmware/lib/libgcc_s.so.1:/usr/lib/vmware/lib/libcrypto.so.0.9.8:/usr/lib/vmware/lib/libssl.so.0.9.8</p>
<p>vmware_bg_exec &#8220;`vmware_product_name` Host   Agent&#8221; \</p>
<p>&#8220;$vmdb_answer_LIBDIR/bin/vmware-hostd&#8221; -a -d -u   &#8220;$vmware_etc_dir/hostd/config.xml&#8221;</p>
<p>#&#8221;$vmdb_answer_SBINDIR/vmware-hostd&#8221; -a -d -u   &#8220;$vmware_etc_dir/hostd/config.xml&#8221;</p>
<p>}
</p></div>
<h2>Restart VMware Server 2</h2>
<p>If you don’t have critical guest OS’s running you can stop the guests via the VMware Server 2 Web Access GUI and restart VMware:</p>
<div class="command_line">
# /etc/init.d/vmware restart</p>
<p>Stopping VMware autostart virtual machines:<br />
Virtual   machines                                          [  OK  ]<br />
Stopping VMware management services:<br />
VMware Virtual   Infrastructure Web Access<br />
VMware Server   Host Agent                                  [  OK  ]<br />
Stopping VMware services:<br />
VMware   Authentication Daemon                            [  OK  ]<br />
VM communication   interface socket family:                 [  OK  ]<br />
Virtual machine   communication interface                   [  OK  ]<br />
Virtual machine   monitor                                 [  OK  ]<br />
Bridged   networking on /dev/vmnet0                       [  OK  ]<br />
Host network   detection                                    [  OK  ]<br />
DHCP server on   /dev/vmnet1                                [  OK  ]<br />
Host-only   networking on /dev/vmnet1                       [  OK  ]<br />
DHCP server on   /dev/vmnet8                                [  OK  ]<br />
NAT service on   /dev/vmnet8                                [  OK  ]<br />
Host-only   networking on /dev/vmnet8                       [  OK  ]<br />
Virtual   ethernet                                          [  OK  ]<br />
Starting VMware services:<br />
Virtual machine   monitor                                   [  OK  ]<br />
Virtual machine   communication interface                   [  OK  ]<br />
VM communication   interface socket family:                 [  OK  ]<br />
Virtual   ethernet                                          [  OK  ]<br />
Bridged   networking on /dev/vmnet0                       [  OK  ]<br />
Host-only   networking on /dev/vmnet1 (background)          [  OK  ]<br />
DHCP server on /dev/vmnet1                              [  OK  ]<br />
Host-only   networking on /dev/vmnet8 (background)          [  OK  ]<br />
DHCP server on   /dev/vmnet8                                [  OK  ]<br />
NAT service on   /dev/vmnet8                                [  OK  ]<br />
VMware Server   Authentication Daemon (background)          [  OK  ]<br />
Shared Memory   Available                                   [  OK  ]<br />
Starting VMware management services:<br />
VMware Server   Host Agent (background)                     [  OK  ]<br />
VMware Virtual Infrastructure   Web Access<br />
Starting VMware autostart virtual machines:<br />
Virtual   machines                                          [  OK  ]
</p></div>
<p>
As more information on this issue becomes available this post will be updated.  Please post your findings too.</p>
<p>This information was generated by my experimentation and the helpful posts of the VMware Community, reference: <a href="http://communities.vmware.com/thread/229957?tstart=0">http://communities.vmware.com/thread/229957?tstart=0</a></p>
]]></content:encoded>
			<wfw:commentRss>http://webalution.com/techshare/2009/11/16/vmware-server-2-web-access-connection-loss-vmware-hostd-crash-workarounds/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Linux Command History &#8211; Add Time and Date Stamps</title>
		<link>http://webalution.com/techshare/2009/11/13/linux-command-history-add-time-and-date-stamps/</link>
		<comments>http://webalution.com/techshare/2009/11/13/linux-command-history-add-time-and-date-stamps/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 15:47:46 +0000</pubDate>
		<dc:creator>George Knerr</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://webalution.com/techshare/?p=39</guid>
		<description><![CDATA[Ever want to know the time and date you executed a specific command on your Linux server? If you&#8217;re like me and constantly using your Linux command history in your bash shell this little addition to your .bash_profile comes in very handy. Append these directives to you .bash_profile in your user directory: HISTSIZE=10000 HISTFILESIZE=&#8221; HISTCONTROL=ignoreboth [...]]]></description>
			<content:encoded><![CDATA[<p>Ever want to know the time and date you executed a specific command on your Linux server?  If you&#8217;re like me and constantly using your Linux command history in your bash shell this little addition to your .bash_profile comes in very handy.</p>
<p>Append these directives to you .bash_profile in your user directory:</p>
<p>HISTSIZE=10000<br />
HISTFILESIZE=&#8221;<br />
HISTCONTROL=ignoreboth<br />
HISTTIMEFORMAT=&#8217;%a, %d %b %Y %l:%M:%S%p %z &#8216;</p>
<p>In this case a very large history will be kept, 10,000 commands to be exact.  The output from a history command will look like this:</p>
<p>84  Fri, 13 Nov 2009  9:50:10AM -0500 history<br />
85  Fri, 13 Nov 2009  9:57:16AM -0500 locate .bash_profile<br />
86  Fri, 13 Nov 2009  9:57:38AM -0500 cat .bash_profile<br />
87  Fri, 13 Nov 2009  9:58:50AM -0500 history</p>
<p>To have the changes to your .bash_profile take effect do one of the following:</p>
<ul>
<li># . .bash_profile</li>
<li># source .bash_profile</li>
<li> or thirdly log out and back in</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://webalution.com/techshare/2009/11/13/linux-command-history-add-time-and-date-stamps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OpenFiler Vmware Guest Raid 1 Array Creation</title>
		<link>http://webalution.com/techshare/2009/09/04/openfiler-vmware-guest-raid-1-array-creation/</link>
		<comments>http://webalution.com/techshare/2009/09/04/openfiler-vmware-guest-raid-1-array-creation/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 18:07:24 +0000</pubDate>
		<dc:creator>George Knerr</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Vmware]]></category>
		<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[iSCSI Target]]></category>
		<category><![CDATA[opefiler vmware appliance]]></category>
		<category><![CDATA[openfiler]]></category>
		<category><![CDATA[openfiler raid]]></category>
		<category><![CDATA[Vista iSCSI]]></category>

		<guid isPermaLink="false">http://webalution.com/techshare/2009/12/04/openfiler-raid1-setup/</guid>
		<description><![CDATA[Summary This is part 1 in a proof of concept serious involving the creation of a RAID 1 iSCSI Target using OpenFiler 2.13 and Vmware Server 2.  We will purposely fail one of the virtual disks in the array rebuild the array and verify the data.  In part one of the series we will create [...]]]></description>
			<content:encoded><![CDATA[<h2>Summary</h2>
<p>This is part 1 in a proof of concept serious involving the creation of a RAID 1 iSCSI Target using OpenFiler 2.13 and Vmware Server 2.  We will purposely fail one of the virtual disks in the array rebuild the array and verify the data.  In part one of the series we will create the Raid 1 array.  In subsequent parts we will create an ISCSI Target, connect Windows Vista using iSCSI Initiator and simulate RAID 1 drive failure and recovery.  The OpenFiler vmware appliance is free to download and use.  The installation of both Vmware Server 2 and OpenFiler 2.13 vmware appliance will not be covered here.</p>
<h2>Create VMware virtual disks</h2>
<p>From the VMware Server  2 web administration create two 50 MB disks for the OpenFiler VMware guest  accepting the VMware defaults.</p>
<h2>Create Raid Partitions</h2>
<p>As seen in Figure 1,  navigate to <strong>openfiler &gt; Volumes &gt; Block Devices </strong>and select the  first of our newly created disks /dev/sdb.</p>
<p><strong>FIGURE 1: opefiler &gt;  Volumes &gt; Block Devices</strong></p>
<p><img src="http://webalution.com/techshare/wp-content/uploads/2009/12/image002.jpg" alt="" width="766" height="498" /></p>
<p>Create a RAID array  partition by selecting Partition Type: “RAID array member” for the entire  cylinder range (default) and clicking “Create”.   See Figure 2.  The resulting RAID  partition should like as seen in Figure 3.   Repeat the previous steps to create a RAID partition for /dev/sdc</p>
<p><strong> </strong></p>
<p><strong>FIGURE 2: opefiler &gt;  Volumes &gt; Block Devices &gt; /dev/sdb</strong></p>
<p><img src="http://webalution.com/techshare/wp-content/uploads/2009/12/image004.jpg" alt="" width="766" height="844" /></p>
<p><strong>FIGURE 3: openfiler &gt;  Volumes &gt; Block Devices &gt; /dev/sdb</strong></p>
<p><img src="http://webalution.com/techshare/wp-content/uploads/2009/12/image006.jpg" alt="" width="766" height="484" /></p>
<h2>Create New Raid 1 Array</h2>
<p>Once the two raid  devices have been created navigate to <strong>openfiler &gt; Volumes &gt; Software  Raid</strong> as seen in Figure 4 below. Select RAID-1 from the drop down menu,  leave the chunk size at default, select the two raid devices as seen in Figure  4 and click “Add array”.  The resulting  raid array information will be displayed as seen in Figure 5.</p>
<p><strong>Figure 4: openfiler &gt;  Volumes &gt; Software Raid</strong></p>
<p><img src="http://webalution.com/techshare/wp-content/uploads/2009/12/image008.jpg" alt="" width="765" height="703" /></p>
<p><strong>Figure 5: openfiler &gt;  Volumes &gt; Software Raid</strong></p>
<p><img src="http://webalution.com/techshare/wp-content/uploads/2009/12/image010.jpg" alt="" width="765" height="547" /></p>
<h2>Create New Volume Group</h2>
<p>Navigate to <strong>openfiler  &gt; Volumes &gt; Volume Groups</strong> and create the new volume group  “volgroupraid001”.  If this is not your  preferred volume group naming convention, change it to your liking.  After entering your “Volume group name”,  select our newly created Raid 1 volume /dev/md0 and click “Add volume group” as  seen in Figure 6.  The resulting Volume  Group is displayed as seen in Figure 7.</p>
<p><strong>Figure 6: openfile &gt;  Volumes &gt; Volume Groups</strong></p>
<p><img src="http://webalution.com/techshare/wp-content/uploads/2009/12/image012.jpg" alt="" width="765" height="643" /></p>
<p><strong>Figure 7: openfiler &gt;  Volumes &gt; Volume Groups</strong></p>
<p><img src="http://webalution.com/techshare/wp-content/uploads/2009/12/image014.jpg" alt="" width="765" height="643" /></p>
<h2>Create New Volume</h2>
<p>Navigate to <strong>openfiler  &gt; Volume&gt;Add Volume </strong>select our “volgroupraid001” volume group, enter  the name our new volume “volraid001”, fill in a description, enter the Required  Space” (32MB) and be sure to select the proper “Filesystem Type” of iSCSI.  Click “Create” when ready.  See Figure 8 below.  The resulting Volume Group will be as seen in  Figure 9.</p>
<p><strong>Figure 8: openfiler &gt;  Volume &gt; Add Volume</strong> <img src="http://webalution.com/techshare/wp-content/uploads/2009/12/image016.jpg" alt="" width="765" height="828" /></p>
<p><strong>Figure 9: openfiler &gt;  Volumes &gt; Manager Volumes</strong></p>
<p><img src="http://webalution.com/techshare/wp-content/uploads/2009/12/image018.jpg" alt="" width="765" height="828" /></p>
<p>In our next section we  will create the OpenFiler iSCSI Target using our newly created RAID 1 volume.</p>
]]></content:encoded>
			<wfw:commentRss>http://webalution.com/techshare/2009/09/04/openfiler-vmware-guest-raid-1-array-creation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emacs Quick PHP Configuration</title>
		<link>http://webalution.com/techshare/2009/08/10/emacs-quick-php-configuration/</link>
		<comments>http://webalution.com/techshare/2009/08/10/emacs-quick-php-configuration/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 21:04:36 +0000</pubDate>
		<dc:creator>George Knerr</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://webalution.com/techshare/?p=131</guid>
		<description><![CDATA[Some distributions install Emacs &#8220;fully loaded&#8221; with all the bells and whistles, some just install Emacs with the expectation that you&#8217;ll configure it to your liking.  This post will just give you the skinny on getting Emacs working with php nice and quick. Install Emacs. Go to http://php-mode.sourceforge.net/ and download and extract the latest php-mode.el [...]]]></description>
			<content:encoded><![CDATA[<p>Some distributions install Emacs &#8220;fully loaded&#8221; with all the bells and whistles, some just install Emacs with the expectation that you&#8217;ll configure it to your liking.  This post will just give you the skinny on getting Emacs working with php nice and quick.</p>
<ol>
<li>Install Emacs.</li>
<li>Go to <a onclick="javascript:pageTracker._trackPageview('/outgoing/php-mode.sourceforge.net/');" href="http://php-mode.sourceforge.net/">http://php-mode.sourceforge.net/</a> and download and extract the latest php-mode.el in the .emacs.d directory of your home directory or in a directory of your choosing.</li>
<li> Create or append the following in you ~/.emacs file being sure to give the proper location of you php-mode.el file.
<p>(setq inhibit-splash-screen t)<br />
(add-to-list &#8216;load-path &#8220;~/.emacs.d&#8221;)<br />
(require &#8216;php-mode)<br />
(add-to-list &#8216;auto-mode-alist &#8216;(&#8220;\\.ctp$&#8221; . php-mode))</li>
<li>Save your .emacs file and test emacs on a php file.  You should get all the nice color coding and other niceties.  Incidentally, omit the first line about splash screen if you enjoy seeing it every time you start emacs.</li>
</ol>
<p>If you find this post useful please leave us a comment.  Thank you!</p>
]]></content:encoded>
			<wfw:commentRss>http://webalution.com/techshare/2009/08/10/emacs-quick-php-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

