LDAP DB is huge (80Gig)

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
Mechanix
Posts: 12
Joined: Mon Sep 19, 2016 7:50 am

LDAP DB is huge (80Gig)

Post by Mechanix »

Hi,

today I´ve noticed that the ldap DB is about 80Gig but I can´t figure out how it could grow like that because I have only about 20 Mailboxes. This is a huge problem when rsync-ing the Zimbra LXC container as it takes about 30 minutes tu copy the db file.
Any hints are highly appreciated. Thank you.

ZCS 8.7

Code: Select all

/opt/zimbra/data/ldap/mdb/db# du -c -h data.mdb
81G     data.mdb
81G     total
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: LDAP DB is huge (80Gig)

Post by DualBoot »

This is just an allocation, this is not the real size.
The Guy - DualBoot

PostMaster - WikiMaster - SysAdmin
"Free Your Mind. Think Open Source"
april.org
Zetalliance Member - zetalliance.org
Mechanix
Posts: 12
Joined: Mon Sep 19, 2016 7:50 am

Re: LDAP DB is huge (80Gig)

Post by Mechanix »

Thank you for your reply. But shouldn´t

Code: Select all

du -c -h
give me the actual size?

Code: Select all

/data/ldap/mdb/db$ ls -lskh
total 81G
 81G -rw------- 1 zimbra zimbra  80G Sep 27 09:30 data.mdb
8.0K -rw------- 1 zimbra zimbra 8.0K Sep 27 09:34 lock.mdb
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: LDAP DB is huge (80Gig)

Post by phoenix »

This is an old 'problem' that you could have answered yourself by searching and, as already mentioned, it's an allocated space not the used space: viewtopic.php?f=15&t=8514&p=155935&hili ... gb#p155935
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
brick__
Posts: 11
Joined: Tue May 17, 2016 3:28 pm

Re: LDAP DB is huge (80Gig)

Post by brick__ »

Hello Mechanix,

Here's a link to zimbra documentation.
You'll find a wikipedia link in there to what a sparse file is and how to actually detect it.
Mechanix
Posts: 12
Joined: Mon Sep 19, 2016 7:50 am

Re: LDAP DB is huge (80Gig)

Post by Mechanix »

Thank you all for your replies.
Post Reply