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

Forum Discussion

Bit-Bucket's avatar
Bit-Bucket
Aspirant
Aug 06, 2015
Solved

Creating / Deleting large file crashes ReadyNAS

In VMWare, I was migrating a large VM to a NFS share on my ReadyNAS RN2120.  It got to a certain point and then the ReadyNAS crashed.  After rebooting it, I tried to delete the directory which contains a 0.98 TB vmdk file and it crashed again.  Every time I try to delete this file, it crashes the ReadyNAS and the unit must be hard booted.  I've tried deleting it via Windows, in the ReadyNAS Web UI and via SSH with the same results (crash).  There seems to be no way to remove this file without crashing the ReadyNAS.

 

This is a very serious issue and seems to be the same problem this fellow is having:

https://community.netgear.com/t5/Using-your-ReadyNAS/Can-t-delete-a-large-file/m-p/932043#M70966

 

There is obviously some kind of bug in this ReadyNAS OS (firmware version 6.2.4) which is causing this.  I really need a solution that doesn't require a complete factory reset / erasure of the unit.

 

 

8 Replies

Replies have been turned off for this discussion
  • Exact same issue here. Cannot delete a large VMDK (2 TB in my case) via any means without crashing the ReadyNAS.

     

    Any workarounds? Can I drop to a root command prompt or anything?

    • Bit-Bucket's avatar
      Bit-Bucket
      Aspirant

      I've tried everything I could think of and nothing works.

      I connected via SSH and tried to delete the file through the command line and it still crashes the system

      I also tried just removing the entire share where the file is located and just get a "Folder operation failed" and an error code "1004030000". 

       

      No dice.

       

      • mdgm-ntgr's avatar
        mdgm-ntgr
        NETGEAR Employee Retired

        Hi Bit-Bucket,

        I have sent you a PM.

  • For anyone having this issue, mdgm has a working solution.  Contact him via PM.

     

  • may someone write down the solution?

    i've got ready nas 2120 and same problem - cant delete 1 file about 1.6tb.

     

    best regards,

    Marcin

    • Bit-Bucket's avatar
      Bit-Bucket
      Aspirant

      Ok, it seems a lot of people are having this issue and apparently it still hasn't been fixed in the ReadyNAS software.

       

      I have posted the script below that will delete large files that are "stuck".  Be very careful with this script as you can probably screw things up big-time if you don't get it just right.  Mods, please delete if this is not appropriate to post here.

       

      Script follows:

       

      -------------------------

      #!/bin/sh

      if [ -z "$1" ]; then
        echo "no file"
        exit 1
      fi
      file="$1"

      size=`stat --format='%s' "$file"`
      step=1073741824
      next=$(($size - $step))

      while [ $next -gt 0 ]; do
        echo "trunc to $next"
        truncate -s$next -- "$file"
        sync
        next=$(($next - $step))
      done
      rm -- "$file"

      ------------------------

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