NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Zippyduda
May 02, 2018Aspirant
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...
- May 06, 2018
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.
StephenB
May 02, 2018Guru - 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
May 02, 2018Aspirant
Running a disk text now. For a 4TB setup in RAID1 (4TBx2) how long should I expect this to take?
- StephenBMay 02, 2018Guru - 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.
- ZippydudaMay 02, 2018Aspirant
Thanks Stephen, will leave it going then! :) Have turned off disk spin down, had it set to 240 minutes inactivity.
No disk errors in kernel.log or system.log which is reassuring.
Only errors I see are these:
Line 4502: May 02 12:36:50 wsdd2[2091]: error: wsdd-mcast-v4: wsd_send_soap_msg: send
Line 4503: May 02 12:36:50 wsdd2[2091]: error: wsdd-mcast-v6: wsd_send_soap_msg: send
Line 4504: May 02 12:36:50 wsdd2[2091]: error: llmnr-mcast-v4: open_ep: IP_ADD_MEMBERSHIP
Line 4521: May 02 12:36:52 wsdd2[2091]: error: wsdd-mcast-v4: wsd_send_soap_msg: send
Line 4522: May 02 12:36:52 wsdd2[2091]: error: wsdd-mcast-v6: wsd_send_soap_msg: send
Line 4597: May 02 12:47:22 smbd[4481]: list_snaps error response: error.no_permissions
Line 4597: May 02 12:47:22 smbd[4481]: list_snaps error response: error.no_permissions
Line 4853: May 02 14:38:16 wsdd2[2073]: error: wsdd-mcast-v4: wsd_send_soap_msg: send
Line 4854: May 02 14:38:16 wsdd2[2073]: error: wsdd-mcast-v6: wsd_send_soap_msg: send
Line 4855: May 02 14:38:16 wsdd2[2073]: error: llmnr-mcast-v4: open_ep: IP_ADD_MEMBERSHIP
Line 4868: May 02 14:38:18 wsdd2[2073]: error: wsdd-mcast-v4: wsd_send_soap_msg: send
Line 4869: May 02 14:38:18 wsdd2[2073]: error: wsdd-mcast-v6: wsd_send_soap_msg: send- mdgm-ntgrMay 02, 2018NETGEAR Employee Retired
There is a method to progressively delete huge files via SSH by repeatedly truncating it. Have you tried that?
- ZippydudaMay 03, 2018Aspirant
Looks like the disk test went through fine from the Logs section:
Thu May 3 2018 0:25:10 Volume: Disk test completed for volume data.
Wed May 2 2018 15:22:17 Volume: Disk test started for volume data.Overnight the admin panel closed so it closed I can't see the "Info, Warning, Errors" popup any more.
Unsure how I can get to this again or if I need to as the disk test completed (would it show any warnings or errors in Logs?)
I have not tried the a method to progressively delete huge files via SSH by repeatedly truncating it.
How would I go about doing this?
Related Content
NETGEAR Academy

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