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

Forum Discussion

steveoelliott's avatar
Jul 21, 2018
Solved

ReadyNAS 526 Unclean Shutdown

Hi all, Today one of my ReadyNAS 526's was uncleanly shutdown due to an error on my part... The unit was idle at the time and has come back online but I am keen to understand how an unclean shutdown affects the BTRFS filesystem that these NAS's use. Ordinarily I would run an fsck (if it were ext3/4) but with BTRFS there is no such tool. Should I be concerned about possible filesystem damage / corruption? How does BTRFS handle unclean shutdowns? Thanks...

  • The file system itself is designed to handle unclean shutdown cleanly (with no need for file system checking).  

     

    The software raid underneath is generally a bigger concern, as lost writes can result in a RAID array that is out of sync.  If it does fall out of sync, the volume won't be mounted (so that definitely didn't happen in your case).  The RAID sync vulnerability isn't filesystem dependent - it's the same with ext3 as it is with btrfs.

5 Replies

Replies have been turned off for this discussion
  • StephenB's avatar
    StephenB
    Guru - Experienced User

    The file system itself is designed to handle unclean shutdown cleanly (with no need for file system checking).  

     

    The software raid underneath is generally a bigger concern, as lost writes can result in a RAID array that is out of sync.  If it does fall out of sync, the volume won't be mounted (so that definitely didn't happen in your case).  The RAID sync vulnerability isn't filesystem dependent - it's the same with ext3 as it is with btrfs.

    • steveoelliott's avatar
      steveoelliott
      Luminary

      Thanks Stephen... The RAID vulnerability is however quite a concern (not for this occasion but generally). Is there anything that can be done to prevent this and / or clean it up should the array become out of sync? Are Netgear likely to resolve this in the future or is it a feature limitation of the implementation?

      • StephenB's avatar
        StephenB
        Guru - Experienced User

        There are event counters on each disk, which mdadm uses to detect if the array is in sync.  There is a command option (--force) which tells mdadm to ignore the counters.  If you use that, then the array will mount, but there will be some volume corruption (since there are lost writes).

         


        steveoelliott wrote:

         is it a feature limitation of the implementation?


        I think the possibility of lost writes as a result of an unexpected shutdown (or crash) is inherent to RAID.  I always recommend using a UPS with a NAS, as that eliminates the possibility of an unexpected power cut.  Though of course a crash can create the same effect.  Disabling the write cache is another way to substantially reduce the risk (with a performance cost) - though write cache controls aren't available in the current web ui.

         

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More