<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 12/13/18 9:52 AM, Egoitz Aurrekoetxea wrote:<br>
<blockquote type="cite"
cite="mid:9e71e82ddcba5500a175c0e447131413@sarenet.es">
<p>I was trying to upgrade part of our Cyrus imap installation,
concretely that one consisting in still 2.3. I was planning to
set up Cyrus 3.0. I have seen all works properly except for the
unexpunge command because as someone stated here, a reconstruct
-V max was needed.The problem is that this reconstruct command,
takes ages and I'm not able to keep the service offline so many
time. So I have been thinking in the following scenario :</p>
</blockquote>
<br>
Egoitz,<br>
As long as you've followed all of the various steps needed to
account for version changes, as outlined in the Release Notes for <i>all</i>
intermediary releases, then the last step should be the updating of
the indexes. Rather than running "reconstruct -V max" on all
mailboxes at once, simply run it on subsets. We've done this on
large installations without ill effect. You can have the service on
line during the reconstruct, and, as you note, have most all
functionality present.<br>
<br>
We build a list of users (mboxlist.txt), and then run a cron job,
during off-peak hours, using the 'parallel' command like so (from
'crontab -e -u cyrus'):<br>
<blockquote>
<pre><tt>###
## Start a batch of recursive reconstruct jobs at 7PM and discontinue
## at 6:53AM.
0 19 * * * parallel -j 5 --resume --joblog /var/lib/imap/reconstruct.log cyrus reconstruct -G -V max -r -u {} < /var/lib/imap/mboxlist.txt
53 06 * * * kill -TERM `ps ax | grep [p]arallel | awk '{print $1}'`</tt></pre>
</blockquote>
Cheers,<br>
-nic<br>
<pre class="moz-signature" cols="72">--
Nic Bernstein <a class="moz-txt-link-abbreviated" href="mailto:nic@onlight.com">nic@onlight.com</a>
Onlight Inc. <a class="moz-txt-link-abbreviated" href="http://www.onlight.com">www.onlight.com</a>
6525 W Bluemound Rd., Ste 24 v. 414.272.4477
Milwaukee, Wisconsin 53213-4073 f. 414.290.0335
</pre>
</body>
</html>