NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
bpina
Dec 30, 2020Aspirant
ReadyNAS RR4312 - /dev/md0 partition full
Hi guys, I cannot have access to a ReadyNAS WEBGUI. After entering the user's credentials I get "ReadyNAS Admin Page is offline". But I'm able to access it via ssh session and I noticed that "/d...
StephenB
Dec 30, 2020Guru - Experienced User
bpina wrote:
Going a little bit deeper I found that "gencache.tdb" file in "/var/cache/samba" directory is the one occuping most of the disk space.
How big is it? On my own NAS it is about 650 KiB.
root@NAS:/var/cache/samba# ls -als total 652 0 drwxr-xr-x 1 root root 40 Aug 21 2012 . 0 drwxr-xr-x 1 root root 104 Feb 4 2020 .. 652 -rw-r--r-- 1 root root 667648 Dec 30 15:44 gencache.tdb 0 drwxr-xr-x 1 root root 0 Nov 9 2016 printing root@NAS:/var/cache/samba#
You should be able to delete the file, but you might need to stop Samba first.
- SandsharkDec 30, 2020Sensei - Experienced User
Just removing the file is a very bad idea, if it will even let you. The following should work:
systemctl stop samba net cache flush systemctl start samba
However, that won't prevent it from filling up again, and I'm not familiar enough with it to know what kinds of things can fill it, though I do read that it apparently has no automatic trimming capability.
Is this in a Windows Domain environment, possibly with a lot of users? One of my guesses is that could cause an issue.
- mdgmDec 31, 2020Virtuoso
If it is a Windows Domain environment with a lot of users you may find ReadyNAS OS 6: "Do not cache ADS accounts locally" option useful
- rn_enthusiastDec 31, 2020Virtuoso
This is a good point mdgm has. This might be what is causing the cache to be so large.
- bpinaDec 31, 2020Aspirant
Sandshark wrote:Just removing the file is a very bad idea, if it will even let you. The following should work:
systemctl stop samba net cache flush systemctl start samba
However, that won't prevent it from filling up again, and I'm not familiar enough with it to know what kinds of things can fill it, though I do read that it apparently has no automatic trimming capability.
Is this in a Windows Domain environment, possibly with a lot of users? One of my guesses is that could cause an issue.
Samba was "dead". The "systemctl status samba" returned:
Failed to dump process list, ignoring: Unit samba.service not found.
● samba.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)The "net cache flush" is running for almost 40 minutes and nothing changed (no space reduction)
Any addtional suggestions?
- StephenBDec 31, 2020Guru - Experienced User
bpina wrote:
Samba was "dead". The "systemctl status samba" returned:
Failed to dump process list, ignoring: Unit samba.service not found.
● samba.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)That's because there is no service called samba.
Try
systemctl stop smb
But I think you will also have to delete the tdb file (or move it to the data volume) after you flush the cache.
- bpinaDec 31, 2020Aspirant
Hi,
Its size is around 1,6 GB.
At this point, I don't want to delete the file. I'd prefer another workaround like clean the file ou reduce its size.
Related Content
NETGEAR Academy

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