NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

HolgerGT86's avatar
Aug 16, 2021
Solved

ReadyNAS shutdown since update to 6.10.5 Hotfix 1

Hello community, I'm using a RN104 since years. It has 1 volume defined. I'm scheduling maintenance tasks (defrag, balance, disk test, data scrubbing) on that volume on a monthly base. I'm using a ...
  • StephenB's avatar
    Aug 16, 2021

    HolgerGT86 wrote:

     

    Before updating to firmware level 6.10.5 Hotfix 1, the RN104 did not shutdown by power off timer if a volume maintenance task was still running.

    That is not my experience - I found that a scrub would generally hold off the auto shutdown, but that other tasks (particularly the disk test) would not.  I complained about this back in 2017, but nothing was ever fixed.  https://community.netgear.com/t5/ReadyNAS-Idea-Exchange/Option-to-defer-scheduled-shutdowns-if-a-maintenance-task-is/idi-p/1207872

     

    I eventually decided to fix this myself, and modified the autopoweroff script on my NAS last January. 

     

    FWIW, it's clear from looking at that script that Netgear makes no attempt to hold off shutdown for any maintenance task.  The scrub is usually held off because the NAS is checking for a RAID resync, and that is one of the steps in the scrub.  But if the other component of the scrub (the btrfs scrub) takes longer than the resync, or if you are using JBOD (so there is no RAID resync), then it will also be terminated if it is running when the shutdown time arrives.

     

    My mod doesn't handle the case when two or more maintenance functions are running at the same time on different volumes.  That's not a problem for me, since my maintenance schedule is set up to prevent that from happening.  And of course if you only have one volume, it's not a concern.  

     

    If you are ok with making this change yourself with ssh, I can repost the modified script here.  You do need to check that Netgear hasn't overwritten it after every firmware update.