<?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/"
	>

<channel>
	<title>Never the Lost</title>
	<atom:link href="http://neverthelost.net/site/feed/" rel="self" type="application/rss+xml" />
	<link>http://neverthelost.net/site</link>
	<description>Adventures of the Word at large...For Great Justice!</description>
	<pubDate>Thu, 14 May 2009 14:08:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>nginx major fail as it just didn&#8217;t work for my application</title>
		<link>http://neverthelost.net/site/2009/05/nginx-major-fail-as-it-just-didnt-work-for-my-application/</link>
		<comments>http://neverthelost.net/site/2009/05/nginx-major-fail-as-it-just-didnt-work-for-my-application/#comments</comments>
		<pubDate>Thu, 14 May 2009 14:07:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://neverthelost.net/site/?p=44</guid>
		<description><![CDATA[So if you have ready any of my previous postings you will see that I setup nginx as a reverse proxy to help speed things up on my personal VPS. This seemed to work wonders and dramatically reduced the load on my VPS. Well I have updates
After agreeing to host a friends projects and one [...]]]></description>
			<content:encoded><![CDATA[<p>So if you have ready any of my previous postings you will see that I setup nginx as a reverse proxy to help speed things up on my personal VPS. This seemed to work wonders and dramatically reduced the load on my VPS. Well I have updates</p>
<p><span id="more-44"></span>After agreeing to host a friends projects and one of his friends projects I ended up having to scrap nginx. It wasn&#8217;t that I didn&#8217;t think it was cool but it actually added extra load to my server for some reason. Let me explain, my f riend runs some pretty neat sites that get a lot of traffic. Some of them include <a title="www.mycodeteacher.com" href="http://www.mycodeteacher.com">www.mycodeteacher.com</a> <a title="www.iphonedevcentral.org" href="http://www.iphonedevcentral.org">www.iphonedevcentral.org</a> and <a title="www.topvoicesnow.com" href="http://www.topvoicesnow.com">www.topvoicesnow.com</a>. All of these sites either have streaming video or streaming media in general. nginx just didn&#8217;t give me what I was looking for as it was causing issues on the sites and jacking my load up to the point it would crash the web server.</p>
<p><img class="alignnone size-full wp-image-50" title="render_load_average" src="http://neverthelost.net/site/wp-content/uploads/2009/05/render_load_average.jpg" alt="render_load_average" width="597" height="224" /></p>
<p><img class="alignnone size-full wp-image-48" title="render_cpu_utilization_breakdown" src="http://neverthelost.net/site/wp-content/uploads/2009/05/render_cpu_utilization_breakdown.jpg" alt="render_cpu_utilization_breakdown" width="597" height="224" /></p>
<p><img class="alignnone size-full wp-image-52" title="render_memory_usage" src="http://neverthelost.net/site/wp-content/uploads/2009/05/render_memory_usage.jpg" alt="render_memory_usage" width="597" height="224" /></p>
<p><img class="alignnone size-full wp-image-48" title="render_cpu_utilization_breakdown" src="http://neverthelost.net/site/wp-content/uploads/2009/05/mrtg_render.jpg" alt="render_cpu_utilization_breakdown" width="597" height="224" /></p>
<p><img class="alignnone size-full wp-image-48" title="render_cpu_utilization_breakdown" src="http://neverthelost.net/site/wp-content/uploads/2009/05/mrtg_packets_render.jpg" alt="render_cpu_utilization_breakdown" width="597" height="224" /></p>
<p><img class="alignnone size-full wp-image-51" title="render_disk_io" src="http://neverthelost.net/site/wp-content/uploads/2009/05/render_disk_io.jpg" alt="render_disk_io" width="597" height="196" /></p>
]]></content:encoded>
			<wfw:commentRss>http://neverthelost.net/site/2009/05/nginx-major-fail-as-it-just-didnt-work-for-my-application/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The World of RAID</title>
		<link>http://neverthelost.net/site/2009/05/the-world-of-raid/</link>
		<comments>http://neverthelost.net/site/2009/05/the-world-of-raid/#comments</comments>
		<pubDate>Sun, 10 May 2009 02:05:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Bash]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[OpenVZ]]></category>

		<category><![CDATA[RAID]]></category>

		<category><![CDATA[Scripting]]></category>

		<category><![CDATA[Storage]]></category>

		<category><![CDATA[Virtualization]]></category>

		<category><![CDATA[Web Servers]]></category>

		<guid isPermaLink="false">http://neverthelost.net/site/?p=37</guid>
		<description><![CDATA[In the world of servers there are many options when it comes to protecting your disks and the data on those disks. You can create backups of your disks or even get creative and rsync your data to another drive or to an off site storage area. On my server I chose to go with [...]]]></description>
			<content:encoded><![CDATA[<p>In the world of servers there are many options when it comes to protecting your disks and the data on those disks. You can create backups of your disks or even get creative and rsync your data to another drive or to an off site storage area. On my server I chose to go with a RAID array.</p>
<p><span id="more-37"></span></p>
<p>In my line of work I see a number of times that people over look their data. They then have a drive failure or some other catastrophe and then poof their data is gone. Their first feeling of emotion is to blame their host or to some other extent any one besides them selves. This is often the &#8220;fear&#8221; that is talking but in some cases they just could not afford it.</p>
<p>I&#8217;m not saying I&#8217;m rich and by far I do see the requirement for data security. I have been stupid before in my choices but this time around I wanted to make sure I protected my servers most important data from failure. Of course a $400 RAID card would have been great but I couldn&#8217;t afford that at the time I started to use this server. So I went with something a little bit different called a software RAID.</p>
<p>Redundant Array of Independent Disks is what RAID stands for, it has been revised from the &#8220;Inexpensive&#8221; disk version originally created. As I only chose to go with RAID-1 as I have a server with 4 disks in it. I got thinking that I wanted to test how well a software raid worked. So like any confidant geek I went to the data center and pulled on of the drives in the array. My plan was to make sure my monitoring worked (it didn&#8217;t) and to make sure that everything kept running. So upon pulling it the server went on without skipping a beat. The bad thing was that it required to be looked at because I never got a failed RAID notice.</p>
<p>I checked using the &#8220;cat /proc/mdstat&#8221; command to get my array status:<br />
Personalities : [raid1]<br />
md0 : active raid1 sdb1[0]<br />
488383936 blocks [2/1] [U_]<br />
unused devices:</p>
<p>As you can see it only lists 1 drive out of two so we can see that something has gone wrong! I did some checking and noticed that all four drives were in fact being seen by my server so I did a reboot (I don&#8217;t know why I thought maybe the array would rebuild on its own.) of course I needed to interact with it (this is where a $400 + card comes in very nicely).</p>
<p>I checked my disks &#8220;fdisk -l&#8221;:<br />
Disk /dev/sda: 160.0 GB, 160000000000 bytes (Primary OS Drive)<br />
Disk /dev/sdb: 500.1 GB, 500107862016 bytes (RAID-1 Disk #1)<br />
Disk /dev/sdc: 500.1 GB, 500107862016 bytes (RAID-1 Disk #2)<br />
Disk /dev/sdd: 500.1 GB, 500107862016 bytes (Backup Drive)<br />
Disk /dev/md0: 500.1 GB, 500105150464 bytes (RAID-1 Array)<br />
Disk /dev/md0 doesn&#8217;t contain a valid partition table (Normal for the Way I did the Array)</p>
<p>So I added my disk back into the array and let it try to start rebuilding &#8220;mdadm /dev/md0 -a /dev/sdc1&#8243;</p>
<p>Now I check to see the status of the array &#8220;cat /proc/mdstat&#8221;<br />
Personalities : [raid1]<br />
md0 : active raid1 sdc1[2] sdb1[0]<br />
      488383936 blocks [2/1] [U_]<br />
      [>....................]  recovery =  4.0% (19803264/488383936) finish=169.7min speed=46010K/sec</p>
<p>What do you know it is recovering / rebuilding :). You can see it is going at roughly 46Mb per second with an estimated completion time of 169 minutes or just under 3 hours. Not bad for some freeness is it?</p>
]]></content:encoded>
			<wfw:commentRss>http://neverthelost.net/site/2009/05/the-world-of-raid/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Quick and Easy Clean up for cPanel Servers</title>
		<link>http://neverthelost.net/site/2009/04/quick-and-easy-clean-up-for-cpanel-servers/</link>
		<comments>http://neverthelost.net/site/2009/04/quick-and-easy-clean-up-for-cpanel-servers/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 14:25:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://neverthelost.net/site/?p=34</guid>
		<description><![CDATA[So with Disk space being an issue I thought how can we clean up on a cPanel server. This script is not perfect but it does a good job of clearing about 1GB of disk space on average I have noticed.
So create a new bash script I like to use vim so I would do [...]]]></description>
			<content:encoded><![CDATA[<p>So with Disk space being an issue I thought how can we clean up on a cPanel server. This script is not perfect but it does a good job of clearing about 1GB of disk space on average I have noticed.</p>
<p><span id="more-34"></span>So create a new bash script I like to use vim so I would do vim disk_cleanup.sh and paste the following in:</p>
<address>#<br />
</address>
<address>## Out Put for the boys and girls to See the before usage<br />
</address>
<address>#<br />
</address>
<address>df -h</address>
<address>#</address>
<address>## Yum works best when cleaned often I have noticed <img src='http://www.neverthelost.net/site/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
</address>
<address>#<br />
</address>
<address>yum clean all</address>
<address>#</address>
<address>## Remove all Compressed logs / remove any variations / incrementals<br />
</address>
<address>#</address>
<address>rm -f /var/log/*.gz</address>
<address>rm -f /var/log/*.?</address>
<address>#</address>
<address>## And I said clean up after home!</address>
<address>#</address>
<address># </address>
<address># Any Core files that may have been dumped as they take up a good 40 to 60Mb of Disk space.<br />
</address>
<address>rm -rf /home/core.*</address>
<address># Get rid of Easy Apache</address>
<address>rm -rf /home/cpeasyapache</address>
<address># Get rid of Old MySQL Install</address>
<address>rm -rf /home/MySQL-install</address>
<address># Get rid of other BS</address>
<address>rm -f /home/latest</address>
<address>rm -rf /home/cprubygemsbuild</address>
<address>rm -rf /home/cprubybuild</address>
<address>rm -rf /home/cprestore</address>
<address>rm -rf /usr/local/cpanel/src/3rdparty/*</address>
<address>cd /tmp</address>
<address>for files in `ls`; do rm -f $files; done;</address>
<address>#</address>
<address>## See what kind of Kernels you may have that are old but first lets remove any kernel sources<br />
</address>
<address>#</address>
<address>
<address>rpm -qa kernel-source | xargs rpm -e</address>
<address>#</address>
<address>## Display new space prior to any kernels being removed.</address>
<address>#<br />
</address>
</p></address>
<address>df -h</address>
<address>#</address>
<address>## List out the installed kernels</address>
<address>#</address>
<address>rpm -qa | grep kernel</address>
<address>#</address>
<address>## Give current running kernel</address>
<address>#</address>
<address>uname -a | awk {&#8217;print $3&#8242;}</address>
<address>#</address>
<address>## End</address>
<address>#<br />
</address>
]]></content:encoded>
			<wfw:commentRss>http://neverthelost.net/site/2009/04/quick-and-easy-clean-up-for-cpanel-servers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Nginx Way, How to Install on a cPanel Server</title>
		<link>http://neverthelost.net/site/2009/04/the-nginx-way/</link>
		<comments>http://neverthelost.net/site/2009/04/the-nginx-way/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 10:47:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Bash]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Web Servers]]></category>

		<category><![CDATA[cPanel / WHM]]></category>

		<guid isPermaLink="false">http://neverthelost.net/site/?p=24</guid>
		<description><![CDATA[Recently a co-worker mentioned that they tried out nginx and noticed that it was quite snappy. I didn&#8217;t know exactly how it worked but thought I would give it a try. As a result I had this site down for a number of days while I corrected the issues. In the end I did the [...]]]></description>
			<content:encoded><![CDATA[<p>Recently a co-worker mentioned that they tried out nginx and noticed that it was quite snappy. I didn&#8217;t know exactly how it worked but thought I would give it a try. As a result I had this site down for a number of days while I corrected the issues. In the end I did the following:<span id="more-24"></span></p>
<p>Download the following and save them to/usr/src</p>
<address> http://wget.neverthelost.net/nginx/<span class="external free">mod_rpaf-0.6.tar.gz</span><br />
http://wget.neverthelost.net/nginx/nginx-0.7.52.tar.gz<br />
http://wget.neverthelost.net/nginx/pcre-7.9.tar.gz</address>
<address> </address>
<p>Once Downloaded we need to go ahead and install some of the pre-required items before getting into the dirty configuration parts.</p>
<address>cd /usr/src</address>
<address>tar xvzf mod_rpaf-0.6.tar.gz<br />
cd mod_rpaf-0.6<br />
/usr/local/apache/bin/apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c</address>
<address>Hit Enter one more time</address>
<address>cd /usr/src</address>
<address>tar xvzf pcre-7.9.tar.gz</address>
<address> cd pcre-7.9</address>
<address> ./configure</address>
<address> make</address>
<address> make install</address>
<address>Hit Enter one more time</address>
<address>cd /usr/src</address>
<address>tar xvzf nginx-0.7.52.tar.gz<br />
cd nginx-0.7.52<br />
./configure &#8211;with-http_ssl_module &#8211;with-http_realip_module &#8211;with-http_dav_module &#8211;with-http_flv_module &#8211;with-http_gzip_static_module<br />
make<br />
make install</address>
<address>Hit Enter one more time</address>
<address> </address>
<p>Now we have all of our required items installed we can start our configuration.</p>

<a href='http://neverthelost.net/site/2009/04/the-nginx-way/load_average/' title='load_average'><img src="http://www.neverthelost.net/site/wp-content/uploads/2009/04/load_average.jpg" width="150" height="56" class="attachment-thumbnail" alt="" /></a>

]]></content:encoded>
			<wfw:commentRss>http://neverthelost.net/site/2009/04/the-nginx-way/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Do it your self Security&#8230;.</title>
		<link>http://neverthelost.net/site/2009/03/do-it-your-self-security/</link>
		<comments>http://neverthelost.net/site/2009/03/do-it-your-self-security/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 11:07:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[OpenVZ]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://neverthelost.net/site/?p=13</guid>
		<description><![CDATA[Well recently I have been very interested in some aspects with securty at work.  I have been testing and reviewing some great DVR systems that run on linux.  So I went ahead and added a VPS to my OpenVZ server and turned up and installed Zone Minder.  So far I have not been able to [...]]]></description>
			<content:encoded><![CDATA[<p>Well recently I have been very interested in some aspects with securty at work.  I have been testing and reviewing some great DVR systems that run on linux.  So I went ahead and added a VPS to my OpenVZ server and turned up and installed Zone Minder.  So far I have not been able to get the two cameras hook up and allow Zone Minder to monitor for motion, yet I still find it amazing at the quality of these cheaper cameras.  I have done security systems before and usually they require a box of 3 to 5 thousand dollars and 30+ man hours just to setup and test the cameras. From this point you would be required to then setup users, remote access, and train the end user all while this hardware you have it on is usually a single drive system and really does you no good other than to have a over view of what ever you want to watch.</p>
<p>So right now my server is setup as the following:</p>
<p>- Intel Pentium D 3.)GHz (dual core) CPU</p>
<p>- 8GB DDR2 ECC Memory</p>
<p>- 160GB Primary Drive</p>
<p>- RAID-1 500GB /vz Drive for all VPS hosts</p>
<p>- 500GB /backup Drive for backups</p>
<p>- Janky Hot Swap Case</p>
<p>So my research finds Zone Minder to be a little resource intensive but this server dosen&#8217;t do much so I press on and install it anyways. I followed the same instructions you can find at http://www.zoneminder.com/wiki/index.php/CentOS#Step_Five_-_Installing_ZoneMinder_1.23.3 Wiki for Great Justice!</p>
]]></content:encoded>
			<wfw:commentRss>http://neverthelost.net/site/2009/03/do-it-your-self-security/feed/</wfw:commentRss>
		</item>
		<item>
		<title>First Post of luck&#8230; I hope</title>
		<link>http://neverthelost.net/site/2009/03/first-post-of-luck-i-hope/</link>
		<comments>http://neverthelost.net/site/2009/03/first-post-of-luck-i-hope/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 12:35:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Virtualization]]></category>

		<category><![CDATA[Virtuozzo]]></category>

		<guid isPermaLink="false">http://neverthelost.net/site/?p=11</guid>
		<description><![CDATA[All I shall say is I think Virutozzo 4 should have kept the progress bar like in Virtuozzo 2.5 and 3.0.
]]></description>
			<content:encoded><![CDATA[<p>All I shall say is I think Virutozzo 4 should have kept the progress bar like in Virtuozzo 2.5 and 3.0.</p>
]]></content:encoded>
			<wfw:commentRss>http://neverthelost.net/site/2009/03/first-post-of-luck-i-hope/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
