<?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>~lionel.porcheron &#187; migration</title>
	<atom:link href="http://www.porcheron.info/tag/migration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.porcheron.info</link>
	<description></description>
	<lastBuildDate>Sun, 31 Jan 2010 17:21:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>munin: migration from a 32bit to a 64bit host</title>
		<link>http://www.porcheron.info/munin-migration-from-a-32bit-to-a-64bit-host/</link>
		<comments>http://www.porcheron.info/munin-migration-from-a-32bit-to-a-64bit-host/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 20:57:00 +0000</pubDate>
		<dc:creator>Lionel Porcheron</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[munin]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.porcheron.info/?p=68</guid>
		<description><![CDATA[When you migration your munin from a 32bits to a 64bits installation, you have to dump restore all your rrd files. Saying that looks like a pain, but in fact, it is easy to do . We migrate some months ago our munin/nagios server at work from an old 32bits server to a brand new [...]]]></description>
			<content:encoded><![CDATA[<p>When you migration your munin from a 32bits to a 64bits installation, you have to dump restore all your rrd files. Saying that looks like a pain, but in fact, it is easy to do <img src='http://www.porcheron.info/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> . We migrate some months ago our munin/nagios server at work from an old 32bits server to a brand new rack server using a 64bit Ubuntu 8.04.1, we performed the following scripts and kept our historic.</p>
<p>Here are the two scripts (you need some disk space to perform the dump / restore) . I assume you have copied the content of you "old" server on the new server. On Ubuntu/Debian servers, rrd files usually lives in /var/lib/munin.</p>
<p>First dump script :</p>
<pre>#!/bin/bash
for f in `find /var/lib/munin -name '*.rrd' -print` ; do
    xml_file=`dirname $f`/`basename $f .rrd`.xml
   rrdtool dump "$f" &gt; "${xml_file}"
   chown root:root "${xml_file}"
done</pre>
<p>Import script :</p>
<pre>#!/bin/bash
for f in `find /var/lib/munin -name '*.xml' -print` ; do
   rrd_file=`dirname $f`/`basename $f .xml`.rrd
   mv -f "${rrd_file}" "${rrd_file}.bak"
   chown root:root "${rrd_file}.bak"
   rrdtool restore "$f" "${rrd_file}"
   chown munin:munin "${rrd_file}"
done</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.porcheron.info/munin-migration-from-a-32bit-to-a-64bit-host/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
