<?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>Chris Schuld&#039;s Blog</title>
	<atom:link href="http://chrisschuld.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisschuld.com</link>
	<description>personal musings on the composition of software</description>
	<lastBuildDate>Tue, 23 Aug 2011 23:18:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
		<item>
		<title>Extracting Smarty variables from source</title>
		<link>http://chrisschuld.com/2011/08/extracting-smarty-variables-from-source/</link>
		<comments>http://chrisschuld.com/2011/08/extracting-smarty-variables-from-source/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 23:18:42 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Regex]]></category>
		<category><![CDATA[smarty]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=390</guid>
		<description><![CDATA[You can extract all of the variables in use from a Smarty template using a simple call to *nix grep with a trivial regex expression. Here is the command: grep -o "\{\$[-_a-zA-Z0-9]*\}" my-template.tpl]]></description>
			<content:encoded><![CDATA[<p>You can extract all of the variables in use from a <a href="http://www.smarty.net/" target="_blank">Smarty</a> template using a simple call to *nix grep with a trivial regex expression.  Here is the command:</p>
<div class="code">
<pre>
grep -o "\{\$[-_a-zA-Z0-9]*\}" my-template.tpl
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2011/08/extracting-smarty-variables-from-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dumping Addresses from phplist</title>
		<link>http://chrisschuld.com/2011/07/dumping-addresses-from-phplist/</link>
		<comments>http://chrisschuld.com/2011/07/dumping-addresses-from-phplist/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 14:56:28 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=386</guid>
		<description><![CDATA[We recently moved away from phplist (goodbye phplist &#8212; we loved you for a while but now we need more power). Here is the SQL used to rip our users out of the main list. Attributes 1 and 2 are &#8230; <a href="http://chrisschuld.com/2011/07/dumping-addresses-from-phplist/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We recently moved away from phplist (<em>goodbye phplist &#8212; we loved you for a while but now we need more power</em>).  Here is the SQL used to rip our users out of the main list.  Attributes 1 and 2 are the first and last name.</p>
<pre>
SELECT DISTINCT
	phplist_user_user.email AS Email,
	phplist_user_user_attribute1.value AS FirstName,
	phplist_user_user_attribute2.value AS LastName
FROM
	phplist_user_user
JOIN
	phplist_user_user_attribute AS phplist_user_user_attribute1 ON ( phplist_user_user_attribute1.userid = phplist_user_user.id AND phplist_user_user_attribute1.attributeid = 1 ) 
JOIN
	phplist_user_user_attribute AS phplist_user_user_attribute2 ON ( phplist_user_user_attribute2.userid = phplist_user_user.id AND phplist_user_user_attribute2.attributeid = 2 ) 
JOIN
	phplist_listuser ON ( phplist_listuser.userid = phplist_user_user.id AND phplist_listuser.listid = 1 )
WHERE

	phplist_user_user.blacklisted = 0
</pre>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2011/07/dumping-addresses-from-phplist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing vzdump on CentOS 5.4 (32-bit)</title>
		<link>http://chrisschuld.com/2010/07/installing-vzdump-on-centos-5-4-32-bit/</link>
		<comments>http://chrisschuld.com/2010/07/installing-vzdump-on-centos-5-4-32-bit/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 07:04:45 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[OpenVZ]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=344</guid>
		<description><![CDATA[There are a few items required for installing vzdump for OpenVZ on 32bit CentOS. First, make sure you read the installation post covering the 64bit install. Here are the commands for 32bit. Here is how you get vzdump on a &#8230; <a href="http://chrisschuld.com/2010/07/installing-vzdump-on-centos-5-4-32-bit/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There are a few items required for installing <a href="http://wiki.openvz.org/Backup_of_a_running_container_with_vzdump">vzdump</a> for <a href="http://wiki.openvz.org/Main_Page">OpenVZ</a> on 32bit CentOS.<br />
<span id="more-344"></span><br />
First, make sure you read the <a href="http://chrisschuld.com/2009/11/installing-vzdump-for-openvz-on-centos/">installation post covering the 64bit install</a>.  Here are the commands for 32bit.  Here is how you get vzdump on a clean version of 32bit CentOS (via the hostnode):</p>
<pre lang="bash">
rpm -ivh "ftp://ftp.pbone.net/mirror/ftp.freshrpms.net/pub/freshrpms/pub/dag/redhat/el5/en/i386/RPMS.dag/cstream-2.7.4-3.el5.rf.i386.rpm"
wget http://dag.wieers.com/rpm/packages/perl-LockFile-Simple/perl-LockFile-Simple-0.206-1.el5.rf.noarch.rpm
rpm -ivh perl-LockFile-Simple-0.206-1.el5.rf.noarch.rpm
/bin/rm perl-LockFile-Simple-0.206-1.el5.rf.noarch.rpm
rpm -ivh "http://chrisschuld.com/centos54/vzdump-1.2-6.noarch.rpm"
</pre>
<p>Make sure you add in the PERL5LIB in your export (see the <a href="http://chrisschuld.com/2009/11/installing-vzdump-for-openvz-on-centos/">64bit post</a>):</p>
<pre lang="bash">
export PERL5LIB=/usr/share/perl5/
</pre>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2010/07/installing-vzdump-on-centos-5-4-32-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding NRPE (Nagios) to CentOS / RHEL Servers</title>
		<link>http://chrisschuld.com/2010/05/adding-nrpe-nagios-to-centos-rhel-servers/</link>
		<comments>http://chrisschuld.com/2010/05/adding-nrpe-nagios-to-centos-rhel-servers/#comments</comments>
		<pubDate>Thu, 20 May 2010 04:03:30 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=369</guid>
		<description><![CDATA[We use nagios to watch our networks and I always forget the simple steps necessary to drop NRPE on the virtual servers or physical services. This post is simply my process I use to drop NRPE on our servers. yum &#8230; <a href="http://chrisschuld.com/2010/05/adding-nrpe-nagios-to-centos-rhel-servers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We use <a href="http://www.nagios.org/">nagios</a> to watch our networks and I always forget the simple steps necessary to drop NRPE on the virtual servers or physical services.  This post is simply my process I use to drop NRPE on our servers.</p>
<pre lang="bash">
yum install nrpe nagios-plugins-all
echo -e "nrpe\t\t5666/tcp\t\t\t# nrpe" >> /etc/services
chkconfig nrpe on
vi /etc/nagios/nrpe.cfg
/etc/init.d/nrpe start
</pre>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2010/05/adding-nrpe-nagios-to-centos-rhel-servers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Adding the REMI Repository to CentOS / RHEL / RedHat</title>
		<link>http://chrisschuld.com/2010/05/adding-the-remi-repository-to-centos-rhel-redhat/</link>
		<comments>http://chrisschuld.com/2010/05/adding-the-remi-repository-to-centos-rhel-redhat/#comments</comments>
		<pubDate>Sat, 08 May 2010 17:40:19 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=365</guid>
		<description><![CDATA[I am a fan of the REMI Repository. Here are the steps necessary to add, enable and then update your box w/ the latest packages from the REMI Repository. wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm /bin/rm epel-release-5-4.noarch.rpm remi-release-5.rpm &#8230; <a href="http://chrisschuld.com/2010/05/adding-the-remi-repository-to-centos-rhel-redhat/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I am a fan of the <a href="http://blog.famillecollet.com/pages/Config-en">REMI Repository</a>.  Here are the steps necessary to add, enable and then update your box w/ the latest packages from the REMI Repository.<br />
<span id="more-365"></span></p>
<pre lang="bash">
wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
/bin/rm epel-release-5-4.noarch.rpm remi-release-5.rpm

perl -pi -e 's/enabled=0/enabled=1/g' /etc/yum.repos.d/remi.repo

yum update
</pre>
<div class="updated"><strong>UPDATED &#8211; 2010-08-29:</strong> Location Updated for the epel-release file</div>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2010/05/adding-the-remi-repository-to-centos-rhel-redhat/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Re-number an OpenVZ Container from one CTID to another</title>
		<link>http://chrisschuld.com/2010/04/how-to-re-number-an-openvz-container-from-one-ctid-to-another/</link>
		<comments>http://chrisschuld.com/2010/04/how-to-re-number-an-openvz-container-from-one-ctid-to-another/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 00:31:54 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[OpenVZ]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=359</guid>
		<description><![CDATA[Poor planning: I guess I am guilty. A few times I have needed to re-number an OpenVZ Container. You just need to know what your current CTID is (sourcecid) and your desired target CTID (targetcid). Here are the steps: sourcecid=100 &#8230; <a href="http://chrisschuld.com/2010/04/how-to-re-number-an-openvz-container-from-one-ctid-to-another/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Poor planning: I guess I am guilty.  A few times I have needed to re-number an OpenVZ Container.  You just need to know what your current CTID is (sourcecid) and your desired target CTID (targetcid).<br />
<span id="more-359"></span></p>
<p>Here are the steps:</p>
<pre lang="bash">
sourcecid=100
targetcid=101
vzctl chkpnt ${sourcecid} --dumpfile /tmp/openvz-renumber-dump.${sourcecid}
mv /etc/vz/conf/${sourcecid}.conf /etc/vz/conf/${targetcid}.conf
mv /vz/private/${sourcecid} /vz/private/${targetcid}
mv /vz/root/${sourcecid} /vz/root/${targetcid}
vzctl restore ${targetcid} --dumpfile /tmp/openvz-renumber-dump.${sourcecid}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2010/04/how-to-re-number-an-openvz-container-from-one-ctid-to-another/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The non-breakable Dash / Hyphen</title>
		<link>http://chrisschuld.com/2010/02/the-non-breakable-dash-hyphen/</link>
		<comments>http://chrisschuld.com/2010/02/the-non-breakable-dash-hyphen/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 03:21:40 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=313</guid>
		<description><![CDATA[In HTML you may find that the dash / hyphen character is a breakable character and if you are attempting to create a region where line breaking is not desired you may need a non-breakable space character. Here it is: &#8230; <a href="http://chrisschuld.com/2010/02/the-non-breakable-dash-hyphen/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In HTML you may find that the dash / hyphen character is a breakable character and if you are attempting to create a region where line breaking is not desired you may need a non-breakable space character.</p>
<p><strong>Here it is:  &amp;#8209;</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2010/02/the-non-breakable-dash-hyphen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating Ghostscript on CentOS 5.4 (ghostscript 8.70) (the remix)</title>
		<link>http://chrisschuld.com/2010/01/updating-ghostscript-on-centos-5-4-ghostscript-8-70/</link>
		<comments>http://chrisschuld.com/2010/01/updating-ghostscript-on-centos-5-4-ghostscript-8-70/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 06:26:17 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=304</guid>
		<description><![CDATA[A while back I wrote an article on updating to ghostscript 8.63 on CentOS 5.2. I received a fair amount of email and comments on the topic ranging from &#8220;thanks&#8221; to &#8220;you don&#8217;t know what your talking about!&#8221; I thought &#8230; <a href="http://chrisschuld.com/2010/01/updating-ghostscript-on-centos-5-4-ghostscript-8-70/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A while back I wrote an article on <a href="http://chrisschuld.com/2008/11/updating-ghostscript-on-centos-52-ghostscript-863/">updating to ghostscript 8.63 on CentOS 5.2</a>.  I received a fair amount of email and comments on the topic ranging from &#8220;thanks&#8221; to &#8220;you don&#8217;t know what your talking about!&#8221;  I thought I would update the original post to include the latest release of ghostscript (8.7) as well as answer and respond to the best question / statement in the comments&#8230; &#8220;how do you do that and can you post the SRPMS?&#8221;  The answer is, yes, here is how I do it and &#8220;yes&#8221; I&#8217;ll post the SRPMs (or more appropriately where I get them).</p>
<p>First, you have to have the latest version of the build environment as well as some prerequisites for building GhostScript:</p>
<pre lang="bash">
yum --enablerepo remi groupinstall "Development Tools"
yum --enablerepo remi install libjpeg-devel libXt-devel libpng-devel gtk2-devel glib2-devel gnutls-devel libxml2-devel libtiff-devel cups-devel libtool jasper-devel
</pre>
<p><small>(you will note here I use the <a href="http://blog.famillecollet.com">REMI repo</a>)</small></p>
<p>Next, I obtain the SRPM files from rpmfind.net and ghostscript-fonts from the centos repo:</p>
<pre lang="bash">
wget ftp://195.220.108.108/linux/fedora/development/source/SRPMS/ghostscript-8.70-3.fc13.src.rpm

wget http://mirror.centos.org/centos/5.4/os/SRPMS/ghostscript-fonts-5.50-13.1.1.src.rpm
</pre>
<p>Now, I build them using RPM (rpmbuild):</p>
<pre lang="bash">
rpmbuild --rebuild ghostscript-8.70-3.fc13.src.rpm
rpmbuild --rebuild ghostscript-8.70-1.fc10.src.rpm
</pre>
<p>&#8230; and that is how I do it!  If you are feeling exceptionally lazy and have some inherent trust for my builds in x86_64&#8230; here they are:</p>
<pre lang="bash">
rpm -Uvh http://chrisschuld.com/centos54/ghostscript-8.70-1.x86_64.rpm http://chrisschuld.com/centos54/ghostscript-fonts-5.50-13.1.1.noarch.rpm http://chrisschuld.com/centos54/ghostscript-gtk-8.70-1.x86_64.rpm
</pre>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2010/01/updating-ghostscript-on-centos-5-4-ghostscript-8-70/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Setting VPS Disk Space with OpenVZ the &#8220;easy way&#8221;</title>
		<link>http://chrisschuld.com/2009/11/setting-vps-disk-space-with-openvz-the-easy-way/</link>
		<comments>http://chrisschuld.com/2009/11/setting-vps-disk-space-with-openvz-the-easy-way/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 08:10:39 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[OpenVZ]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=297</guid>
		<description><![CDATA[Disk space can be easily controlled via OpenVZ but I have yet to find anyone to actually explain what the heck to &#8220;really&#8221; do when you need to add more! Everything I have found about OpenVZ just explains the parameters &#8230; <a href="http://chrisschuld.com/2009/11/setting-vps-disk-space-with-openvz-the-easy-way/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Disk space can be easily controlled via OpenVZ but I have yet to find anyone to actually explain what the heck to &#8220;really&#8221; do when you need to add more!  Everything I have found about OpenVZ just explains the parameters and never shows you how to do it easily.  When I need to adjust disk space on an VPS it is usually when I have someone beating up my ear on the phone or my IM so I needed a fast way to expand the disk without worrying about the details.</p>
<p>There are three parameters in OpenVZ which are directly related to disk usage.  They are <strong>disk_quota</strong>, <strong>diskspace</strong> and <strong>diskinodes</strong>.  <em><strong>NOTE</strong>: there are a lot of other parameters that control and effect the disk but this tutorial will only cover the basics!</em></p>
<p>The parameter <strong>disk_quota</strong> is a YES or NO value which disables the file system quotas; if you are not worried about the quotas set it to NO and stop reading.  Otherwise; leave it set at YES and continue.</p>
<p>The parameter <strong>diskspace</strong> is the count of 1K blocks available to the VPS in a soft and hard limit.  The hard limit is a stop point similar to filling up a physical disk &#8211; when you are out, you are out.  The soft limit is when the bean counters get angry and the quotatime timer starts.  On a basic installation and VPS setup you will have a 1048576 1K blocks as a soft limit and 1153024 1K blocks as a hard limit.  The numbers are not <em>crazy</em> as they are derived from <a href="http://en.wikipedia.org/wiki/Binary_numeral_system">base2</a>.  Thus, 1048576 1K blocks is 1GB of disk space.  Add an additional 10.2MB to the disk space and you arrive at the 1048576 1K blocks.  These are the basic numbers for the basic template that ships with OpenVZ.</p>
<p>The parameter <strong>diskinodes</strong> is the total number of files, directories and links you can have in the container.  Think of them as <a href="http://en.wikipedia.org/wiki/Post-it_note">Post-it® notes</a> and each file, directory and link gets a single note.  The default basic number is 200,000 for a soft limit for 1GB of disk space and 220,000 for the hard limit.  Normally *nix systems will set aside enough inodes for one inode per 4K disk space block.  In the default template for OpenVZ they are setting aside enough inodes for 5.2K blocks.  Which I&#8217;ll write off as either (a) a magic number or (b) a unique calculation I am not familiar with.  Thus, because the 4K block inode count for 1GB of disk space should be 262,144 inodes we&#8217;ll use the default template values for our calculations and simply multiply times the number of GB requested.</p>
<p>So&#8230;</p>
<p>Now&#8230;</p>
<p>The question is how do you adjust them quickly and easily.  In this example we are going to work with units of GBs.  If you need more granularity you will need to divide it back out to MBs but Gigabytes works great for our needs:</p>
<p>First, we need to define the soft and hard limits, next we apply the updated diskspace numbers and finally set the inode numbers correctly based on the ratio we know from the default template:</p>
<p>Here are the commands (<em>and note below for a quick and easy Perl script</em>):</p>
<pre lang="bash">cid=1324
gb=5
vzctl set ${cid} --diskspace $((1048576 * ${gb})):$((1153434 * ${gb})) --save
vzctl set ${cid} --diskinodes $((200000 * ${gb})):$((220000 * ${gb})) --save</pre>
<pre lang="perl">#!/usr/bin/perl

# display the commands to update an OpenVZ VPS with new disk space requirements
# 2009/11/15 - Chris Schuld (chris@chrisschuld.com)

use strict;

print "Enter VPS CID: "; my $_CID = <stdin>; chomp($_CID);
print "Enter SOFT Diskspace Limit (ex 10GB):"; my $_SOFT = <stdin>; chomp($_SOFT); $_SOFT =~ s/[^0-9]//g;
print "Enter HARD Diskspace Limit (ex 11GB):"; my $_HARD = <stdin>; chomp($_HARD); $_HARD =~ s/[^0-9]//g;
my $_INODE_SOFT = ( 200000 * $_SOFT );
my $_INODE_HARD = ( 220000 * $_HARD );
print "Run these commands:\n";
print "vzctl set $_CID --diskspace ".$_SOFT."G:".$_HARD."G --save\n";
print "vzctl set $_CID --diskinodes $_INODE_SOFT:$_INODE_HARD --save\n";</pre>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2009/11/setting-vps-disk-space-with-openvz-the-easy-way/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing vzdump for OpenVZ on CentOS</title>
		<link>http://chrisschuld.com/2009/11/installing-vzdump-for-openvz-on-centos/</link>
		<comments>http://chrisschuld.com/2009/11/installing-vzdump-for-openvz-on-centos/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 06:48:06 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[OpenVZ]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=294</guid>
		<description><![CDATA[There are a few items required for installing vzdump for OpenVZ on CentOS. First, you&#8217;ll need an MTA &#8211; I suggest making sure you have postfix installed; if you have postfix installed the initial RPM requirement for &#8220;MTA&#8221; will be &#8230; <a href="http://chrisschuld.com/2009/11/installing-vzdump-for-openvz-on-centos/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There are a few items required for installing <a href="http://wiki.openvz.org/Backup_of_a_running_container_with_vzdump">vzdump</a> for <a href="http://wiki.openvz.org/Main_Page">OpenVZ</a> on CentOS.</p>
<p>First, you&#8217;ll need an MTA &#8211; I suggest making sure you have postfix installed; if you have postfix installed the initial RPM requirement for &#8220;MTA&#8221; will be handled for you.  Next, you&#8217;ll need <a href="http://www.cons.org/cracauer/cstream.html">cstream</a>.  This installation is slightly more tricky because (as far as I know) there is no real way to gain this from yum unless you use the <a href="http://dag.wieers.com/rpm/">DAG Wieers</a> repo.  Also, depending on what you have already installed you will likely need the Simple Locking file I/O library for Perl.</p>
<p>Here is how you get vzdump on a clean version of CentOS (via the hostnode):</p>
<pre lang="bash">
rpm -ivh "ftp://ftp.pbone.net/mirror/ftp.freshrpms.net/pub/freshrpms/pub/dag/redhat/el5/en/x86_64/RPMS.dag/cstream-2.7.4-3.el5.rf.x86_64.rpm"
wget http://dag.wieers.com/rpm/packages/perl-LockFile-Simple/perl-LockFile-Simple-0.206-1.el5.rf.noarch.rpm
rpm -ivh perl-LockFile-Simple-0.206-1.el5.rf.noarch.rpm
/bin/rm perl-LockFile-Simple-0.206-1.el5.rf.noarch.rpm
rpm -ivh "http://chrisschuld.com/centos54/vzdump-1.2-6.noarch.rpm"
</pre>
<p>Since version 1.2-6 of vzdump the location of the modules is not &#8220;automatic&#8221; and have found it necessary to export the location of the PVE libraries that vzdump requires via this command:</p>
<pre lang="bash">
export PERL5LIB=/usr/share/perl5/
</pre>
<p>All said and done there has to be a better way to do this&#8230; anyone&#8230; anyone??</p>
<p><em><strong>NOTE</strong>: 7/19/2010 &#8211; Proxmox updated their site&#8230; I updated all of the links!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2009/11/installing-vzdump-for-openvz-on-centos/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
