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

    pfsense HD constant spin-up and spin down

    Scheduled Pinned Locked Moved General pfSense Questions
    20 Posts 6 Posters 1.6k 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.
    • A
      aciampoli
      last edited by

      Yes it is, all on adaptive. Forgot i did that as I was trying many diff things.

      1 Reply Last reply Reply Quote 0
      • provelsP
        provels
        last edited by

        FWIW, it may be a property of the HDD firmware (energy saving). Or not.

        Peder

        MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
        BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

        1 Reply Last reply Reply Quote 0
        • A
          aciampoli
          last edited by

          @provels yes i have considered this but the default install of pfsense did not have this issue.

          provelsP 1 Reply Last reply Reply Quote 0
          • chpalmerC
            chpalmer
            last edited by

            at system_advanced_misc.php

            bottom of page.. what is your HD standby time set to?

            Triggering snowflakes one by one..
            Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

            1 Reply Last reply Reply Quote 0
            • provelsP
              provels @aciampoli
              last edited by

              @aciampoli Look on the bright side. Maybe it's finally dying! :)

              Peder

              MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
              BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Yeah you should be able to disable the spin-down as @chpalmer said above.

                Or of you have a loud drive you can set /var and /tmp as ram drives. I've done that previously for exactly that reason and it leaves the drive spun-down almost all of the time. That's also a setting in Sys > Adv > Misc.

                Steve

                1 Reply Last reply Reply Quote 0
                • A
                  aciampoli
                  last edited by

                  @chpalmer here is the section in system_advanced_misc.php
                  *$section->addInput(new Form_Select(
                  'harddiskstandby',
                  'Hard disk standby time',
                  $pconfig['harddiskstandby'],
                  ['' => gettext("Always on")] + array_combine($opts, $vals)
                  ))->setHelp('Puts the hard disk into standby mode when the selected number of minutes has elapsed since the last access.%1$s' .
                  '%2$sDo not set this for CF cards.%3$s', '<br />', '<strong>', '</strong>');

                  $form->add($section);*

                  @stephenw10 any disadvantages in putting /var and /tmp in ram?

                  chpalmerC 1 Reply Last reply Reply Quote 0
                  • A
                    aciampoli
                    last edited by

                    @stephenw10 made the changes to set /var and /tmp as ram drives, drive is still spinning up and down as we speak.

                    Adriano

                    provelsP stephenw10S 2 Replies Last reply Reply Quote 0
                    • provelsP
                      provels @aciampoli
                      last edited by

                      @aciampoli What is the make and model of drive? I have seen several WD drives with excessive head parking issues (as short as 8 seconds. WD Green/Red models come to mind.

                      Peder

                      MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
                      BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator @aciampoli
                        last edited by

                        @aciampoli
                        Hmm, and it did apply those? It rebooted?

                        You might have to removed the 'don't spin down' setting to allow it to spin down. Though in my case I did not.

                        You might have something else writing to the drive, maybe a Squid cache for example.

                        Steve

                        1 Reply Last reply Reply Quote 0
                        • A
                          aciampoli
                          last edited by

                          @provels seagate 500LM030-2E717D
                          @stephenw10 yes it applied and rebooted.

                          1 Reply Last reply Reply Quote 0
                          • RicoR
                            Rico LAYER 8 Rebel Alliance
                            last edited by

                            Can you please try another PSU?

                            -Rico

                            1 Reply Last reply Reply Quote 0
                            • A
                              aciampoli
                              last edited by

                              @Rico No I don't think changing the PSU will do anything as a default PfSense install doesn't give me this issue.

                              1 Reply Last reply Reply Quote 0
                              • stephenw10S
                                stephenw10 Netgate Administrator
                                last edited by

                                A clean install does not do this? Does it remain spin down or spun up?

                                What packages are you running?

                                Steve

                                1 Reply Last reply Reply Quote 0
                                • A
                                  aciampoli
                                  last edited by

                                  @stephenw10 correct, for testing I did a clean install on this computer and let it sit there, I didn't hear any spin ups/downs, but I cannot say what state it was in up or down.
                                  As for packages

                                  Avahi
                                  iperf
                                  openvpn-client-export
                                  pfBlockerNG-devel
                                  Shellcmd

                                  Currently the system is not in prod, and is sitting on my lan, no traffic is going through it except for me using ssh/web portal

                                  1 Reply Last reply Reply Quote 0
                                  • stephenw10S
                                    stephenw10 Netgate Administrator
                                    last edited by

                                    Logging from pfBlocker is what I would suspect there then. Though I would have expected that to be in /var and hence in RAM if you enabled that.

                                    Steve

                                    1 Reply Last reply Reply Quote 0
                                    • chpalmerC
                                      chpalmer @aciampoli
                                      last edited by

                                      @aciampoli said in pfsense HD constant spin-up and spin down:

                                      @chpalmer here is the section in system_advanced_misc.php
                                      $section->addInput(new Form_Select(
                                      'harddiskstandby',
                                      'Hard disk standby time',
                                      $pconfig['harddiskstandby'],
                                      ['' => gettext("Always on")] + array_combine($opts, $vals)
                                      ))->setHelp('Puts the hard disk into standby mode when the selected number of minutes has elapsed since the last access.%1$s' .
                                      '%2$sDo not set this for CF cards.%3$s', '<br />', '<strong>', '</strong>');
                                      $form->add($section);

                                      Your install looks broken.. HDSetting.jpg

                                      Triggering snowflakes one by one..
                                      Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        aciampoli
                                        last edited by

                                        Update from my end, I think I figured it out...
                                        After @chpalmer last msg, I went back to the "Hard disk standby time" settings and it was set to 180, which even if the systems was using the 180 mins it still didn't make any sense as to why is was spinning up/down so quickly. What I did is set it back to Always on and after saving and rebooting there are no more spin ups or downs.

                                        thank you.

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.