Jump to content

Old mailserver mail migration to Piler

From TetraWiki
Revision as of 04:44, 21 August 2019 by Biswajit (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Approach : Mount zimbra store on piler and use pilerimport for directory containing mails

Mount the disk of old server on piler server

on piler server

yum install sshfs
sshfs -o allow_other,uid=1000,gid=1000 192.168.16.105:/opt/zimbra/store/0/ /old_mails/

where uid=1000,gid=1000 are uid,gid of piler users


Then

screen
cd /tmp
pilerimport -d /old_mails/

Will show the progress


We had to change the process to multi thread process , We had taken multi screens and ran

for  d in `ls -d -1 -- /old_mails/9[0-9]*` ; do pilerimport -d $d ; done
for  d in `ls -d -1 -- /old_mails/8[0-9]*` ; do pilerimport -d $d ; done

and so on in different screen .


13 TB of Mail Data got migrated via this mechanism to Piler mail Archival solution