• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Missing RRD data

Scheduled Pinned Locked Moved General pfSense Questions
11 Posts 4 Posters 843 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K
    kevindd992002
    last edited by kevindd992002 Mar 19, 2019, 3:55 AM Mar 19, 2019, 3:49 AM

    I have two pfsense boxes in two different locations. I don't have any issues with RRD data in one of the boxes but the other one only shows data from 3/10/2019 onwards. I'm not entirely sure what happened to data before that date. I did reinstall pfsense (and restored a full backup) last 2/25/2019. If the restore failed to restore RRD, I would at least see data from 2/25 to 3/9 but those are also missing.

    Any idea where to start looking at as to why historical date before 3/10 is nowhere to be found?

    1 Reply Last reply Reply Quote 0
    • K
      kevindd992002
      last edited by Mar 19, 2019, 3:54 AM

      This is really weird, in my system logs, I see this:

      Feb 25 17:32:22 radiusd 15009 Exiting normally
      Feb 25 17:32:23 shutdown power-down by root:
      Feb 25 17:32:24 kernel done.
      Mar 9 07:23:17 syslogd kernel boot file is /boot/kernel/kernel
      Mar 9 07:23:17 kernel Copyright (c) 1992-2018 The FreeBSD Project.
      Mar 9 07:23:17 kernel Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
      Mar 9 07:23:17 kernel The Regents of the University of California. All rights reserved.
      Mar 9 07:23:17 kernel FreeBSD is a registered trademark of The FreeBSD Foundation.
      Mar 9 07:23:17 kernel FreeBSD 11.2-RELEASE-p6 #3 518496b29ae(RELENG_2_4_4): Wed Dec 12 07:41:44 EST 2018
      Mar 9 07:23:17 kernel root@buildbot2.nyi.netgate.com:/build/ce-crossbuild-244/obj/amd64/ZfGpH5cd/build/ce-crossbuild-244/pfSense/tmp/FreeBSD-src/sys/pfSense amd64

      Look how it jumped from 2/25 to 3/9? It's as if it was turned off the whole time but this is impossible because this firewall/router box is used 24/7. I would've known if it was off for that amount of time. Could it be the logging was somehow disabled?

      1 Reply Last reply Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by Mar 19, 2019, 3:15 PM

        System clock correct? ntp updated?

        Do you run ramdisks?

        Steve

        K 1 Reply Last reply Mar 19, 2019, 3:48 PM Reply Quote 0
        • K
          kevindd992002 @stephenw10
          last edited by Mar 19, 2019, 3:48 PM

          @stephenw10

          Yes, system clock is correct and ntp is updated.

          And yes, I do use ramdisks for /tmp and /var. So maybe a power loss corrupted data in the ramdisk and RRD data got lost? Will ramdisk data be written to hard disk during graceful shutdown?

          1 Reply Last reply Reply Quote 0
          • G
            Gertjan
            last edited by Mar 19, 2019, 4:01 PM

            RAMDisk being written some where else - except the config.xml ?
            Dono .... https://forum.netgate.com/topic/104180/pfsense-ramdisk-usage and more threads exists - the very same question is asked a lot.
            I guess not.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            K 1 Reply Last reply Mar 19, 2019, 4:07 PM Reply Quote 0
            • K
              kevindd992002 @Gertjan
              last edited by Mar 19, 2019, 4:07 PM

              @Gertjan said in Missing RRD data:

              RAMDisk being written some where else - except the config.xml ?
              Dono .... https://forum.netgate.com/topic/104180/pfsense-ramdisk-usage and more threads exists - the very same question is asked a lot.
              I guess not.

              Right, I was the one who asked that, lol.

              So according to @jimp RRD and DHCP leases are written to permanent storage but if that's the case why do we still have the option of specifying the "Periodic RAM Disk Data Backups" setting? I'm confused.

              1 Reply Last reply Reply Quote 0
              • G
                Grimson Banned
                last edited by Mar 19, 2019, 4:30 PM

                https://docs.netgate.com/pfsense/en/latest/book/config/advanced-misc.html#ram-disk-settings

                Make sure your RAM disks are big enough for the data they should contain, the defaults are far to small.

                K 1 Reply Last reply Mar 19, 2019, 4:35 PM Reply Quote 0
                • K
                  kevindd992002 @Grimson
                  last edited by Mar 19, 2019, 4:35 PM

                  @Grimson said in Missing RRD data:

                  https://docs.netgate.com/pfsense/en/latest/book/config/advanced-misc.html#ram-disk-settings

                  Make sure your RAM disks are big enough for the data they should contain, the defaults are far to small.

                  I have them both set to 128MB. So it says in that link that RRD and DHCP leases are saved during graceful shutdown. I guess I lost data because of an improper shutdown somehow (though I have a UPS that handles this) and because I don't have periodic backup set. I'll set periodic backup now just to be sure.

                  G 1 Reply Last reply Mar 19, 2019, 4:54 PM Reply Quote 0
                  • G
                    Grimson Banned @kevindd992002
                    last edited by Mar 19, 2019, 4:54 PM

                    @kevindd992002 said in Missing RRD data:

                    I have them both set to 128MB.

                    And what packages are you running? With heavy packages like pfBlockerNG, suricata, snort or squid this will likely not be enough.

                    K 1 Reply Last reply Mar 19, 2019, 5:05 PM Reply Quote 0
                    • K
                      kevindd992002 @Grimson
                      last edited by Mar 19, 2019, 5:05 PM

                      @Grimson said in Missing RRD data:

                      @kevindd992002 said in Missing RRD data:

                      I have them both set to 128MB.

                      And what packages are you running? With heavy packages like pfBlockerNG, suricata, snort or squid this will likely not be enough.

                      Very simple ones, actually: freeradius3, iperf, nut, RRD_Summary

                      1 Reply Last reply Reply Quote 0
                      • S
                        stephenw10 Netgate Administrator
                        last edited by Mar 19, 2019, 6:54 PM

                        Mostly likely it lost power and hence whatever was in the RAM disks at that time. Yes the data is written to permanent storage when it is shutdown gracefully.

                        Steve

                        1 Reply Last reply Reply Quote 0
                        11 out of 11
                        • First post
                          11/11
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                          This community forum collects and processes your personal information.
                          consent.not_received