[Dovecot] rsync migration issue
-----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-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Luigi Rosa said the following on 15/04/2013 20:25:
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)
For the record: solved using rsync over ssh instead of mounting the file system with NFS.
Ciao, luigi
/ +--[Luigi Rosa]-- \
Mathematicians are like Frenchmen: whatever you say to them they translate into their own language and forthwith it is something entirely different. --Johann Wolfgang von Goethe -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/
iEYEARECAAYFAlFs2lUACgkQ3kWu7Tfl6ZSRTACfbDpq7+jxIL6LgFILFd1qM3YW rY0AoMfew+XII5Geb9JxsvaeYiTgBUTX =DkXI -----END PGP SIGNATURE-----
participants (1)
-
Luigi Rosa