Size of store directory increase after import use zmmailbox

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
anhtung19x9
Posts: 2
Joined: Sun Feb 23, 2020 2:13 pm

Size of store directory increase after import use zmmailbox

Post by anhtung19x9 »

Hello, I just seem a problem when migration Zimbra Open Source 8.8.10 to Zimbra NE 8.8.15. I used zmmailbox to export mailbox on the old mail server and import on the new server. Here is command:

for email in `cat /opt/zimbra/backup/new.txt`; do zmmailbox -z -m $email -t 0 getRestURL -u "https://127.0.0.1" '/?fmt=tgz' > $email.tgz |& tee -a export.log ; echo $email |& tee -a export.log ; done

for i in `cat /opt/zimbra/backup/user.txt`; do zmmailbox -z -m $i postRestURL -u "https://127.0.0.1" "/?fmt=tgz&resolve=skip" $i.tgz |& tee -a import.log ; echo "$i -- finished" |& tee -a import.log ; done

But, when I used zmmailbox to import mailbox on the new mail server, /opt/zimbra/store has size very high than /opt/zimbra/store of the old mail server. Here is more information:

The old mail server:

Code: Select all

 [root@mail zimbra]# du -h --max-depth=1 |sort -rh
937G    .
693G    ./store
167G    ./backup
52G     ./data
8.2G    ./db
6.9G    ./index
6.0G    ./log
2.5G    ./zmstat
985M    ./redolog
634M    ./common
569M    ./jetty_base
294M    ./logger
107M    ./lib
16M     ./zimlets-deployed
8.2M    ./conf
4.0M    ./zimlets
2.5M    ./docs
2.2M    ./libexec
1.2M    ./ssl
880K    ./extensions-extra
604K    ./bin
304K    ./.saveconfig
12K     ./.ssh
8.0K    ./contrib
0       ./fbqueue
0       ./.cache


The New Mail Server:

Code: Select all

2.0T    ./store
2.0T    .
6.9G    ./db
5.5G    ./index
709M    ./common
657M    ./data
620M    ./jetty_base
398M    ./log
354M    ./logger
246M    ./lib
147M    ./zmstat
65M     ./keyview-10.13.0.0
25M     ./zimlets-deployed
8.0M    ./conf
3.4M    ./zimlets
2.7M    ./docs
2.4M    ./libexec
1.9M    ./zimlets-network
880K    ./extensions-extra
712K    ./bin
368K    ./backup
188K    ./redolog
180K    ./ssl
112K    ./convertd
44K     ./extensions-network-extra
16K     ./.ssh
8.0K    ./contrib
0       ./.saveconfig
0       ./fbqueue
0       ./.cache

I checked size of each mailbox user on both server. It's the same.

Already delete cache of zmmailbox with zmprov fc all


Can anyone help me? what problem here? May it a bug of Zimbra?
User avatar
L. Mark Stone
Ambassador
Ambassador
Posts: 2802
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine, US
ZCS/ZD Version: 10.0.7 Network Edition
Contact:

Re: Size of store directory increase after import use zmmailbox

Post by L. Mark Stone »

Sounds like you didn’t deduplicate the volume after the restore...
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
anhtung19x9
Posts: 2
Joined: Sun Feb 23, 2020 2:13 pm

Re: Size of store directory increase after import use zmmailbox

Post by anhtung19x9 »

Oh. how can I do it? Can u tell me?
User avatar
zimico
Outstanding Member
Outstanding Member
Posts: 225
Joined: Mon Nov 14, 2016 8:03 am
Location: Vietnam
ZCS/ZD Version: 8.8.15 P3
Contact:

Re: Size of store directory increase after import use zmmailbox

Post by zimico »

Hi,
If you follow the Zimbra's wiki at https://wiki.zimbra.com/wiki/Steps_To_R ... ZCS_Server, you can see at the end of wiki, on your new NE server:
zxsuite hsm getAllVolumes
zxsuite hsm doDeduplicate <volume name of the store>

Regards,
Minh.
Post Reply