need help recovering from disk crash

David Lang david.lang at digitalinsight.com
Tue Sep 25 12:23:05 EDT 2007


On Tue, 25 Sep 2007, Scott M. Likens wrote:

> Hi,
>
> If you have a dump of the mailbox's (ctl_mboxlist) then you can restore
> those, personally I back those up weekly as well as /var/spool/imap

I don't think I have that.

> If you don't, re-add the users, then do reconstruct -r -f user.username
> (obviously replace username with the username in question) and it will
> reconstruct the mailbox and find all the folders for you and add them to
> the mailboxes db.
>
> Then do that on all your users, and you should be good.

Ok, that's not bad.

> As far as 2.3.9 vs. 2.2... if you're only dealing with the message
> spool... it should be easy to massage it together.  if you're trying to
> bring back duplicate, sieve, seen, etc... it might be a hassle.

it would be really nice to retain the seen state, I don't care about duplicates 
and don't have sieve in use. what else would I loose?

> Rather vague email I just wrote... but you seemed to have the basics...
> if not reply all.

thanks.

David Lang

> Scott
>
> dlang at diginsite.com wrote:
>> I lost my OS drive on my home server, the mail partition was on a raid array
>> and survived, I have some of the rest of the config info, but it looks like I
>> lost the configdir contents (the directories are still there, but the files are
>> missing) I may be able to recover some stuff from lost+found if I can get hints
>> on what to search for.
>>
>> now, to make things more interesting, the old system was running gentoo and has
>> cyrus 2.3.recent on it
>>
>> the new system is ubuntu with 2.2.something on it (I couldn't get a recent
>> gentoo installer to run reliably on this hardware)
>>
>> can I make this work or should I compile 2.3.9?
>>
>> with reconstruct -m now working how can I recover the mailbox?
>>
>> the good news is that I only have 3 users on the system (with about 3G of mail
>> in several hundred folders betwen us) so manual fixes may be practical
>>
>> the config files were saved, and are:
>>
>> #cat imapd.conf |grep -v "^#" |grep "^[a-z]"
>> configdirectory:        /var/imap
>> partition-default:      /movies/imap
>> sievedir:               /var/imap/sieve
>> virtdomains:            yes
>> admins:                 cyrus
>> hashimapspool:          yes
>> allowanonymouslogin:    no
>> allowplaintext:         yes
>> sasl_pwcheck_method: auxprop
>> sasl_auxprop_plugin: sasldb
>> sasl_mech_list: PLAIN
>>
>>
>> # cat cyrus.conf |grep -v "^ *#" |grep "[a-z]"
>>    recover       cmd="ctl_cyrusdb -r"
>>    idled         cmd="idled"
>>    imap          cmd="imapd" listen="imap2" prefork=0
>>    pop3          cmd="pop3d" listen="pop-3" prefork=0
>>    imaps         cmd="imapd -s" listen="imaps" prefork=0
>>    pop3s         cmd="pop3d -s" listen="pop3s" prefork=0
>>    sieve         cmd="timsieved" listen="sieve" prefork=0
>>    lmtpunix      cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0
>>    checkpoint    cmd="ctl_cyrusdb -c" period=30
>>    delprune      cmd="ctl_deliver -E 3" period=1440
>>    tlsprune      cmd="tls_prune" period=1440
>> root at asgard:/etc# cat cyrus.conf |grep -v "^ *#" |grep "[a-z{}]"
>> START {
>>    recover       cmd="ctl_cyrusdb -r"
>>    idled         cmd="idled"
>> }
>> SERVICES {
>>    imap          cmd="imapd" listen="imap2" prefork=0
>>    pop3          cmd="pop3d" listen="pop-3" prefork=0
>>    imaps         cmd="imapd -s" listen="imaps" prefork=0
>>    pop3s         cmd="pop3d -s" listen="pop3s" prefork=0
>>    sieve         cmd="timsieved" listen="sieve" prefork=0
>>    lmtpunix      cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0
>> }
>> EVENTS {
>>    checkpoint    cmd="ctl_cyrusdb -c" period=30
>>    delprune      cmd="ctl_deliver -E 3" period=1440
>>    tlsprune      cmd="tls_prune" period=1440
>> }
>>
>> David Lang
>> ----
>> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
>> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
>> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>>
>>
>> !DSPAM:46f8b94b179948275421122!
>>
>>
>>
>
>


More information about the Info-cyrus mailing list