Last active
December 16, 2023 18:13
-
-
Save AlD/6632516 to your computer and use it in GitHub Desktop.
Fix „ERROR: This RRD was created on another architecture“ on Debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]>, GPL |
Thanks - I'll try again. A clever and useful approach!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@grguthrie Please note that this snippet is almost ten years old and things may have changed.
The script expects the
.rrd
s to be below/var
. If that's not the case for you, replace all occurrences of/var
with the appropriate directory.