ldap data.mdb after upgrade from 8.0.0 -> 8.0.1 has a size of 85GB

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
minhhoang
Posts: 28
Joined: Sat Sep 13, 2014 3:14 am

ldap data.mdb after upgrade from 8.0.0 -> 8.0.1 has a size of 85GB

Postby minhhoang » Wed Mar 19, 2014 10:52 pm

After doing backup mdb file with mdb_copy, I see the result as the following:

[QUOTE][zimbra@mail ~]$ mdb_copy /opt/zimbra/data/ldap/mdb/db /opt/zimbra/backup/ldap/mdb/db

[zimbra@mail ~]$ cd /opt/zimbra/backup/ldap/mdb/db/

[zimbra@mail ~]$ ls -lah /opt/zimbra/backup/ldap/mdb/db/

total 2.7M

drwxr-x--- 2 zimbra zimbra 4.0K Mar 20 10:45 .

drwxr-x--- 3 zimbra zimbra 4.0K Mar 20 10:43 ..

-rw-r----- 1 zimbra zimbra 2.7M Mar 20 10:45 data.mdb[/QUOTE]
Please give me your suggestion.
Many thanks,

Minh


User avatar
quanah
Zimbra Alumni
Zimbra Alumni
Posts: 1666
Joined: Fri Sep 12, 2014 10:33 pm
Contact:

ldap data.mdb after upgrade from 8.0.0 -> 8.0.1 has a size of 85GB

Postby quanah » Thu Mar 20, 2014 10:30 am

It looks like your DB has grown out of proportion to its actual usage. This could happen on earlier ZCS releases. You can fix this by (as zimbra):
1) zmcontrol stop

2) /opt/zimbra/libexec/zmslapcat /tmp

3) cd /opt/zimbra/data/ldap

4) mv mdb mdb.backup

5) mkdir -p mdb/db

6) /opt/zimbra/libexec/zmslapadd /tmp/ldap.bak

7) cd mdb/db

8) du -c -h data.mdb (to see its actual size)

9) zmcontrol start

10) Verify everything comes up, and then you can remove the mdb.backup directory
--Quanah
--
Quanah Gibson-Mount
Product Architect, Symas http://www.symas.com/
OpenLDAP Core team http://www.openldap.org/project/
minhhoang
Posts: 28
Joined: Sat Sep 13, 2014 3:14 am

ldap data.mdb after upgrade from 8.0.0 -> 8.0.1 has a size of 85GB

Postby minhhoang » Fri Mar 21, 2014 12:47 am

Thank Quanah very much,
Now my system back to normal. Before see you post, I already did:

[QUOTE]ldap stop

cd /opt/zimbra/data/ldap/mdb/db/

/opt/zimbra/libexec/zmslapcat /opt/zimbra/data/ldap/mdb/db

mv data.mdb data.mdb.old

/opt/zimbra/openldap/sbin/slapadd -q -b "" -F /opt/zimbra/data/ldap/config -l /opt/zimbra/data/ldap/mdb/db/ldap.bak

ldap start[/QUOTE]

After that, the ls -la data.mdb show 80G, and the du -c -h show only 2.5Mb.

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 20 guests