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
- vandermerweMasterDoes the GUI give a suggestion as to how much longer it has left.
I would leave it alone, if you must shut down I'd do it using the GUI. The OS should then prevent a shutdown that would cause a problem. Why do you want to do it using ssh? - PigletLuminaryAs far as I know, there is no way to see how much progress a defrag has made. Not even via the shell.
The GUI is not responsive because the defrag is using up all the cpu. It loads partially but never completes so I can't do the shutdown from the GUI. - vandermerweMasterDo you have a backup?
What firmware are you on? - PigletLuminaryNo backup. I'm on OS 6.2.
My guess is that it's safe to do a reboot while the defrag is in progress. Would be a very dangerous feature if it couldn't handle that… But it would be useful to know if there's a preferred way to do it. - vandermerweMasterI recall your recent post and this long defrag is probably related to the amount of fragmentation on your system as well as the fact that you have a 104.
Personally, I would wait. - PigletLuminaryYes I agree that the defrag is taking a long time because of the amount of fragmentation.
My concern is that the process is eating up space and I'm currently below 10GB free. If I let it run it will probably run out of space within 24h, and that can't be good... - vandermerweMasterOh I didn't realise you were that close to capacity. There's another reason the defrag is taking so long.
I think you are going to have to take a chance and interrupt it. Can you not even see the volume control icon on the GUI to cancel the defrag?
2nd best I think would be to try to power down using the chassis power button. (2 or 3 presses according to hardware manual) - PigletLuminaryI managed to get the GUI to load far enough so I could use the reboot option. But unfortunately it doesn't seem to work. It's been stuck saying "Rebooting now…" for an hour now.
I'm still connected via ssh, and the free space is now down to 5GB. I think I need to try something harsher, like "reboot -f" - mdgm-ntgrNETGEAR Employee Retired
#killall awk btrfs - PigletLuminaryThanks for the suggestion, but "killall awk btrfs" didn't do it. Still not rebooting and the top process is still flush-btrfs-1 with 99% cpu.
Edit: I spoke too soon. After 15 mins or so it suddenly rebooted. :) It didn't let me connect via afp just now, but I'll let it sit a while and see if it returns to normal.
Edit2: After chugging with cnid_dbd for about 10 minutes it now seems to have returned to normal. Will start moving stuff off the NAS to make room for further defragging.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!