Upgrade all Berkeley db's

Alain Spineux aspineux at gmail.com
Thu Feb 7 14:29:34 EST 2008


On Feb 7, 2008 6:21 PM, Martin Schweizer <schweizer.martin at gmail.com> wrote:
> Hello
>
>  I use FreeBSD 6.3 and Cyrus 2.3.11 (with sasldb2). All works correct.

All works corrects ?
Have you already upgraded ?
Then why your questions ?


> In the upgrade process (2.3.9 to 2.3.11) I checked also all the db
> files.  I found the following:
>
> file /usr/local/etc/sasldb2:
> /usr/local/etc/sasldb2.db: Berkeley DB 1.85 (Hash, version 2, native byte-order)

Depend which binary are or will access saasldb2.

>
> -> Do I need to upgrade the sasldb2 or can I let is as is?
>
> file /var/imap/*.db:
> - annotations.db:  Apple QuickTime movie (modified)\012- Cyrus skiplist DB
>
> - deliver.db:      Hitachi SH big-endian COFF object, not
> stripped\012- Berkeley DB (Btree, version 8, native byte-order)\012-
> Berkeley DB (Btree, version 8, little-endian)
>
> - mailboxes.db:    Apple QuickTime movie (modified)\012- Cyrus skiplist DB
>
> - tls_sessions.db: Berkeley DB (Btree, version 8, native
> byte-order)\012- Berkeley DB (Btree, version 8, little-endian)
>
> pkg_info|grep db:
> db3-3.3.11_3,1      The Berkeley DB package, revision 3.3
> db41-4.1.25_4       The Berkeley DB package, revision 4.1

The problem is wich version of bdb is used by your application

# ldd binary_file

should tell you

>
> db3_dump deliver.db and tls_sessions.db:
> VERSION=3
> format=bytevalue
> type=btree
> ...
> This means for me it's db3. Can I upgrade it with db3_dump to a text
> file db41_load in a new database file? Or can cyrus create
> tls_session.db and deliver.db new?
>
> annotations.db:
> How I can upgrade this db? Do I need it or can cyrus createannotations.db?
>
> mailboxes.db:
> This I can dump/restore by ctl_mboxlist -d/-u.

annotations and mailboxes are skiplist, this is not bdb !
You dont need to upgrade.

PS: annotations contains annotations :-) It is important if your MUA
is using annotation.

deliver and tls_session can be dropped, cyrus will re-create them.

>
> What is about the files in the directories /var/imap/db and
> /var/imap/user? How I should dealt with these? Did I foreget
> something?

"file" is you friend !
Look for file named cyrus.*

>
> Regards,
> --
> Martin Schweizer
> schweizer.martin at gmail.com
> Tel.: +41 32 512 48 54 (VoIP)
> Fax: +1 619 3300587
> ----
> 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
>



-- 
Alain Spineux
aspineux gmail com
May the sources be with you


More information about the Info-cyrus mailing list