NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

bpina's avatar
bpina
Aspirant
Dec 30, 2020

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 "/dev/md0" is out of space.

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.

The main purpose of the ReadyNAS is to store backups.

My questions are:

  1. I cannot access the ReadyNAS via WEBGUI because the "/dev/md0" filesystem is full?
  2. There is a way to clean "gencache.tdb" file? In case affirmative, how can I do it?
  3. Removing "gencache.tdb" file will cause any impact on ReadyNAS?

Regards,

 

Bruno Pina.

18 Replies

Replies have been turned off for this discussion
  • Hi bpina 

     

    It is quite possible the full root is the cause of the GUI issues, yes. I am not sure what the gencache.tdb is used for, but looking at samba.org is seems like a generic cache. Things is /var/cache is typically just that - a cache for something.

     

    Likelihood is that you can remove that file and reboot the NAS and it will probably be fine as any cache should re-build when necesary. However, to be safe you can simply move the cache file to the data volume to preserve it, in case you need to restore it.

     

    Move it to /data/.... (ensure the data volume is indeed mounted, which it should be) and then reboot NAS? Might be worth a try.

  • StephenB's avatar
    StephenB
    Guru - 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.

    • Sandshark's avatar
      Sandshark
      Sensei - 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.

    • bpina's avatar
      bpina
      Aspirant

      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.

       

NETGEAR Academy

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

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More