× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Creating / Deleting large file crashes ReadyNAS

Bit-Bucket
Aspirant

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.

 

 

Message 1 of 9

Accepted Solutions
mdgm-ntgr
NETGEAR Employee Retired

Re: Creating / Deleting large file crashes ReadyNAS

Hi Bit-Bucket,

I have sent you a PM.

View solution in original post

Message 4 of 9

All Replies
tatersolid
Aspirant

Re: Creating / Deleting large file crashes ReadyNAS

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?

Message 2 of 9
Bit-Bucket
Aspirant

Re: Creating / Deleting large file crashes ReadyNAS

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.

 

Message 3 of 9
mdgm-ntgr
NETGEAR Employee Retired

Re: Creating / Deleting large file crashes ReadyNAS

Hi Bit-Bucket,

I have sent you a PM.

Message 4 of 9
Bit-Bucket
Aspirant

Re: Creating / Deleting large file crashes ReadyNAS

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

 

Message 5 of 9
DarekDan
Aspirant

Re: Creating / Deleting large file crashes ReadyNAS

Could you post an actual solution or does it violate ToU?

Message 6 of 9
Bit-Bucket
Aspirant

Re: Creating / Deleting large file crashes ReadyNAS

Not sure if it was appropriate to post the solution here since it may not be a straightforward fix for everyone.

If mdgm thought it would be OK to post it publicly, I assume that he would.

Message 7 of 9
pyby
Aspirant

Re: Creating / Deleting large file crashes ReadyNAS

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

Message 8 of 9
Bit-Bucket
Aspirant

Re: Creating / Deleting large file crashes ReadyNAS

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"

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

Message 9 of 9
Top Contributors
Discussion stats
  • 8 replies
  • 4267 views
  • 0 kudos
  • 5 in conversation
Announcements