Public bug reported: The size_t change from 32 bits to 64 bits introduced in noble changes the rrd database format.
rrdtool from noble/armhf cannot read a rrd database produced in jammy/armhf or earlier: ubuntu@n-armhf:~$ rrdtool dump test-armhf-jammy.rrd ERROR: 'test-armhf-jammy.rrd' is too small (should be 1032 bytes) ubuntu@n-armhf:~$ ls -l test-armhf-jammy.rrd -rw-r--r-- 1 ubuntu ubuntu 1024 Aug 27 18:36 test-armhf-jammy.rrd That test rrd was produced in jammy/armhf. Essentially, this means a database dump has to be taken before a release upgrade to noble, where a database restore can than be done. With a dump produced in jammy/armhf: ubuntu@n-armhf:~$ ls -l test-armhf-jammy.xml -rw-rw-r-- 1 ubuntu ubuntu 3921 Aug 27 18:36 test-armhf-jammy.xml We can regenerate an rrd in noble: ubuntu@n-armhf:~$ rrdtool restore test-armhf-jammy.xml noble.rrd ubuntu@n-armhf:~$ ls -l noble.rrd -rw-rw-r-- 1 ubuntu ubuntu 1032 Aug 27 18:52 noble.rrd ubuntu@n-armhf:~$ rrdtool dump noble.rrd |head -n 3 <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE rrd SYSTEM "https://oss.oetiker.ch/rrdtool/rrdtool.dtd"> <!-- Round Robin Database Dump --> ** Affects: ubuntu-release-notes Importance: Undecided Status: New ** Affects: rrdtool (Ubuntu) Importance: Undecided Status: New ** Description changed: The size_t change from 32 bits to 64 bits introduced in noble changes the rrd database format. rrdtool from noble/armhf cannot read a rrd database produced in jammy/armhf or earlier: - ubuntu@n-armhf:~$ rrdtool dump test-armhf-jammy.rrd + ubuntu@n-armhf:~$ rrdtool dump test-armhf-jammy.rrd ERROR: 'test-armhf-jammy.rrd' is too small (should be 1032 bytes) - ubuntu@n-armhf:~$ ls -l test-armhf-jammy.rrd + ubuntu@n-armhf:~$ ls -l test-armhf-jammy.rrd -rw-r--r-- 1 ubuntu ubuntu 1024 Aug 27 18:36 test-armhf-jammy.rrd That test rrd was produced in jammy/armhf. Essentially, this means a database dump has to be taken before a release upgrade to noble, where a database restore can than be done. With a dump produced in jammy/armhf: - ubuntu@n-armhf:~$ ls -l test-armhf-jammy.xml + ubuntu@n-armhf:~$ ls -l test-armhf-jammy.xml -rw-rw-r-- 1 ubuntu ubuntu 3921 Aug 27 18:36 test-armhf-jammy.xml We can regenerate an rrd in noble: ubuntu@n-armhf:~$ rrdtool restore test-armhf-jammy.xml noble.rrd - ubuntu@n-armhf:~$ ls -l noble.rrd + ubuntu@n-armhf:~$ ls -l noble.rrd -rw-rw-r-- 1 ubuntu ubuntu 1032 Aug 27 18:52 noble.rrd + + ubuntu@n-armhf:~$ rrdtool dump noble.rrd |head -n 3 + <?xml version="1.0" encoding="utf-8"?> + <!DOCTYPE rrd SYSTEM "https://oss.oetiker.ch/rrdtool/rrdtool.dtd"> + <!-- Round Robin Database Dump --> ** Also affects: ubuntu-release-notes Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2077994 Title: armhf: rrd dbs produced before the size_t change cannot be read by rrdtool in noble and later To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-release-notes/+bug/2077994/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
