NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
mads0100
Jan 18, 2015Guide
Gracefully restart RN104?
Hey guys,
Are we allowed to post instructions for gracefully shutting down your RN via SSH on here? From what I can tell my Frontview GUI has stopped responding (6.2.2) and I just want to gracefully shut down so it'll re-start. The buttons on the front and the LCD screen aren't working. I can see the NAS in RAIDar and I can SSH to it/use network shares without any issues.
As far as I can tell it is not related to uninstalling an application. Any advice would be helpful.
Are we allowed to post instructions for gracefully shutting down your RN via SSH on here? From what I can tell my Frontview GUI has stopped responding (6.2.2) and I just want to gracefully shut down so it'll re-start. The buttons on the front and the LCD screen aren't working. I can see the NAS in RAIDar and I can SSH to it/use network shares without any issues.
As far as I can tell it is not related to uninstalling an application. Any advice would be helpful.
15 Replies
- Try "rnutil rn_shutdown"
- mads0100GuideHey StephenB,
Thanks for the answer. It totally solved the problem and after shutting down it gracefully came back up.
I have a question after talking to L2 support. I wasn't home and couldn't do what she asked. She said that the first step would be to unplug my RN104 from power and just do a hard reboot followed by an OS re-install if that didn't clear it up. Isn't doing a hard reboot a 'bad' thing for a RAID? She seemed to casually throw it out like it wasn't a big deal. Also, I mentioned that I had SSH access and she said that only L3 support could give me that command and that the first step would be the unplug process.
What do you guys think?
Chris - mdgm-ntgrNETGEAR Employee RetiredBefore you try rebooting or unplugging the power please let me know the output of these commands
# systemctl status apache2
# systemctl status readynasd
# journalctl -a | grep apache2 | tail -n 20
# journalctl -a | grep readynasd | tail -n 20
# btrfs fi show
# btrfs fi df /data
# df -h
Doing a hard reboot is a bad thing if you have an alternative. - mads0100GuideArgh, sorry Mdgm. I just did it before reading this message :/. Can I get you any data after the reboot?
Chris - mdgm-ntgrNETGEAR Employee RetiredSure. If you still have the problem that would work.
Or if you don't perhaps try sending your logs (see the link in my sig) - mads0100GuideAttached is the data you requested. It happened again a few days later... same issue as far as I can tell.
apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled)
Active: active (running) since Sun, 18 Jan 2015 19:59:30 -0700; 6 days ago
Process: 1695 ExecReload=/bin/kill -USR1 $MAINPID (code=exited, status=0/SUCCESS)
Process: 1689 ExecReload=/usr/sbin/apache2 $OPTIONS -t (code=exited, status=0/SUCCESS)
Main PID: 1485 (apache2)
CGroup: name=systemd:/system/apache2.service
├ 1485 /usr/sbin/apache2 -k start
├ 1758 apache_log
├ 1762 apache_log
├ 1902 /usr/sbin/apache2 -k start
├ 1903 /usr/sbin/apache2 -k start
├ 1904 /usr/sbin/apache2 -k start
├ 1905 /usr/sbin/apache2 -k start
├ 1906 /usr/sbin/apache2 -k start
├ 1928 /usr/sbin/apache2 -k start
├ 2201 /usr/sbin/apache2 -k start
├ 2249 /usr/sbin/apache2 -k start
├ 3002 /usr/sbin/apache2 -k start
├ 3124 /usr/sbin/apache2 -k start
└ 14246 /usr/sbin/apache2 -k start
Jan 24 21:06:27 READYNAS apache2[14246]: [error] [client 192.168.1.126] Prem.../
Jan 24 21:06:27 READYNAS apache2[1905]: [error] [client 192.168.1.126] Conne.../
Jan 24 21:06:27 READYNAS apache2[1905]: [error] [client 192.168.1.126] Prema.../
Jan 24 21:06:41 READYNAS apache_access[1762]: Suppressed 4 duplicate messages
Jan 24 21:06:41 READYNAS apache_access[1762]: 192.168.1.126 "POST /dbbroker ...1
Jan 24 21:06:41 READYNAS apache2[1903]: [error] [client 192.168.1.126] Conne.../
Jan 24 21:06:41 READYNAS apache2[1903]: [error] [client 192.168.1.126] Prema.../
Jan 24 21:06:41 READYNAS apache_access[1762]: 192.168.1.126 "POST /dbbroker ...0
Jan 24 21:06:46 READYNAS apache2[3124]: [error] [client 192.168.1.126] Conne.../
Jan 24 21:06:46 READYNAS apache2[3124]: [error] [client 192.168.1.126] Prema.../
readynasd.service - ReadyNAS System Daemon
Loaded: loaded (/lib/systemd/system/readynasd.service; enabled)
Active: inactive (dead) since Wed, 21 Jan 2015 12:11:39 -0700; 3 days ago
Main PID: 1489 (code=exited, status=0/SUCCESS)
Status: "Start Main process"
CGroup: name=systemd:/system/readynasd.service
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
readynasd.service - ReadyNAS System Daemon
Loaded: loaded (/lib/systemd/system/readynasd.service; enabled)
Active: inactive (dead) since Wed, 21 Jan 2015 12:11:39 -0700; 3 days ago
Main PID: 1489 (code=exited, status=0/SUCCESS)
Status: "Start Main process"
CGroup: name=systemd:/system/readynasd.service
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
root@READYNAS:~# journalctl -a | grep apache2 | tail -n 20
Jan 24 21:06:00 READYNAS apache2[1903]: [error] [client 192.168.1.126] Connect rddclient failed, referer: http://192.168.1.133/admin/
Jan 24 21:06:00 READYNAS apache2[1903]: [error] [client 192.168.1.126] Premature end of script headers: dbbroker.cgi, referer: http://192.168.1.133/admin/
Jan 24 21:06:00 READYNAS apache2[3124]: [error] [client 192.168.1.126] Connect rddclient failed, referer: http://192.168.1.133/admin/
Jan 24 21:06:00 READYNAS apache2[3124]: [error] [client 192.168.1.126] Premature end of script headers: dbbroker.cgi, referer: http://192.168.1.133/admin/
Jan 24 21:06:05 READYNAS apache2[3002]: [error] [client 192.168.1.126] Connect rddclient failed, referer: http://192.168.1.133/admin/
Jan 24 21:06:05 READYNAS apache2[3002]: [error] [client 192.168.1.126] Premature end of script headers: dbbroker.cgi, referer: http://192.168.1.133/admin/
Jan 24 21:06:09 READYNAS apache2[2201]: [error] [client 192.168.1.126] Connect rddclient failed, referer: http://192.168.1.133/admin/
Jan 24 21:06:09 READYNAS apache2[2201]: [error] [client 192.168.1.126] Premature end of script headers: dbbroker.cgi, referer: http://192.168.1.133/admin/
Jan 24 21:06:10 READYNAS apache2[1904]: [error] [client 192.168.1.126] Connect rddclient failed, referer: http://192.168.1.133/admin/
Jan 24 21:06:10 READYNAS apache2[1904]: [error] [client 192.168.1.126] Premature end of script headers: dbbroker.cgi, referer: http://192.168.1.133/admin/
Jan 24 21:06:15 READYNAS apache2[1928]: [error] [client 192.168.1.126] Connect rddclient failed, referer: http://192.168.1.133/admin/
Jan 24 21:06:15 READYNAS apache2[1928]: [error] [client 192.168.1.126] Premature end of script headers: dbbroker.cgi, referer: http://192.168.1.133/admin/
Jan 24 21:06:27 READYNAS apache2[14246]: [error] [client 192.168.1.126] Connect rddclient failed, referer: http://192.168.1.133/admin/
Jan 24 21:06:27 READYNAS apache2[14246]: [error] [client 192.168.1.126] Premature end of script headers: dbbroker.cgi, referer: http://192.168.1.133/admin/
Jan 24 21:06:27 READYNAS apache2[1905]: [error] [client 192.168.1.126] Connect rddclient failed, referer: http://192.168.1.133/admin/
Jan 24 21:06:27 READYNAS apache2[1905]: [error] [client 192.168.1.126] Premature end of script headers: dbbroker.cgi, referer: http://192.168.1.133/admin/
Jan 24 21:06:41 READYNAS apache2[1903]: [error] [client 192.168.1.126] Connect rddclient failed, referer: http://192.168.1.133/admin/
Jan 24 21:06:41 READYNAS apache2[1903]: [error] [client 192.168.1.126] Premature end of script headers: dbbroker.cgi, referer: http://192.168.1.133/admin/
Jan 24 21:06:46 READYNAS apache2[3124]: [error] [client 192.168.1.126] Connect rddclient failed, referer: http://192.168.1.133/admin/
Jan 24 21:06:46 READYNAS apache2[3124]: [error] [client 192.168.1.126] Premature end of script headers: dbbroker.cgi, referer: http://192.168.1.133/admin/
Nothing for the 4th command
root@READYNAS:~# journalctl -a | grep readynasd | tail -n 20
root@READYNAS:~# btrfs fi show
Label: '0e370a82:data' uuid: a638e4b0-2edb-4b09-9097-c65871d5651a
Total devices 1 FS bytes used 3.02TiB
devid 1 size 8.17TiB used 3.03TiB path /dev/md127
Btrfs v3.17.3
root@READYNAS:~# btrfs fi df /data
Data, single: total=3.02TiB, used=3.01TiB
System, DUP: total=8.00MiB, used=352.00KiB
System, single: total=4.00MiB, used=0.00B
Metadata, DUP: total=6.00GiB, used=4.33GiB
Metadata, single: total=8.00MiB, used=0.00B
Filesystem Size Used Avail Use% Mounted on
rootfs 3.8G 387M 3.2G 11% /
tmpfs 10M 4.0K 10M 1% /dev
/dev/md0 3.8G 387M 3.2G 11% /
tmpfs 248M 0 248M 0% /dev/shm
tmpfs 248M 2.7M 245M 2% /run
tmpfs 248M 0 248M 0% /sys/fs/cgroup
tmpfs 248M 0 248M 0% /media
/dev/md127 8.2T 3.1T 5.2T 38% /data
/dev/md127 8.2T 3.1T 5.2T 38% /apps
/dev/md127 8.2T 3.1T 5.2T 38% /home
/dev/md127 8.2T 3.1T 5.2T 38% /run/nfs4/home
tmpfs 4.0K 0 4.0K 0% /data/Music/snapshot
/dev/md127 8.2T 3.1T 5.2T 38% /data/Music/snapshot/c_2015_01_10__00_00_33
root@READYNAS:~# - mdgm-ntgrNETGEAR Employee RetiredLooks like you do have a lot of fragmentation.
What happens when you try to start readynasd?
# systemctl start readynasd
Do any of the fixes mentioned in 6.2.3 beta http://www.readynas.com/forum/viewtopic.php?f=154&t=78866 look relevant? - mads0100GuideI missed this message before rebooting it. The Daemon is running. After your comment, I went through and turned on some of the maintenance functions such as defragmentation. It took 2.5 hours last night. How can I tell how much fragmentation it has to make sure it's working?
- mdgm-ntgrNETGEAR Employee Retired
# btrfs fi df /data
You should see for Metadata, DUP that less is used than before. - mads0100GuideThanks Mdgm! So, the value is actually higher... any ideas?
Data, single: total=3.05TiB, used=3.04TiB
System, DUP: total=8.00MiB, used=384.00KiB
System, single: total=4.00MiB, used=0.00B
Metadata, DUP: total=6.00GiB, used=5.01GiB
Metadata, single: total=8.00MiB, used=0.00B
Related Content
NETGEAR Academy

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