{"id":68,"date":"2012-11-13T18:25:36","date_gmt":"2012-11-13T16:25:36","guid":{"rendered":"http:\/\/www.olivierdoucet.info\/blog\/?p=68"},"modified":"2012-11-13T18:25:36","modified_gmt":"2012-11-13T16:25:36","slug":"migrating-rrdtool-32bits-64-bits","status":"publish","type":"post","link":"https:\/\/www.olivierdoucet.info\/blog\/2012\/11\/13\/migrating-rrdtool-32bits-64-bits\/","title":{"rendered":"Migrating RRDTool from 32bits to 64 bits"},"content":{"rendered":"<p>I had a very old server on a 32 bits platform. A few days ago, I bought a new one with a 64bits platform.<br \/>\nI was using Smokeping on this server, and I wanted to keep my old data. If you copy .rrd files in place, you&rsquo;ll get an error :<\/p>\n<pre>This RRD was created on another architecture<\/pre>\n<p>That&rsquo;s because RRD file structure changed based on the architecture you have. Yes, that&rsquo;s silly but this is the way it is.<\/p>\n<p>To convert files, you have to dump data to an XML file, sync it on the new server, and reimport it.<br \/>\nThis is how to make it with justa few lines of bash :<\/p>\n<pre>cd \/path\/to\/rrd\/files;\r\nfor i in $(find . -name '*.rrd'); do rrdtool dump $i &gt; $i.xml ; done\r\nrsync -av . my.server.ip:\/path\/to\/new\/dir\/rrd\/<\/pre>\n<p>And on the new server :<\/p>\n<pre>cd \/path\/to\/new\/dir\/rrd\r\nfor i in `find . -name '*.xml'`; do rrdtool restore --force-overwrite $i `echo $i |sed s\/.xml\/\/g`; done<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had a very old server on a 32 bits platform. A few days ago, I bought a new one with a 64bits platform. I was using Smokeping on this server, and I wanted to keep my old data. If you copy .rrd files in place, you&rsquo;ll get an error : This RRD was created &hellip; <a href=\"https:\/\/www.olivierdoucet.info\/blog\/2012\/11\/13\/migrating-rrdtool-32bits-64-bits\/\" class=\"more-link\">Continuer la lecture de <span class=\"screen-reader-text\">Migrating RRDTool from 32bits to 64 bits<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-68","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Migrating RRDTool from 32bits to 64 bits - My thoughts<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.olivierdoucet.info\/blog\/2012\/11\/13\/migrating-rrdtool-32bits-64-bits\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Migrating RRDTool from 32bits to 64 bits - My thoughts\" \/>\n<meta property=\"og:description\" content=\"I had a very old server on a 32 bits platform. A few days ago, I bought a new one with a 64bits platform. I was using Smokeping on this server, and I wanted to keep my old data. If you copy .rrd files in place, you&rsquo;ll get an error : This RRD was created &hellip; Continuer la lecture de Migrating RRDTool from 32bits to 64 bits &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.olivierdoucet.info\/blog\/2012\/11\/13\/migrating-rrdtool-32bits-64-bits\/\" \/>\n<meta property=\"og:site_name\" content=\"My thoughts\" \/>\n<meta property=\"article:published_time\" content=\"2012-11-13T16:25:36+00:00\" \/>\n<meta name=\"author\" content=\"Olivier\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@odoucet\" \/>\n<meta name=\"twitter:site\" content=\"@odoucet\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"Olivier\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.olivierdoucet.info\/blog\/2012\/11\/13\/migrating-rrdtool-32bits-64-bits\/\",\"url\":\"https:\/\/www.olivierdoucet.info\/blog\/2012\/11\/13\/migrating-rrdtool-32bits-64-bits\/\",\"name\":\"Migrating RRDTool from 32bits to 64 bits - My thoughts\",\"isPartOf\":{\"@id\":\"https:\/\/www.olivierdoucet.info\/blog\/#website\"},\"datePublished\":\"2012-11-13T16:25:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.olivierdoucet.info\/blog\/#\/schema\/person\/d093cada9eddc4839cbae3de5c823a39\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.olivierdoucet.info\/blog\/2012\/11\/13\/migrating-rrdtool-32bits-64-bits\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.olivierdoucet.info\/blog\/2012\/11\/13\/migrating-rrdtool-32bits-64-bits\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.olivierdoucet.info\/blog\/2012\/11\/13\/migrating-rrdtool-32bits-64-bits\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.olivierdoucet.info\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Migrating RRDTool from 32bits to 64 bits\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.olivierdoucet.info\/blog\/#website\",\"url\":\"https:\/\/www.olivierdoucet.info\/blog\/\",\"name\":\"My thoughts\",\"description\":\"En fran\u00e7ais and in english :)\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.olivierdoucet.info\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.olivierdoucet.info\/blog\/#\/schema\/person\/d093cada9eddc4839cbae3de5c823a39\",\"name\":\"Olivier\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/www.olivierdoucet.info\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e75f77ace92ccb2dfab09f226ce3d329?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e75f77ace92ccb2dfab09f226ce3d329?s=96&d=mm&r=g\",\"caption\":\"Olivier\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Migrating RRDTool from 32bits to 64 bits - My thoughts","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.olivierdoucet.info\/blog\/2012\/11\/13\/migrating-rrdtool-32bits-64-bits\/","og_locale":"fr_FR","og_type":"article","og_title":"Migrating RRDTool from 32bits to 64 bits - My thoughts","og_description":"I had a very old server on a 32 bits platform. A few days ago, I bought a new one with a 64bits platform. I was using Smokeping on this server, and I wanted to keep my old data. If you copy .rrd files in place, you&rsquo;ll get an error : This RRD was created &hellip; Continuer la lecture de Migrating RRDTool from 32bits to 64 bits &rarr;","og_url":"https:\/\/www.olivierdoucet.info\/blog\/2012\/11\/13\/migrating-rrdtool-32bits-64-bits\/","og_site_name":"My thoughts","article_published_time":"2012-11-13T16:25:36+00:00","author":"Olivier","twitter_card":"summary_large_image","twitter_creator":"@odoucet","twitter_site":"@odoucet","twitter_misc":{"\u00c9crit par":"Olivier","Dur\u00e9e de lecture estim\u00e9e":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.olivierdoucet.info\/blog\/2012\/11\/13\/migrating-rrdtool-32bits-64-bits\/","url":"https:\/\/www.olivierdoucet.info\/blog\/2012\/11\/13\/migrating-rrdtool-32bits-64-bits\/","name":"Migrating RRDTool from 32bits to 64 bits - My thoughts","isPartOf":{"@id":"https:\/\/www.olivierdoucet.info\/blog\/#website"},"datePublished":"2012-11-13T16:25:36+00:00","author":{"@id":"https:\/\/www.olivierdoucet.info\/blog\/#\/schema\/person\/d093cada9eddc4839cbae3de5c823a39"},"breadcrumb":{"@id":"https:\/\/www.olivierdoucet.info\/blog\/2012\/11\/13\/migrating-rrdtool-32bits-64-bits\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.olivierdoucet.info\/blog\/2012\/11\/13\/migrating-rrdtool-32bits-64-bits\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.olivierdoucet.info\/blog\/2012\/11\/13\/migrating-rrdtool-32bits-64-bits\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.olivierdoucet.info\/blog\/"},{"@type":"ListItem","position":2,"name":"Migrating RRDTool from 32bits to 64 bits"}]},{"@type":"WebSite","@id":"https:\/\/www.olivierdoucet.info\/blog\/#website","url":"https:\/\/www.olivierdoucet.info\/blog\/","name":"My thoughts","description":"En fran\u00e7ais and in english :)","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.olivierdoucet.info\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Person","@id":"https:\/\/www.olivierdoucet.info\/blog\/#\/schema\/person\/d093cada9eddc4839cbae3de5c823a39","name":"Olivier","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.olivierdoucet.info\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e75f77ace92ccb2dfab09f226ce3d329?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e75f77ace92ccb2dfab09f226ce3d329?s=96&d=mm&r=g","caption":"Olivier"}}]}},"_links":{"self":[{"href":"https:\/\/www.olivierdoucet.info\/blog\/wp-json\/wp\/v2\/posts\/68","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.olivierdoucet.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.olivierdoucet.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.olivierdoucet.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.olivierdoucet.info\/blog\/wp-json\/wp\/v2\/comments?post=68"}],"version-history":[{"count":1,"href":"https:\/\/www.olivierdoucet.info\/blog\/wp-json\/wp\/v2\/posts\/68\/revisions"}],"predecessor-version":[{"id":69,"href":"https:\/\/www.olivierdoucet.info\/blog\/wp-json\/wp\/v2\/posts\/68\/revisions\/69"}],"wp:attachment":[{"href":"https:\/\/www.olivierdoucet.info\/blog\/wp-json\/wp\/v2\/media?parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.olivierdoucet.info\/blog\/wp-json\/wp\/v2\/categories?post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.olivierdoucet.info\/blog\/wp-json\/wp\/v2\/tags?post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}