Reconstructing Mailboxes - HELP!

Joe Finkle scrasher21212121 at hotmail.com
Tue Oct 29 17:05:24 EST 2002


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





More information about the Info-cyrus mailing list