Re: migrating berkeley DBs (4.3 to 4.6)
Matthew Seaman wrote: Erik Norgaard wrote: I have cyrus-imapd 2.3 with Berkeley DB 4.3 and openldap also compiled with BDB 4.3. Now, openldap won't build with 4.3 and defaults to 4.6 so I need to migrate my data, and I would like to migrate my cyrus-imapd also to a newer version of BDB. Are there any tools or tricks for doing this? The BDB v4.4 port refers to a compatibility page maintained at sleepycat, but this is now redirected to Oracle and I find no such information. Any page listing the db file compatibility? Yes -- I believe BDB 4.3 and 4.6 aren't binary compatible it seems. For the special case of cyrus-imapd you should use cvt_cyrusdb(8) to dump out the contents of cyrus DB files to ascii, update everything, and then use cvt_cyrusdb to reload the data. Thanks, it doesn't seem that you can use this tool to convert from one version of BDB to another: alpha$ /usr/local/cyrus/bin/cvt_cyrusdb Usage: /usr/local/cyrus/bin/cvt_cyrusdb [-C altconfig] old db old db backend new db new db backend Usable Backends: berkeley, berkeley-nosync, berkeley-hash, berkeley-hash-nosync, flat, skiplist, quotalegacy So, I can restructure but not upgrade... It doesn't seem like other tools are provided with cyrus-imapd. I took a look on the files in my imap-dir, and it's a mess. Maybe the strategy would be to setup two servers and transfer mail one by one. Anyone got experience with this? Thanks, Erik -- Erik Nørgaard Ph: +34.666334818/+34.915211157 http://www.locolomo.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: migrating berkeley DBs (4.3 to 4.6)
On Sunday 31 May 2009 15:23:34 Erik Norgaard wrote: Hi: I have cyrus-imapd 2.3 with Berkeley DB 4.3 and openldap also compiled with BDB 4.3. Now, openldap won't build with 4.3 and defaults to 4.6 so I need to migrate my data, and I would like to migrate my cyrus-imapd also to a newer version of BDB. Are there any tools or tricks for doing this? The BDB v4.4 port refers to a compatibility page maintained at sleepycat, but this is now redirected to Oracle and I find no such information. Any page listing the db file compatibility? The big page @ oracle is here: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/upgrade/process.html Additional info and details: https://bugzilla.redhat.com/show_bug.cgi?id=470084 -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: migrating berkeley DBs (4.3 to 4.6)
Erik Norgaard wrote: I have cyrus-imapd 2.3 with Berkeley DB 4.3 and openldap also compiled with BDB 4.3. Now, openldap won't build with 4.3 and defaults to 4.6 so I need to migrate my data, and I would like to migrate my cyrus-imapd also to a newer version of BDB. Are there any tools or tricks for doing this? The BDB v4.4 port refers to a compatibility page maintained at sleepycat, but this is now redirected to Oracle and I find no such information. Any page listing the db file compatibility? Yes -- I believe BDB 4.3 and 4.6 aren't binary compatible it seems. For the special case of cyrus-imapd you should use cvt_cyrusdb(8) to dump out the contents of cyrus DB files to ascii, update everything, and then use cvt_cyrusdb to reload the data. As I recall, the real biggie for this is maintaining the 'seen' state. I think just about anything else can be rebuilt from the mailbox data itself by running a reconstruct. However, on a large mailspool reconstruct will take a while, so dump'n'reload would be preferable. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. Flat 3 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW, UK signature.asc Description: OpenPGP digital signature
migrating berkeley DBs (4.3 to 4.6)
Hi: I have cyrus-imapd 2.3 with Berkeley DB 4.3 and openldap also compiled with BDB 4.3. Now, openldap won't build with 4.3 and defaults to 4.6 so I need to migrate my data, and I would like to migrate my cyrus-imapd also to a newer version of BDB. Are there any tools or tricks for doing this? The BDB v4.4 port refers to a compatibility page maintained at sleepycat, but this is now redirected to Oracle and I find no such information. Any page listing the db file compatibility? Thanks, Erik -- Erik Nørgaard Ph: +34.666334818/+34.915211157 http://www.locolomo.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: migrating berkeley DBs (4.3 to 4.6)
my data, and I would like to migrate my cyrus-imapd also to a newer version of BDB. Are there any tools or tricks for doing this? possibly it's compatible but if you are not sure use dbversion_dump and _load to dump and restore data. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: migrating berkeley DBs (4.3 to 4.6)
Wojciech Puchar wrote: my data, and I would like to migrate my cyrus-imapd also to a newer version of BDB. Are there any tools or tricks for doing this? possibly it's compatible but if you are not sure use dbversion_dump and _load to dump and restore data. Thanks, I've had a look at the dump and load utilities, they have no man page :( dump works fine, or so I assume. But load fails, it appears that db_load won't create a new db file if it does not exist, and creating an empty file with touch fails too: alpha$ db_dump-4.3 -f cn.bdb.dump cn.bdb alpha$ db_load-4.6 -f cn.bdb.dump cn46.bdb db_load-4.6: Program version 4.6 doesn't match environment version 0.154 db_load-4.6: DB_ENV-open: DB_VERSION_MISMATCH: Database environment version mismatch The environment version varies. Any hints on how to use these utilities to migrate? Thanks, Erik -- Erik Nørgaard Ph: +34.666334818/+34.915211157 http://www.locolomo.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: migrating berkeley DBs (4.3 to 4.6)
Are there any tools or tricks for doing this? possibly it's compatible but if you are not sure use dbversion_dump and _load to dump and restore data. Thanks, I've had a look at the dump and load utilities, they have no man page it's not FreeBSD but GNU. No man is equivalent of read documentation in info or out webpage ;) :( dump works fine, or so I assume. But load fails, it appears that db_load won't create a new db file if it does not exist, and creating an empty file with touch fails too: alpha$ db_dump-4.3 -f cn.bdb.dump cn.bdb alpha$ db_load-4.6 -f cn.bdb.dump cn46.bdb db_load-4.6: Program version 4.6 doesn't match environment version 0.154 db_load-4.6: DB_ENV-open: DB_VERSION_MISMATCH: Database environment version mismatch ups. really i use only db4.1 and it worked don't you have mixed libs and executables. looks like this. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org