Re: Is it possible to migrate a single mailbox from cyrus 3.4.3 to 3.6.0~beta2-1 storage?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/25/22 12:21, Andy Dorman wrote:
On 3/25/22 11:45, Andy Dorman wrote:
On 3/25/22 01:57, Yadd wrote:
On 24/03/2022 23:55, Andy Dorman wrote:
Ellie, did you notice this from the debian maintainer?

On 3/23/22 09:57, Yadd wrote:
Looking at source, relocate_by_id tool doesn't exist in 3.6.0-beta2 (only mentioned in Cassandane::Cyrus::FastMail)

Hi,

I'm the Debian maintainer even I'm not a Cyrus-Imapd user (package was orphaned). I just pushed a new version, please try it (wait a few hours to see it in unstable).


Thank you Yadd.  I have updated our dev server and I see the new utilities now.

# dpkg -L cyrus-common
...
/usr/lib/cyrus/bin/cyr_cd.sh
...
/usr/lib/cyrus/bin/cyr_ls
...
/usr/lib/cyrus/bin/relocate_by_id


I don't see man pages yet, but that is no problem as I have found them here.

https://www.cyrusimap.org/dev/imap/reference/manpages/index.html#system-commands

After backing up my personal mailbox (which is on this dev server) AND enabling core dumps, I will try moving it to the uuid storage using relocate_by_id.

Andy


Hmmmmm.  Nothing is happening.  I have run relocate_by_id several times trying different variations of the mailbox name with nothing happening that I can see.  No errors, mailboxes moved or crashes indicated either in syslog or the command line.

# sudo -u cyrus /usr/lib/cyrus/bin/relocate_by_id user/xxxxx@xxxxxxxxxx
2022-03-25T12:04:31.831908-05:00 yorick sudo:     root : TTY=pts/0 ; PWD=/var/spool/cyrus/mail ; USER=cyrus ; COMMAND=/usr/lib/cyrus/bin/relocate_by_id user/xxxxx@xxxxxxxxxx 2022-03-25T12:04:31.832584-05:00 yorick sudo: pam_unix(sudo:session): session opened for user cyrus(uid=100) by root(uid=0) 2022-03-25T12:04:31.862491-05:00 yorick sudo: pam_unix(sudo:session): session closed for user cyrus
# sudo -u cyrus /usr/lib/cyrus/bin/relocate_by_id xxxxx@xxxxxxxxxx
2022-03-25T12:05:29.822711-05:00 yorick sudo:     root : TTY=pts/0 ; PWD=/var/spool/cyrus/mail ; USER=cyrus ; COMMAND=/usr/lib/cyrus/bin/relocate_by_id xxxxx@xxxxxxxxxx 2022-03-25T12:05:29.823176-05:00 yorick sudo: pam_unix(sudo:session): session opened for user cyrus(uid=100) by root(uid=0) 2022-03-25T12:05:29.853858-05:00 yorick sudo: pam_unix(sudo:session): session closed for user cyrus

I also tried running the command as root with the same results.

I suspect I am going to feel very foolish when someone points out what I am missing here.

Andy


FWIW, I noticed most of our servers never added a uuid storage directory when they updated last weekend. Is there a setting I need to add in imapd.conf to enable uuid storage and use relocate_by_id to move mailboxes to it?

We have one server with several BIG mailboxes (email going back almost 25 years) that I am holding off updating until I know relocate_by_id works in case the upgrade process goes awry.

Also, I continued to manually move move more mailboxes on the updated servers this past weekend and it went well, slowly but well. ;-) The only bug is some mail clients saw some of the emails as new instead of already read. But that was a minor complaint.

Andy

------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T9d294f89a3d1d260-M2a3b268f122f7852d59c19d2
Delivery options: https://cyrus.topicbox.com/groups/info/subscription




[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux