× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Re: No space error on RN312

mountaindude
Tutor

No space error on RN312

Having issues on my ReadyNAS 312, running latest (6.2.2) OS.
Two Seagate 3TB drives installed.

The device is serving files just fine over SMB, but MySQL has stopped working.
It reports a "No space" error when trying to start it.. which is a bit weird.

Also, df -ih reports no inodes available on rootfs... Is that normal?
Any ideas on what's going on?



root@RN312:~# btrfs fi show
Label: '0ed5e6ae:root' uuid: 7877dec5-ea1a-477a-9a8c-a3b5fca0e180
Total devices 1 FS bytes used 2.37GiB
devid 1 size 4.00GiB used 4.00GiB path /dev/md0

Label: '0ed5e6ae:data' uuid: 8dcbcd91-cbed-4fd2-a59c-dc900923f1f9
Total devices 1 FS bytes used 2.04TiB
devid 1 size 2.72TiB used 2.31TiB path /dev/md127

Btrfs v3.17.3




root@RN312:~# df -ih
Filesystem Inodes IUsed IFree IUse% Mounted on
rootfs 0 0 0 - /
tmpfs 493K 378 493K 1% /dev
/dev/md0 0 0 0 - /
tmpfs 493K 1 493K 1% /dev/shm
tmpfs 493K 425 493K 1% /run
tmpfs 493K 4 493K 1% /sys/fs/cgroup
tmpfs 493K 1 493K 1% /media
/dev/md127 0 0 0 - /data
/dev/md127 0 0 0 - /home
/dev/md127 0 0 0 - /apps
/dev/md127 0 0 0 - /run/nfs4/home



root@RN312:~# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 4.0G 2.5G 990M 72% /
tmpfs 10M 4.0K 10M 1% /dev
/dev/md0 4.0G 2.5G 990M 72% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 2.0G 4.9M 2.0G 1% /run
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs 2.0G 0 2.0G 0% /media
/dev/md127 2.8T 2.1T 590G 79% /data
/dev/md127 2.8T 2.1T 590G 79% /home
/dev/md127 2.8T 2.1T 590G 79% /apps
/dev/md127 2.8T 2.1T 590G 79% /run/nfs4/home




root@RN312:~# cat /proc/mounts
rootfs / rootfs rw 0 0
tmpfs /dev tmpfs rw,noatime,nodiratime,size=10240k,mode=755 0 0
devpts /dev/pts devpts rw,noatime,nodiratime,mode=600 0 0
/dev/md0 / btrfs rw,noatime,nodiratime,nospace_cache 0 0
proc /proc proc rw,nosuid,nodev,noexec,noatime,nodiratime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,noatime,nodiratime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
tmpfs /run tmpfs rw,nosuid,nodev,mode=755 0 0
tmpfs /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,mode=755 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,noatime,nodiratime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd 0 0
cgroup /sys/fs/cgroup/cpu cgroup rw,nosuid,nodev,noexec,noatime,nodiratime,cpu 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,noatime,nodiratime,blkio 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,noatime,nodiratime,fd=24,pgrp=1,timeout=300,minproto=5,maxproto=5,direct 0 0
tmpfs /media tmpfs rw,nosuid,nodev,noexec,noatime,nodiratime,mode=755 0 0
debugfs /sys/kernel/debug debugfs rw,noatime,nodiratime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,noatime,nodiratime 0 0
configfs /sys/kernel/config configfs rw,noatime,nodiratime 0 0
/dev/md127 /data btrfs rw,noatime,nodiratime,nospace_cache 0 0
/dev/md127 /home btrfs rw,noatime,nodiratime,nospace_cache 0 0
/dev/md127 /apps btrfs rw,noatime,nodiratime,nospace_cache 0 0
/dev/md127 /run/nfs4/home btrfs rw,noatime,nodiratime,nospace_cache 0 0
Message 1 of 9
mdgm-ntgr
NETGEAR Employee Retired

Re: No space error on RN312

The rootfs uses BTRFS on the 314, so that inode check is not relevant.

What is the output of

# btrfs fi df /
# btrfs fi df /data
Message 2 of 9
mountaindude
Tutor

Re: No space error on RN312


