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

Forum Discussion

Zippyduda's avatar
Zippyduda
Aspirant
May 02, 2018
Solved

Deleting large file fails and crashes NAS

Hi all.

I have a 300GB file that I want to delete however when I try to do it via Windows or SSH it fails and crashes the NAS, meaning I have to remove the power to reboot it (it doesn't respond to software or physical reboot). When it comes back on the file is still there.

 

Is there a way I can remove this file?

Or do I just need to delete the share it resides on?

 

I'm on the latest stable firmware version for my NETGEAR RN10400-100EUS: 6.9.3

 

Thanks and kind regards.

  • You could try a single truncation via ssh

    truncate -s 0 myfile.ext

    Progressive truncation just uses different parameters for -s (size).  For instance, -s 100G or -s 100M.

     

    Echo is another tool that can truncate a file.

    echo > myfile.ext

     

    Either way, turn snapshots off before you do this.  Perhaps also disable checksums and quota if they are enabled (look on the volume settings wheel).

     

    If it works, I suggest running a balance afterwards.  If that also locks up, then post back.

     

     

30 Replies

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

    I suggest running the disk test next - it's one of the options on the volume settings wheel.

     

    Also, download the log zip, and see if there are any disk or BTRFS errors in system.log and kernel.log.

    • Zippyduda's avatar
      Zippyduda
      Aspirant

      Running a disk text now. For a 4TB setup in RAID1 (4TBx2) how long should I expect this to take?

      • StephenB's avatar
        StephenB
        Guru - Experienced User

        The last one I ran took 13 hours with a 4x6TB array with healthy disks.  I'm not sure if it tests the drives sequentially or in parallel.  Maybe assume about 8 hours.

         

        If you have spindown enabled, maybe temporarily turn that off.

         

  • Having trouble copying files onto my NAS as it thinks it's lacking space, when I know it is not.

     

    Windows comes back with a message saying:

     

    ""There is not enough space on <Volume> (NAS name). You need an additional X.XX GB to copy these files"

     

    I've attached screenshots to show what I mean.

     

    Would it be worth trying to FTP/SFTP the files on as a workaround?

    • Zippyduda's avatar
      Zippyduda
      Aspirant

      Attached multiple images showing the free space, relevant settings are off and the Windows message.


      • StephenB's avatar
        StephenB
        Guru - Experienced User

        It looks like it shouldn't be doing this.

         

        Perhaps try rebooting the NAS (mostly under the theory that it is simple to do).

         

        How old is your data volume?  If it is very old, there might be some hidden snapshots.

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