[Dovecot] dovecot & OCFS2 Cluster

Robert Schetterer robert at schetterer.org
Fri May 13 10:36:32 EEST 2011


Am 13.05.2011 08:46, schrieb Osvaldo Alvarez Pozo:
> Ok I want to do migration without downtime
> 
> Yes i have red that the separator depends on mailbox format and that
> for maildir it is '.'
> 
> So in my dovecot.conf I have no namespace definition and my mail-location is:
> 
> mail_location = maildir:/var/vmail/%d/%u/Maildir
> 
> But when I execute the dsync command:
> 
> /usr/local/dovecot/bin/dsync -v -f -u example at example.org mirror
> mdbox:/var1/vmail/example.org/example/mdbox
> 
> i get
> 
> dsync(root): Fatal: Mail locations must use the same virtual mailbox
> hierarchy separator (specify separator for the default namespace)
> 
> 
> So i have to add to my dovecot.conf
> namespace {
>   inbox = yes
>   separator = .
>   subscriptions = yes
> }
> 
> And after finishig dsync for all mailboxes to a new location
> I change separator to:
> 
> separator = /
> 
> as a final step  I  have to return the new mdbox mail location for
> each user using userdb
> 
> and my dsync command would change:
> 
> /usr/local/dovecot/bin/dsync -v -f -u example at example.org mirror
> maildir:/var/vmail/example.org/example/Maildir
> 
> Am I rigth?
> 
> Thanks you all

that doesnt look bad, but i am not sure
wait for others comments ( like Timo )

> 
> 
> 2011/5/13 Timo Sirainen <tss at iki.fi>:
>> On 13.5.2011, at 1.00, Osvaldo Alvarez Pozo wrote:
>>
>>> Actually I have no namespace definition. If i add namespace definition
>>> for start migrating,  waht about my clients? will they be able to find
>>> there mail & mailboxes while I am migrating from maildir to mdbox?
>>
>> Your clients see the default namespace if it's not explicitly specified. That namespace has prefix="" and the separator depends on what mailbox format you're using. With Maildir that would be "." character. If you keep that there shouldn't be even any potential problems.
>>
>>
>>

however , i am thinking about migrate to mdbox too, on ocfs2, looks like
the store is getting slow with thousends of maildirs, there may other
reason for that too, depending hardware ( raid etc ), but current i only
see the migrate option to speed up, so i am interested in the results of
your migration ,please report

-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


More information about the dovecot mailing list