Is it safe to delete the .zmcache folder?

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
mamptech
Posts: 2
Joined: Tue Jun 22, 2021 4:45 pm

Is it safe to delete the .zmcache folder?

Post by mamptech »

I was checking with the boss as to why the zimbra folder weighs about 167GB if the disk is 80GB, and I was poking around in the options to get it. And in that I discovered that there is a folder called .zmcache, which is hidden. When I went in there, I found a file called data.mdb, which weighs the same as in the original location, that is, 81GB each; and

Code: Select all

 81+81=162GB
.... Two doubts: how can you have 167GB on an 80GB hard disk, and two, how safe is it to delete the contents of that folder? Another fact to add: the files in that folder were created according to September 29, 2019.
raghuramn89@gmail.com
Posts: 11
Joined: Thu Jan 29, 2015 2:40 pm
Location: Hyderabad
Contact:

Re: Is it safe to delete the .zmcache folder?

Post by raghuramn89@gmail.com »

Hi,

Can you share complete path and your ZCS version (with patch).
mamptech
Posts: 2
Joined: Tue Jun 22, 2021 4:45 pm

Re: Is it safe to delete the .zmcache folder?

Post by mamptech »

I was not entirely clear on that request, but here is more or less how it shows me the zimbra folder:

Code: Select all

ls -lh /opt/zimbra/
total 136K
drwxr-xr-x    2 zimbra zimbra 4,0K oct 26  2017 backup
drwxr-xr-x    2 root   root   4,0K oct 26  2017 bin
drwxr-xr-x    9 root   root   4,0K oct 26  2017 common
drwxr-xr-x   12 zimbra zimbra 4,0K jun 30 10:54 conf
-rw-------    1 root   root   2,8K oct 26  2017 config.5274
drwxr-xr-x    2 root   root   4,0K oct 26  2017 contrib
drwxr-xr-x   16 zimbra zimbra 4,0K oct 26  2017 data
drwxrwxr-x    3 zimbra zimbra 4,0K oct 26  2017 db
drwxr-xr-x    2 zimbra zimbra 4,0K oct 26  2017 docs
drwxr-xr-x    3 zimbra zimbra 4,0K oct 26  2017 extensions-extra
drwxr-xr-x    2 zimbra zimbra 4,0K oct 26  2017 fbqueue
drwxr-xr-x    3 zimbra zimbra 4,0K oct 26  2017 index
lrwxrwxrwx    1 root   root     46 oct 26  2017 jetty -> /opt/zimbra/jetty-distribution-9.3.5.v20151012
drwxr-xr-x   14 root   root   4,0K oct 26  2017 jetty-distribution-9.3.5.v20151012
drwxrwxr-x    5 root   root   4,0K oct 26  2017 lib
drwxr-xr-x    4 root   root   4,0K oct 26  2017 libexec
drwxrwxr-x    2 zimbra zimbra  12K jun 30 11:04 log
drwxr-xr-x    3 zimbra zimbra 4,0K oct 26  2017 logger
lrwxrwxrwx    1 root   root     46 oct 26  2017 mailboxd -> /opt/zimbra/jetty-distribution-9.3.5.v20151012
drwxr-xr-x    3 zimbra zimbra 4,0K jun 30 00:30 redolog
drwxr-xr-x    7 zimbra zimbra 4,0K oct 26  2017 ssl
drwxr-xr-x    4 zimbra zimbra 4,0K nov 17  2017 store
drwxrwxr-x    2 zimbra zimbra 4,0K oct 26  2017 zimlets
drwxr-xr-x   21 zimbra zimbra 4,0K oct 26  2017 zimlets-deployed
drwxr-xr-x 1221 zimbra zimbra  36K jun 30 03:07 zmstat
And regarding the version, I don't know how it is localized. Normally I would do a zimbra -v, but it tells me:

Code: Select all

-bash: zimbra: No such file or directory
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Is it safe to delete the .zmcache folder?

Post by phoenix »

mamptech wrote:When I went in there, I found a file called data.mdb, which weighs the same as in the original location, that is, 81GB each; and

Code: Select all

 81+81=162GB
.... Two doubts: how can you have 167GB on an 80GB hard disk,
The very simple answer to that is that they are sparse allocated files used by openldap. This subject has been covered many times in the forums and, IIRC, in a wiki article and various release notes.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Klug
Ambassador
Ambassador
Posts: 2747
Joined: Mon Dec 16, 2013 11:35 am
Location: France - Drôme
ZCS/ZD Version: All of them
Contact:

Re: Is it safe to delete the .zmcache folder?

Post by Klug »

mamptech wrote:Normally I would do a zimbra -v
No as there's no zimbra binary nor script.

Check the documentation (and forum and wiki), the correct command is, as zimbra user:

Code: Select all

zmcontrol -v
Post Reply