NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Piglet
Dec 17, 2014Luminary
Cancel a defrag
I started a defrag on my RN104 about 60h ago and it still hasn't finished. It has so far eaten up about 70GB and I'm getting low on free space, so I want to move files off the NAS to make more room for defrag to do its thing.
The defrag is taking up almost 100% of the cpu so the system is very sluggish and the web interface is not loading fully. I can execute commands via ssh though.
My question is if it's safe to restart the NAS and cancel the defrag? If so, what is the recommended way to do a reboot via ssh; the "reboot" command or "rn_shutdown"?
The defrag is taking up almost 100% of the cpu so the system is very sluggish and the web interface is not loading fully. I can execute commands via ssh though.
My question is if it's safe to restart the NAS and cancel the defrag? If so, what is the recommended way to do a reboot via ssh; the "reboot" command or "rn_shutdown"?
28 Replies
Replies have been turned off for this discussion
- PigletLuminary
mdgm wrote: 6.2 didn't enable CoW. It added the option to disable CoW.
I was under the impression that if you didn't have snapshots enabled, CoW wasn't enabled either? Because the share where I downloaded my torrents had snapshots disabled, and when checking after upgrading to 6.2 the CoW option was on. That's why I'm thinking 6.2 enabled it for me.One option would be to create new shares, copy your data into those shares and then delete the original shares.
Do I have to create a new share or can I copy the data to an external disk, delete the original files and then copy the files back? This would be preferable since I'm low on space on the NAS but have a 2TB USB disk I could use as temporary storage.When you run lsattr on a file you will see if CoW is enabled or not.
How would lsattr show files with CoW enabled vs disabled? All the files I have checked show just blanks (no flags), e.g.---------------- ./0001302400.pdf
---------------- ./Atelier
---------------- ./BACKUPS
---------------- ./Blindpassasjer - mdgm-ntgrNETGEAR Employee RetiredNo CoW was on regardless of the snapshot setting. On the 104, new shares created from 6.2.0 onwards have CoW disabled by default.
If you are going to copy the files to a USB disk, you may as well do a factory default (wipes all data, settings, everything) and restore your data from backup. This will give you a clean setup on the firmware you currently have installed. - PigletLuminary
mdgm wrote: No CoW was on regardless of the snapshot setting
So… if CoW is the cause of the missing space after the defrag, wouldn't that make defragmenting a rather risky option?If you are going to copy the files to a USB disk, you may as well do a factory default.
I can't do a full backup because I only have 2TB external disk capacity and my NAS is bigger than that.
Would deleting files reclaim the lost space? If so, I could do it in batches (copy 2TB, delete the originals, copy back the 2TB and repeat that until all files have been handled). - mdgm-ntgrNETGEAR Employee RetiredCan you send me a fresh set of logs?
Try what you suggested. - PigletLuminaryLogs sent. I have started a 2TB batch copy to an external disk. That'll take about 8h, and then at least another 8h to copy it back. Yey...
- PigletLuminaryI have now copied/re-copied about 3TB of data (selected from the most recent torrents). At the start of the process I had 45GB free, and at the end it was at 346GB free so it seems I have recovered the space that went missing after the defrag. :thumbsup:
The question remains why this happened in the first place. Can't you do a defrag when you have CoW enabled? - mdgm-ntgrNETGEAR Employee RetiredYou can do a defrag when you have CoW enabled.
When you are using snapshots a defrag will break the pointers and thus lead to more space being used. - PigletLuminary
mdgm wrote: You can do a defrag when you have CoW enabled.
…so when can I not do a defrag? Like what happened in my case.
Is that a bug? I'm reluctant do do another defrag now because I don't want to end up 300GB short again. This took the better part of a week to fix.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!