- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Creating / Deleting large file crashes ReadyNAS
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
All Replies
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Creating / Deleting large file crashes ReadyNAS
For anyone having this issue, mdgm has a working solution. Contact him via PM.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Creating / Deleting large file crashes ReadyNAS
Could you post an actual solution or does it violate ToU?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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"
------------------------