LDAP DB is huge (80Gig)

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

LDAP DB is huge (80Gig)

Postby Mechanix » Tue Sep 27, 2016 6:56 am

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: 1056
Joined: Mon Apr 18, 2016 8:18 pm
Location: Earth
ZCS/ZD Version: ZCS FLOSS - 8.7.11 Mutli servers

Re: LDAP DB is huge (80Gig)

Postby DualBoot » Tue Sep 27, 2016 7:13 am

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)

Postby Mechanix » Tue Sep 27, 2016 7:34 am

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: 26152
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: LDAP DB is huge (80Gig)

Postby phoenix » Tue Sep 27, 2016 8:19 am

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&hilit=data.mdb+80gb#p155935
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
brick__
Posts: 11
Joined: Tue May 17, 2016 3:28 pm

Re: LDAP DB is huge (80Gig)

Postby brick__ » Tue Sep 27, 2016 8:23 am

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)

Postby Mechanix » Tue Sep 27, 2016 8:53 am

Thank you all for your replies.

Return to “Administrators”

Who is online

Users browsing this forum: JDunphy and 29 guests