root@RN312:/# btrfs fi df /
Data, single: total=3.32GiB, used=2.35GiB
System, DUP: total=8.00MiB, used=4.00KiB
System, single: total=4.00MiB, used=0.00B
Metadata, DUP: total=332.69MiB, used=48.00MiB
Metadata, single: total=8.00MiB, used=0.00B
root@RN312:/#




root@RN312:/# btrfs fi df /data
Data, single: total=2.20TiB, used=2.04TiB
System, DUP: total=8.00MiB, used=260.00KiB
System, single: total=4.00MiB, used=0.00B
Metadata, DUP: total=56.00GiB, used=4.29GiB
Metadata, single: total=8.00MiB, used=0.00B
root@RN312:/#
Message 3 of 9
mdgm-ntgr
NETGEAR Employee Retired

Re: No space error on RN312

The error is odd as there is plenty of free space. Do you get the same error starting other services? Do you still get the error after a reboot?
Message 4 of 9
mountaindude
Tutor

Re: No space error on RN312

Problem persists after reboot, and it's only MySQL causing it.
Yeah it's a bit weird...

I've started the process of moving all data to a couple of large USB drives, will then reinstall the NAS from scratch to get a clean setup.
Probably overkill, but it's usually a good idea to do that kind of cleaning every few years.

On that note: What does the "factory reset" in the web UI do, exactly?
I guess it just clears all config parameters? Or does it trigger a proper re-install of the OS (which is really what I'd like!)?

Edit: Found this: http://kb.netgear.com/app/answers/detail/a_id/20898
Which is at least a starter for the OS reinstall procedure
Message 5 of 9
mdgm-ntgr
NETGEAR Employee Retired

Re: No space error on RN312

A factory reset will trigger a wipe of your disks and a clean install of the OS. All data, settings, everything is wiped. It will use the firmware currently on the internal flash (in your case this would be 6.2.2). When you update the firmware, you are prompted to reboot the NAS and the firmware is updated on the internal flash and then on the disks.

An OS Re-install installs the OS over the top of itself and resets the admin password and some network settings but leaves your data intact. It doesn't sound like your issue is one that an OS Re-install would be likely to address.

Could you please:
1. Backup your data
2. Once you've verified you've backed it all up try starting MySQL again, then download your logs and send them to me (see the Sending Logs link in my sig).
Message 6 of 9
mountaindude
Tutor

Re: No space error on RN312

Ok I understand the distinction between firmware and OS, I still would like to start over with a fresh OS though, as I have been messing around a bit more than probably good with the OS. Nothing serious, but installing a few different software packages that I later realised I don't need, etc.
These eat up space, and even though they can be uninstalled, it's time for a house cleaning, I think.
So given that I have 6.2.2 installed already, what steps are needed to return the NAS to factory state?
I.e. if I would like to wipe current OS install and replace it with a fresh one - not just installing the OS again on top of the existing one (sounds like that could leave some issues for the new OS, if unlucky).
Or is the OS re-install wiping the old OS entirely first, before installing?

I have both online/remote backup of all data, as well as local USB drives. Should be safe.

Will try to start mysql again and send logs before doing the OS re-install, though.
Message 7 of 9
mdgm-ntgr
NETGEAR Employee Retired

Re: No space error on RN312

Factory Reset is what you want. That will wipe the disks and return the NAS to how it was from the factory except using 6.2.2 (the firmware currently on the internal flash) rather than the one that was on the unit when it left the factory. Some improvements can only be obtained by doing a factory reset on new firmware. These benefits are not essential, but can be nice to have.

An OS re-install will try to fix things leaving the data intact and only resetting settings that may lock you out of access to the NAS if configured incorrectly.

Of course if you want you can try the OS Re-install and if it doesn't fix your issue then do the factory reset.

Please note a factory reset will wipe all your data.
Message 8 of 9
mountaindude
Tutor

Re: No space error on RN312

Got it - thanks for a crystal clear explanation.

rsyncing the data over to external USB drives takes a couple of days, so I'll let that finish before I proceed.

Many thanks for the help, and all the best for the new year!

/Göran
Message 9 of 9
Top Contributors
Discussion stats
  • 8 replies
  • 2224 views
  • 0 kudos
  • 2 in conversation
Announcements