Reconstructing Mailboxes - HELP!

Robert Scussel rscuss at omniti.com
Tue Oct 29 17:41:16 EST 2002


Last time we had this problem we had to move mailboxes.db out of the 
way, remove everything in /var/spool/imapdb/ and then recreate our 
mailboxes.db file from a flat text backup and then run reconstruct, 
which takes awhile depending on you number of users.

Hopes this helps,
B

Joe Finkle wrote:
> Cyrus: 2.1.9
> 
> We suffered some data corruption on our cyrus box and the mailboxes.db 
> and the db/ folder were lost. When we start cyrus, ctl_cyrusdb just 
> hangs with the following strace:
> 
> open("/export/cyrus/imap/mailboxes.db", O_RDWR|O_LARGEFILE) = 6
> fcntl64(6, F_SETFD, FD_CLOEXEC)         = 0
> fstat64(6, {st_mode=S_IFREG|0600, st_size=294912, ...}) = 0
> select(0, NULL, NULL, NULL, {0, 1000})  = 0 (Timeout)
> select(0, NULL, NULL, NULL, {0, 2000})  = 0 (Timeout)
> select(0, NULL, NULL, NULL, {0, 4000})  = 0 (Timeout)
> select(0, NULL, NULL, NULL, {0, 8000})  = 0 (Timeout)
> select(0, NULL, NULL, NULL, {0, 16000}) = 0 (Timeout)
> select(0, NULL, NULL, NULL, {0, 32000}) = 0 (Timeout)
> select(0, NULL, NULL, NULL, {0, 64000}) = 0 (Timeout)
> select(0, NULL, NULL, NULL, {0, 128000}) = 0 (Timeout)
> select(0, NULL, NULL, NULL, {0, 256000}) = 0 (Timeout)
> select(0, NULL, NULL, NULL, {0, 512000}) = 0 (Timeout)
> select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
> select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
> select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
> 
> The last line continues forever.
> 
> Given the above, I assume the problem is a corrupted mailboxes.db file. 
> Im trying to run reconstruct -rf on each of the mailboxes (since 
> reconstruct -m is disabled), but doing so with the the old 
> mailboxes.db/db folder does not fix the hanging ctlcyrus_db problem. If 
> I delete everying in the db folder and i delete the mailboxes.db file, 
> reconstruct complains that it cant open the mailboxes.db file. I tried 
> using a fresh cyrus install's db/mailboxes and reconstruct again runs 
> for 1 second then ends doing nothing. Strace just shows it opening the 
> files.
> 
> Any help would be much appreciated.
> 
> Thanks,
> Lee
> 
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online 
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> 



-- 
Robert Scussel
1024D/BAF70959/0036 B19E 86CE 181D 0912  5FCC 92D8 1EA1 BAF7 0959





More information about the Info-cyrus mailing list