[Dovecot] rsync migration issue

Luigi Rosa lists at luigirosa.com
Mon Apr 15 21:25:01 EEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am trying to migrate a mail server from an old VM to a new one.

I have maildir and virtual users, the files and dirs of the file system are
owned by a single user.

I exported the old (now in production) /var/spool/mail with
(ro,no_root_squash) parameters

I mounted the NFS on the new server with -o nolock

This is not the first time I use this method and it always worked. Until now.

If I try to rsync the current maildir structure to the new server I get MANY
errors like:

rsync: readdir("/mnt/xxxx/username"): Invalid argument (22)
rsync: readdir("/mnt/xxxx/username/.Deleted Messages/cur"): Too many levels of
symbolic links (40)

I tried with

 rsync -a
 rsync --force --delete-after --devices --specials --sparse -tPrlHpogEAX
 rsync --force --delete-after --devices --specials --sparse -tPrlHpogEAXL

but the result is the same.


Suggestions? I don't want to tgz every mailbox, but I wuold like to do a rsync
during the night and a final rsync bevore switching IP addresses to minimize
downtime.



Ciao,
luigi

- -- 
/
+--[Luigi Rosa]--
\

It has just been discovered that research causes cancer in rats.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlFsRfcACgkQ3kWu7Tfl6ZRNbQCgk9AR7THYXT6+rqLFE5H8zSem
QhUAnR33bNbcXwWfNSj8PN0YgY40gdHH
=salc
-----END PGP SIGNATURE-----


More information about the dovecot mailing list