Skip to content

Instantly share code, notes, and snippets.

@AlD
Last active October 15, 2026 13:14
Show Gist options
  • Select an option

  • Save AlD/6632516 to your computer and use it in GitHub Desktop.

Select an option

Save AlD/6632516 to your computer and use it in GitHub Desktop.
Fix „ERROR: This RRD was created on another architecture“ on Debian
debootstrap --arch=i386 --include=rrdtool stable /tmp/rrdtool-i386 &&
mount --bind /var /tmp/rrdtool-i386/var &&
find /var -mount -type f -name \*.rrd |
while read rrd; do
td=$(mktemp -d)
linux32 chroot /tmp/rrdtool-i386 rrdtool dump "$rrd" > $td/xml &&
rrdtool restore $td/xml $td/rrd &&
cp $td/rrd "$rrd"
rm $td/{xml,rrd}
rmdir $td
done
# © 2013-09-20 Daniel Albers <daniel@lbe.rs>, GPL
@xrat

xrat commented Oct 15, 2026 •

Copy link
Copy Markdown

Don't make the same mistake like I did: Don't do rm -r /tmp/rrdtool-i386/ to remove the chroot environment unless you made sure the mount --bind /var was umounted.
Thanks for this gist!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment