cyrus/chk_cyrus found messages and deleted messages differs on master and slave
Marcus Schopen
lists at localguru.de
Tue Sep 16 11:29:18 EDT 2014
Hi,
Am Montag, den 15.09.2014, 20:08 +0200 schrieb Marcus Schopen:
> Or another way: just delete user.userxyz.sent_mail subfolder using
> cyradm. The sent_mail folder will be moved into a subfolder under
> u/DELETED/user/userxyz/sent_mail/ and will only keep message 1., because
> all other emails are not know by the cyrus databases in
> user.userxyz.sent_mail. This would solve the chk_cyrus error messages.
> But what happens to hardlink 1807. then? Will cyrus keep these mails in
> "Gesendete Elemente" then?
I renamed the "sent_mail" folder to "sent_mail_test" (using
Thunderbird). This action removed all UIDs in the filesystem inside the
sent_folder, which were not known by cyrus.* databases in the
"sent_mail" folder. Afterwards I renamed the folder back to "sent_mail".
The only UID which wasn't deleted is UID 1., which is correct, because
this UID was created inside the sent_mail after the users
copy/movement/whatever session, first new email/UID. A following
chk_cyrus didn't come up with errors. :)
Checking files:
# ls -li /var/spool/cyrus/mail/u/user/userxyz/sent_mail/1766.
No such file or directory
-> good, deleted by my renaming
#ls -li /var/spool/cyrus/mail/u/user/userxyz/Gesendete\ Elemente/1807.
10897103 -rw------- 3 cyrus mail 5520 Sep 9
23:08 /var/spool/cyrus/mail/u/user/userxyz/Gesendete Elemente/1807.
-> good, still there
# ls
-li /var/spool/cyrus/mail/u/DELETED/user/userxyz/sent_mail/54101FA9/1766.
10897103 -rw------- 3 cyrus mail 5520 Sep 9
23:08 /var/spool/cyrus/mail/u/DELETED/user/userxyz/sent_mail/54101FA9/1766.
-> good, will be hopefully deleted after 7 days be nightly expunge
Question still is what caused this inconsistence between cyrus.*
databases and fileystem, how can that happen?
Cheers
Marcus
More information about the Info-cyrus
mailing list