From owner-freebsd-questions@FreeBSD.ORG Tue Jun 2 08:42:29 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43B25106566B for ; Tue, 2 Jun 2009 08:42:29 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from mail.locolomo.org (97.pool85-48-194.static.orange.es [85.48.194.97]) by mx1.freebsd.org (Postfix) with ESMTP id EEDC78FC18 for ; Tue, 2 Jun 2009 08:42:28 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from beta.locolomo.org (beta.locolomo.org [172.16.0.32]) by mail.locolomo.org (Postfix) with ESMTPSA id 2EA8A1C0847; Tue, 2 Jun 2009 10:42:27 +0200 (CEST) Message-ID: <4A24E5F2.7070909@locolomo.org> Date: Tue, 02 Jun 2009 10:42:26 +0200 From: Erik Norgaard User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: Matthew Seaman References: <4A2284D6.2080304@locolomo.org> <4A238B4D.9050801@infracaninophile.co.uk> In-Reply-To: <4A238B4D.9050801@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: questions@freebsd.org Subject: Re: migrating berkeley DBs (4.3 to 4.6) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2009 08:42:29 -0000 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] 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