<?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>dennis henry</title>
	<atom:link href="http://dennishenry.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://dennishenry.net</link>
	<description>ramblings of an IT professional</description>
	<lastBuildDate>Mon, 26 Sep 2011 16:50:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Install Yum on minimal CentOS</title>
		<link>http://dennishenry.net/2011/07/05/install-yum-on-minimal-centos/</link>
		<comments>http://dennishenry.net/2011/07/05/install-yum-on-minimal-centos/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 01:41:40 +0000</pubDate>
		<dc:creator>dennis</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[centos5]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://dennishenry.net/?p=142</guid>
		<description><![CDATA[Hello all!
I ran into an interesting issue with a &#8220;minimal&#8221; CentOS installation and had to help a colleague install Yum on a server where only rpm existed. Here&#8217;s the final RPM line I used:
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-3.2.22-37.el5.centos.noarch.rpm  [...]]]></description>
			<content:encoded><![CDATA[<p>Hello all!</p>
<p>I ran into an interesting issue with a &#8220;minimal&#8221; CentOS installation and had to help a colleague install Yum on a server where only rpm existed. Here&#8217;s the final RPM line I used:</p>
<pre>rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-3.2.22-37.el5.centos.noarch.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-python-4.4.2.3-22.el5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-urlgrabber-3.1.0-6.el5.noarch.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-4.4.2.3-22.el5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-libs-4.4.2.3-22.el5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/popt-1.10.2.3-22.el5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/m2crypto-0.16-8.el5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-2.6.26-2.1.12.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/logrotate-3.7.4-12.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/expat-1.95.8-8.3.el5_5.3.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/nss-3.12.8-4.el5_6.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/nspr-4.8.6-1.el5_5.x86_64.rpm</pre>
<p>This should install Yum and all the required depedancies for CentOS 5 x86_64 (at the time of this writing). Once this is ran, yum should be available to install any other software needed.</p>
]]></content:encoded>
			<wfw:commentRss>http://dennishenry.net/2011/07/05/install-yum-on-minimal-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenSSH won&#8217;t start</title>
		<link>http://dennishenry.net/2011/06/18/openssh-wont-start/</link>
		<comments>http://dennishenry.net/2011/06/18/openssh-wont-start/#comments</comments>
		<pubDate>Sat, 18 Jun 2011 17:19:56 +0000</pubDate>
		<dc:creator>dennis</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSSH]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[MAKEDEV]]></category>
		<category><![CDATA[missing]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[urandom]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://dennishenry.net/?p=146</guid>
		<description><![CDATA[I ran into an issue with OpenSSH Server would not start after fresh installation of it on a minimal CentOS 5 x86_64 VPS:
[root@vps ~]# /etc/init.d/sshd restart
Stopping sshd:                                             [FAILED]
Generating SSH1 RSA host key:                              [FAILED]
I  [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into an issue with OpenSSH Server would not start after fresh installation of it on a minimal CentOS 5 x86_64 VPS:</p>
<pre>[root@vps ~]# /etc/init.d/sshd restart
Stopping sshd:                                             <span style="color:red; font-weight:bold;">[FAILED]</span>
Generating SSH1 RSA host key:                              <span style="color:red; font-weight:bold;">[FAILED]</span></pre>
<p>I delved a little further and discovered that ssh-keygen was failing:</p>
<pre>[root@vps ~]# ssh-keygen
cannot read from /dev/urandom, No such file or directory</pre>
<p>And finally, from there, I generated the urandom file:</p>
<pre>/sbin/MAKEDEV urandom</pre>
<p>Also, to ensure on restarts the urandom file (as well as pty and tty) are created, I added the following to /etc/rc.d/rc.local:</p>
<pre>/sbin/MAKEDEV pty
/sbin/MAKEDEV tty
/sbin/MAKEDEV urandom</pre>
<p>Hopefully this helps if you run into a similar issue down the line!</p>
]]></content:encoded>
			<wfw:commentRss>http://dennishenry.net/2011/06/18/openssh-wont-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Allocate x IPs to OpenVZ VEs</title>
		<link>http://dennishenry.net/2011/05/02/allocate-x-ips-to-openvz-ves/</link>
		<comments>http://dennishenry.net/2011/05/02/allocate-x-ips-to-openvz-ves/#comments</comments>
		<pubDate>Mon, 02 May 2011 15:52:57 +0000</pubDate>
		<dc:creator>dennis</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[OpenVZ]]></category>
		<category><![CDATA[additions]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[ip]]></category>

		<guid isPermaLink="false">http://dennishenry.net/?p=161</guid>
		<description><![CDATA[I ran into an interesting issue today where we had a client migrating to us that needed us to allocated X IPs to each VPS on a node he had with us. X ranged from 1 IP to up to 12 per VE so I wrote a script that took three input files (one with available IPs [newips], one with VEIDs [veids], and one  [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into an interesting issue today where we had a client migrating to us that needed us to allocated X IPs to each VPS on a node he had with us. X ranged from 1 IP to up to 12 per VE so I wrote a script that took three input files (one with available IPs [newips], one with VEIDs [veids], and one with the number of IPs each VEID was allocated [numips]) and doled out the IPs as needed. Here is the result:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">let</span> <span style="color: #007800;">r</span>=<span style="color: #000000;">1</span>
<span style="color: #7a0874; font-weight: bold;">let</span> <span style="color: #007800;">k</span>=<span style="color: #000000;">1</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cat</span> veids<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #000000; font-weight: bold;">do</span>
    <span style="color: #007800;">numips</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$k</span>&quot;</span>p numips<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #007800;">c</span>=<span style="color: #000000;">1</span>; c<span style="color: #000000; font-weight: bold;">&lt;</span>=<span style="color: #007800;">$numips</span>; <span style="color: #c20cb9; font-weight: bold;">c++</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
          <span style="color: #000000; font-weight: bold;">do</span>
                <span style="color: #007800;">ip</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$r</span>&quot;</span>p newips<span style="color: #7a0874; font-weight: bold;">&#41;</span>
                <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Add <span style="color: #007800;">$ip</span> to <span style="color: #007800;">$i</span>&quot;</span>
                vzctl <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">$i</span> <span style="color: #660033;">--ipadd</span> <span style="color: #007800;">$ip</span> <span style="color: #660033;">--save</span>
                <span style="color: #7a0874; font-weight: bold;">let</span> <span style="color: #007800;">r</span>=r+<span style="color: #000000;">1</span>
        <span style="color: #000000; font-weight: bold;">done</span>
    <span style="color: #7a0874; font-weight: bold;">let</span> <span style="color: #007800;">k</span>=k+<span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div>

<p>Hopefully this will help any others who run into a similar issue.</p>
<p>Have a great day!</p>
]]></content:encoded>
			<wfw:commentRss>http://dennishenry.net/2011/05/02/allocate-x-ips-to-openvz-ves/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Common Issues &#8211; No Networking on new OpenVZ VPS</title>
		<link>http://dennishenry.net/2011/03/23/common-issues-no-networking-on-new-openvz-vps/</link>
		<comments>http://dennishenry.net/2011/03/23/common-issues-no-networking-on-new-openvz-vps/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 22:42:21 +0000</pubDate>
		<dc:creator>dennis</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Common Issues]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[OpenVZ]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[resolv.conf]]></category>
		<category><![CDATA[venet0]]></category>

		<guid isPermaLink="false">http://dennishenry.net/?p=129</guid>
		<description><![CDATA[Hello all,
Today I ran into an interesting issue where a VPS had no networking either inbound or outbound after setup. This is the error that would present when restarting network via init.d:

Bringing up interface venet0:
SIOCADDRT: Network is unreachable
SIOCADDRT: Network is unreachable

This  [...]]]></description>
			<content:encoded><![CDATA[<p>Hello all,</p>
<p>Today I ran into an interesting issue where a VPS had no networking either inbound or outbound after setup. This is the error that would present when restarting network via init.d:</p>
<pre>
Bringing up interface venet0:
SIOCADDRT: Network is unreachable
SIOCADDRT: Network is unreachable
</pre>
<p>This issue also presented in that cPanel licenses could not activate not could any ping or host commands work properly. I eventually narrowed down the issue to the fact that the IPs that had been added to the VPS were not properly set to ARP by checking with the following command (run on the node):</p>
<pre>
arp | grep [INSERT IP HERE]
</pre>
<p>In order to resolve this, all I needed to do was add the arp entries for the IPs on the actual virtual environment by running the following commands on the node:</p>
<pre>
arp -s [INSERT IP HERE] `ifconfig eth0 | grep eth0 | awk '{print $5}'` pub
</pre>
<p>Make sure you run the command above for every IP on the VPS. This resolved the issue and all networking started working again properly.</p>
]]></content:encoded>
			<wfw:commentRss>http://dennishenry.net/2011/03/23/common-issues-no-networking-on-new-openvz-vps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Duplicate FTP Hosts in Show IP Usage</title>
		<link>http://dennishenry.net/2010/12/08/duplicate-ftp-hosts-in-show-ip-usage/</link>
		<comments>http://dennishenry.net/2010/12/08/duplicate-ftp-hosts-in-show-ip-usage/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 19:00:11 +0000</pubDate>
		<dc:creator>dennis</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[ftp accounts]]></category>
		<category><![CDATA[ip usage]]></category>
		<category><![CDATA[pure-ftpd]]></category>

		<guid isPermaLink="false">http://dennishenry.net/?p=124</guid>
		<description><![CDATA[Ran into an issue today where a domain was showing in the cPanel &#8220;Show IP Address Usage&#8221; twice in the &#8220;FTP Usage&#8221; column. This was distressing the client so I looked into it and it appears this list is pulled from the /etc/pure-ftpd/ directory, which has the following directory  [...]]]></description>
			<content:encoded><![CDATA[<p>Ran into an issue today where a domain was showing in the cPanel &#8220;Show IP Address Usage&#8221; twice in the &#8220;FTP Usage&#8221; column. This was distressing the client so I looked into it and it appears this list is pulled from the /etc/pure-ftpd/ directory, which has the following directory structure:</p>
<pre>
root@server(/etc/pure-ftpd)$ ll
total 16
drwxr-xr-x  2 root root   4096 Dec  8 13:42 ./
drwxr-xr-x 90 root root  12288 Dec  8 13:42 ../
lrwxrwxrwx  1 root wheel    25 Dec  8 13:40 1.2.3.4 -> /home/user1/public_ftp/
lrwxrwxrwx  1 root wheel    24 Dec  8 13:40 2.3.4.5 -> /home/user2/public_ftp/
lrwxrwxrwx  1 root wheel    25 Dec  8 13:40 3.4.5.6 -> /home/user3/public_ftp/
lrwxrwxrwx  1 root wheel    25 Dec  8 13:40 4.5.6.7 -> /home/user4/public_ftp/
lrwxrwxrwx  1 root wheel    25 Dec  8 13:40 5.6.7.8 -> /home/user5/public_ftp/
lrwxrwxrwx  1 root wheel    23 Dec  8 13:40 6.7.8.9 -> /home/user3/public_ftp/
</pre>
<p>In my case, user3 had two IPs pointing to his public_ftp directory which caused the issue. I removed the symlink and then the IP Usage showed properly.</p>
<p>Just a quick fix for anyone else who experiences this issue!</p>
]]></content:encoded>
			<wfw:commentRss>http://dennishenry.net/2010/12/08/duplicate-ftp-hosts-in-show-ip-usage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Issue with GeSHI and CakePHP</title>
		<link>http://dennishenry.net/2010/11/30/geshi-cakephp/</link>
		<comments>http://dennishenry.net/2010/11/30/geshi-cakephp/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 17:12:20 +0000</pubDate>
		<dc:creator>dennis</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[GeSHI]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[highlighting]]></category>
		<category><![CDATA[pcre]]></category>
		<category><![CDATA[preg_replace]]></category>
		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://dennishenry.net/?p=119</guid>
		<description><![CDATA[So today I was having an issue where, for some reason, an incredibly long script in our script repository built using CakePHP would not display the GeSHI syntax-highlighted code. I tore apart the code looking for an answer and the only unique attribute to this script was its very long length  [...]]]></description>
			<content:encoded><![CDATA[<p>So today I was having an issue where, for some reason, an incredibly long script in our script repository built using CakePHP would not display the GeSHI syntax-highlighted code. I tore apart the code looking for an answer and the only unique attribute to this script was its very long length (around 1k lines, over 50k characters). I eventually narrowed it down to the preg_replace that was being used in the <a href="http://mark-story.com/posts/view/geshi-helper-for-cakephp">CakePHP wrapper for GeSHI I was using</a> and discovered that the pcre.backtrack_limit was too low at the default of 10000 (10 thousand). I upped the limit to 10000000 (10 million) and it&#8217;s now able to display the syntax highlighted code without issue.</p>
<p>Just thought I&#8217;d make a quick post because I could not find another blog with this solution. Hope this helps someone else in a similar predicament!</p>
]]></content:encoded>
			<wfw:commentRss>http://dennishenry.net/2010/11/30/geshi-cakephp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Total Memory on a Xen Node</title>
		<link>http://dennishenry.net/2010/11/22/total-memory-on-a-xen-node/</link>
		<comments>http://dennishenry.net/2010/11/22/total-memory-on-a-xen-node/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 17:53:36 +0000</pubDate>
		<dc:creator>dennis</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Xen]]></category>
		<category><![CDATA[memory usage]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://dennishenry.net/?p=112</guid>
		<description><![CDATA[I ran into an interesting issue the other day that I figured I&#8217;d make a post about in order for others. Since my company is getting more into Xen Hosting, I&#8217;ve tried to be at the forefront of the virtualization software for the company. We did run into an interesting issue though the other day when  [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into an interesting issue the other day that I figured I&#8217;d make a post about in order for others. Since my company is getting more into Xen Hosting, I&#8217;ve tried to be at the forefront of the virtualization software for the company. We did run into an interesting issue though the other day when it came to determining the total amount of memory on a hardware node. Since we set up the Domain-0 to use only 512MB of memory, we were having a tough time determining how much total RAM is in the server. After googling for awhile and asking some co-workers, I discovered the following command:</p>
<pre>xm info</pre>
<p>This command shows quite a few interesting metrics including the total memory for the server. Using this I was able to easily discern the total amount of memory and write a quick script to compute total amount of memory:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #007800;">total_memory</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span>xm info <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> total_memory <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $3}'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">remaining</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span>xm info <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> free_memory <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $3 - 512}'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">used_memory</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>total_memory-remaining<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'Total Memory:\t'</span><span style="color: #007800;">$total_memory</span><span style="color: #ff0000;">'MB ('</span>$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>total_memory<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1024</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #ff0000;">'GB)'</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'Memory Used:\t'</span><span style="color: #007800;">$used_memory</span><span style="color: #ff0000;">'MB ('</span>$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>used_memory<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1024</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #ff0000;">'GB)'</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'Remaining:\t'</span><span style="color: #007800;">$remaining</span><span style="color: #ff0000;">'MB ('</span>$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>remaining<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1024</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #ff0000;">'GB)'</span></pre></td></tr></table></div>

<p>Hope this helps anyone else trying to figure out accurate Xen Memory usage</p>
]]></content:encoded>
			<wfw:commentRss>http://dennishenry.net/2010/11/22/total-memory-on-a-xen-node/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install Xen 3.4.3 on CentOS 5.x</title>
		<link>http://dennishenry.net/2010/09/10/install-xen-3-4-3-on-centos-5-x/</link>
		<comments>http://dennishenry.net/2010/09/10/install-xen-3-4-3-on-centos-5-x/#comments</comments>
		<pubDate>Fri, 10 Sep 2010 18:30:45 +0000</pubDate>
		<dc:creator>dennis</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Xen]]></category>
		<category><![CDATA[3.4.3]]></category>
		<category><![CDATA[5.x]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://dennishenry.net/?p=103</guid>
		<description><![CDATA[So I have had to install Xen 3.4.3 recently 3 different times so I thought I&#8217;d make a quick post regarding the best route I have found to do this. Please note, this may not be the most optimal route but it has worked well for me 3 times now:

yum install xen PyXML mesa-libGL
yum remove xen  [...]]]></description>
			<content:encoded><![CDATA[<p>So I have had to install Xen 3.4.3 recently 3 different times so I thought I&#8217;d make a quick post regarding the best route I have found to do this. Please note, this may not be the most optimal route but it has worked well for me 3 times now:</p>
<pre>
yum install xen PyXML mesa-libGL
yum remove xen python-virtinst libvirt-python libvirt xen-libs
mkdir rpms
cd rpms
wget http://www.gitco.de/repo/xen3.4.3/libvirt-0.7.0-6.el5.x86_64.rpm
wget http://www.gitco.de/repo/xen3.4.3/libvirt-client-0.7.0-6.el5.x86_64.rpm
wget http://www.gitco.de/repo/xen3.4.3/libvirt-python-0.7.0-6.el5.x86_64.rpm
wget http://www.gitco.de/repo/xen3.4.3/python-virtinst-0.500.0-1.el5.noarch.rpm
wget http://www.gitco.de/repo/xen3.4.3/xen-3.4.3-1.el5.x86_64.rpm
wget http://www.gitco.de/repo/xen3.4.3/xen-libs-3.4.3-1.el5.x86_64.rpm
wget http://www.gitco.de/repo/xen3.4.3/glusterfs-client-2.0.8-1.el5.x86_64.rpm
wget http://www.gitco.de/repo/xen3.4.3/glusterfs-common-2.0.8-1.el5.x86_64.rpm
wget http://www.gitco.de/repo/xen3.4.3/fuse-2.7.4-1.rf.x86_64.rpm
wget http://www.gitco.de/repo/xen3.4.3/libibverbs-1.1-1.x86_64.rpm
rpm -ivh *.rpm
</pre>
<p>After that block, make sure you edit /etc/grub.conf to set the following lines:</p>
<pre>
---snip---
default = 0
---snip---
kernel /xen.gz-3.4.3 dom0_mem=512m
---snip---
</pre>
<p>The first will set the xen kernel as the default and the second will limit dom0 to only be able to use 512m of memory, leaving the rest for your VEs. After these changes, go ahead and reboot. Let me know if this route works for you!</p>
]]></content:encoded>
			<wfw:commentRss>http://dennishenry.net/2010/09/10/install-xen-3-4-3-on-centos-5-x/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>exim: error while loading shared libraries: libperl.so: wrong ELF class: ELFCLASS32</title>
		<link>http://dennishenry.net/2010/08/28/exim-error-while-loading-shared-libraries-libperl-so-wrong-elf-class-elfclass32/</link>
		<comments>http://dennishenry.net/2010/08/28/exim-error-while-loading-shared-libraries-libperl-so-wrong-elf-class-elfclass32/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 20:22:07 +0000</pubDate>
		<dc:creator>dennis</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Exim]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[libperl]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://dennishenry.net/?p=98</guid>
		<description><![CDATA[So I ran into a very odd issue with a server today where exim would not start after a CentOS upgrade. The error message was such:
exim: error while loading shared libraries: libperl.so: wrong ELF class: ELFCLASS32
This error took awhile to google around for and I couldn&#8217;t find any relevant  [...]]]></description>
			<content:encoded><![CDATA[<p>So I ran into a very odd issue with a server today where exim would not start after a CentOS upgrade. The error message was such:</p>
<pre>exim: error while loading shared libraries: libperl.so: wrong ELF class: ELFCLASS32</pre>
<p>This error took awhile to google around for and I couldn&#8217;t find any relevant articles. The problem seemed to obviously be the libperl.so file but perl seemed fine and the file was identical to other server setups with the same version of perl, exim, cPanel, CentOS. I decided to try and rebuild exim with /scripts/eximup &#8211;force but that did nothing to help the situation. Eventually, I found the following command:</p>
<pre>/scripts/eximup --source</pre>
<p>To the best of my knowledge I gained from my research, this recompiles exim from source, converts to an rpm, then installs that. Sure enough, that fixed the issue and exim was running again with no issues. I figured I&#8217;d make this post due to the fact I couldn&#8217;t find one post with the information I needed.</p>
]]></content:encoded>
			<wfw:commentRss>http://dennishenry.net/2010/08/28/exim-error-while-loading-shared-libraries-libperl-so-wrong-elf-class-elfclass32/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple IPTables OpenVZ Setup</title>
		<link>http://dennishenry.net/2010/08/02/simple-iptables-openvz-setup/</link>
		<comments>http://dennishenry.net/2010/08/02/simple-iptables-openvz-setup/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 21:02:28 +0000</pubDate>
		<dc:creator>dennis</dc:creator>
				<category><![CDATA[IPTables]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenVZ]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://dennishenry.net/?p=81</guid>
		<description><![CDATA[So after looking and failing to find a good article on how to describe the simple process to set up IPTables on an OpenVZ server, I figured I would write one here. The process is incredibly simple and can be broken down into 3 steps:

Empty out the contents of /etc/sysconfig/iptables
cat ""   [...]]]></description>
			<content:encoded><![CDATA[<p>So after looking and failing to find a good article on how to describe the simple process to set up IPTables on an OpenVZ server, I figured I would write one here. The process is incredibly simple and can be broken down into 3 steps:</p>
<ol>
<li>Empty out the contents of /etc/sysconfig/iptables
<pre>cat "" > /etc/sysconfig/iptables</pre>
</li>
<li>Use the following line in /etc/sysconfig/iptables-config:
<pre>IPTABLES_MODULES="ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp"</pre>
</li>
<li>Use the following line in /etc/vz/vz.conf: 
<pre>IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state"</pre>
</li>
</ol>
<p>After ensuring these three things, just stop both vz and iptables, start iptables, then start vz. You should then be able to use iptables within a virtualized container.</p>
]]></content:encoded>
			<wfw:commentRss>http://dennishenry.net/2010/08/02/simple-iptables-openvz-setup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.041 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-04-26 09:25:16 -->

