Re: Live migrating index/control files

2021-04-26 Thread Eirik Rye
> On 26 Apr 2021, at 16:03, azu...@pobox.sk wrote: > > Btw, if your control files are OUTSIDE maildir and you are moving them back > INSIDE maildir, notice (for example in my script) that .INBOX directory > doesn't exists in maildir and control files for INBOX are placed directly in > maildir

Re: Live migrating index/control files

2021-04-26 Thread azurit
Citát Eirik Rye : On 26 Apr 2021, at 15:14, Eirik Rye wrote: Both ~/Maildir and /mail/{control,index}/ are separate NFS-mounts, and we now want to consolidate all files to the user's home directory instead. The end goal is to stop using NFS altogether. Some more background information:

Re: Live migrating index/control files

2021-04-26 Thread Eirik Rye
> On 26 Apr 2021, at 15:14, Eirik Rye wrote: > > Both ~/Maildir and /mail/{control,index}/ are separate NFS-mounts, and we now > want to consolidate all files to the user's home directory instead. The end > goal is to stop using NFS altogether. Some more background information: - Running 2.

Re: Live migrating index/control files

2021-04-26 Thread azurit
Sorry, accidentaly sent the uncomplete message. Here is the mentioned script (see some configuration directives at the beginning of the script): https://pastebin.com/ArG8zspi Citát azu...@pobox.sk: Hi, i think you cannot do this without preventing users to log in. We were doing simila

Re: Live migrating index/control files

2021-04-26 Thread azurit
Hi, i think you cannot do this without preventing users to log in. We were doing similar thing few years ago and i wrote a Python script for this purpose - you can use it if you find it usefull (script is copying only control files as indexes are transparently recreated): Citát Eirik

Live migrating index/control files

2021-04-26 Thread Eirik Rye
Hello, We are running a director-based dovecot cluster where the user's maildir and the indexes/control files are, for legacy reasons, stored on separate NFS-backends, i.e.: mail_location = maildir:~/Maildir:CONTROL=/mail/control/%1u/%2u/%u:INDEX=/mail/index/%1u/%2u/%u Both ~/Maildir and /m