Re: I/O error moving mailbox [Problem Solved]
Hello to the list!, finally I could solve the problem thank to another list user (Wesley) that sent me a private message. He suggested me to trace using "strace" the imapd process while I was trying to move the mailbox. When I did that I discovered that the problem could be related with the quota file: /var/lib/imap/quota/c/user.col1901 exists but It was empty pcocol01:~ # cat /var/lib/imap/quota/c/user.col1901 pcocol01:~ # Not like other mailbox quotas: pcocol01:~ # cat /var/lib/imap/quota/c/user.col5000 430654051 1000 pcocol01:~ # When I tried to set the quota for that user I received the same error: localhost lq user.col1901 localhost sq user.col1901 1000 quota:1000 setquota: System I/O error After "stracing" while I was trying to set the quota I got the same problems so I decided to remove the empty file (/var/lib/imap/quota/c/user.col1901) as Wesley suggested me. After removing the file the problem looked like solved: pcocol01:~ # cyradm -u cyrus -pass XX localhost localhost sq user.col1901 1000 quota:1000 localhost lq user.col1901 STORAGE 0/1000 (0%) localhost renm user.col1901 user.col1901 part3 localhost Thank you very much to all of you! On 26/06/2012 14:22, Javier Snchez-Arvalo Daz wrote: On 26/06/2012 13:32, Eric Luyten wrote: On Tue, June 26, 2012 12:54 pm, Javier Snchez-Arvalo Daz wrote: On 26/06/2012 12:45, Sebastian Hagedorn wrote: --On 26. Juni 2012 10:07:10 +0200 Javier Snchez-Arvalo Daz javier.sanc...@coam.org wrote: I have just tried your suggestion: [...] // cyrus.*.NEW files removed: pcocol01:~ # cd /buzonesdir/user/col1901/ pcocol01:/buzonesdir/user/col1901 # ls cyrus.cache cyrus.cache.NEW cyrus.header cyrus.index cyrus.index.NEW Drafts PosibleSPAM Sent Trash pcocol01:/buzonesdir/user/col1901 # rm cyrus.*.NEW ... // You are right, there was a partial "movement" in /mnt/celerra/user/col1901: pcocol01:/buzonesdir/user/col1901 # ls /mnt/celerra/user/col1901/ cyrus.cache cyrus.header cyrus.index // If I try to move the mailbox without removing this partial files I have no success: pcocol01:/buzonesdir/user/col1901 # cd .. pcocol01:/buzonesdir/user # cyradm -u cyrus -pass XXX localhost localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error localhost exit // But It also doesn't work if I remove those files previously. pcocol01:/buzonesdir/user # rm -rf /mnt/celerra/user/col1901 pcocol01:/buzonesdir/user # ls /mnt/celerra/user/col1901 /bin/ls: /mnt/celerra/user/col1901: No such file or directory pcocol01:/buzonesdir/user # cyradm -u cyrus -pass localhost localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error [...] Any other idea? Just an idea: Have you checked if after the first attempt the .NEW files you had previously deleted hadn't perhaps reappeared? Maybe you need to delete them again. I did It :( [...] // no *NEW* files in origin partition mailbox: pcocol01:~ # find /buzonesdir/user/col1901/ -iname '*NEW*' -print pcocol01:~ # // no one file in destination partition: pcocol01:/mnt/celerra/user # ls /mnt/celerra/user/col1901 /bin/ls: /mnt/celerra/user/col1901: No such file or directory // But still It doesn't work :( pcocol01:~ # cyradm -u cyrus -pass XX localhost localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error [...] Any other test or idea to try? Javier, I am in the middle of preparations for a Cyrus migration myself (50 million messages in 475,000 mailboxes, totalling more than 5 Terabyte of e-mail) but I would expect the destination directory to be certainly empty, if not non-existing. I have little time to test this on my Cyrus 2.3 environment, however. I really appreciate you help Eric. I noticed your destination partition bearing a 'celerra' name component. Is this an NFS mount or an iSCSI block device 'attach' on your Cyrus server ? Yes It is. /mnt/celerra is a NFS mountpoint: pcocol01:~ # mount | grep celerra 212.145.146.8:/FS_AUX/FS_AUX on /mnt/celerra type nfs (rw,addr=212.145.146.8) But, honestly I think It's not a real I/O problem. I can move other mailboxes from one partition to another without problem. [...] pcocol01:~ # cyradm -u cyrus -pass XXX localhost localhost cm user.movingproblem
Re: I/O error moving mailbox
Eric, Here are the results: [...] pcocol01:~ # grep partition /etc/imapd.conf partition-default: /buzonesdir partition-part2: /mnt/aux partition-part3: /mnt/celerra defaultpartition: part3 cyrus@pcocol01:~ mbpath user.col1901 /buzonesdir/user/col1901 cyrus@pcocol01:~ cd /buzonesdir/user/col1901 cyrus@pcocol01:/buzonesdir/user/col1901 pwd /buzonesdir/user/col1901 cyrus@pcocol01:/buzonesdir/user/col1901 ls cyrus.cache cyrus.cache.NEW cyrus.header cyrus.index cyrus.index.NEW Drafts PosibleSPAM Sent Trash cyrus@pcocol01:/buzonesdir/user/col1901 ls -l total 20 -rw--- 1 cyrus mail 4 2012-06-21 11:14 cyrus.cache -rw--- 1 cyrus mail 4 2012-06-21 15:46 cyrus.cache.NEW -rw--- 1 cyrus mail 165 2012-06-21 11:14 cyrus.header -rw--- 1 cyrus mail 76 2012-06-26 07:32 cyrus.index -rw--- 1 cyrus mail 76 2012-06-21 15:46 cyrus.index.NEW drwxrwxrwx 2 cyrus mail 208 2012-06-21 15:46 Drafts drwxrwxrwx 2 cyrus mail 328 2012-06-22 02:06 PosibleSPAM drwxrwxrwx 2 cyrus mail 208 2012-06-21 15:46 Sent drwxrwxrwx 2 cyrus mail 208 2012-06-21 15:46 Trash cyrus@pcocol01:/buzonesdir/user/col1901 chk_cyrus -M user.col1901 Examining mailbox: user.col1901 checking: user.col1901 (/buzonesdir/user/col1901) - 0 records [...] Thank you. On 25/06/2012 14:56, Eric Luyten wrote: On Mon, June 25, 2012 10:30 am, Javier Snchez-Arvalo Daz wrote: Hi again! Nobody have any idea about how to solve this problem? I'm confused about the real state of the database and I have no idea about how to solve this issue. Does anybody have any idea about how to help me? Javier, What is the output of : 'grep partition /etc/imapd.conf' 'mbpath user.col1901' and what happens if you 'cd' into the result of the second command and execute 'pwd' and 'ls' there ? Does 'chk_cyrus -M user.col1901' return something weird ? Regards, Eric Luyten, Computing Centre VUB/ULB. On 21/06/2012 12:50, Javier Snchez-Arvalo Daz wrote: On 21/06/2012 12:18, Adam Tauno Williams wrote: On Thu, 2012-06-21 at 11:57 +0200, Javier Snchez-Arvalo Daz wrote: I'm experiencing some problems moving a mailbox from one partition ("default") to another ("part3"). I have already moved more than 19000 mailboxes from "default" to "part3" but I don't know why I'm unable to move "user.col1901" If you tail your mail / messages log do you see any messages when you try to move the mailbox? Yes. This is what I receive in /var/log/messages: [...] Jun 21 12:33:43 pcocol01 imap[19914]: DBERROR: error fetching user.col1901: cyrusdb error [...] And this is the result of executing ctl_mboxlist for this partition: [...] cyrus@pcocol01:~ ctl_mboxlist -d -p default user.col1901default col1901 lrswipcda user.col1901.Drafts default col1901 lrswipcda user.col1901.PosibleSPAMdefault col1901 lrsipd cyrus lrswipcda user.col1901.Sent default col1901 lrswipcda user.col1901.Trash default col1901 lrswipcda [...] When I try to do It I receive the next error: [...] localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error [...] I have checked permissions and even I have given 777 to this mailbox: It probably isn't a good idea to mess with filesystem permissions. As long as everything is owned by your cyrus user it should be just fine. I agree. It was just for test purposes. Thank you for your help Adam. -- *Javier Sanchez-Arevalo* Dpto. de Informatica web:*www.coam.es* http://www.coam.es mail:*javier.sanc...@coam.org* mailto:javier.sanc...@coam.org Hortaleza 63 28004 Madrid T. 915 951 536 Este correo electronico y, en su caso, cualquier fichero anexo al mismo, contiene informacion de caracter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgacion, copia o distribucion a terceros sin la previa autorizacion escrita del COLEGIO OFICIAL DE ARQUITECTOS DE MADRID. En el caso de haber recibido este correo electronico por error, se ruega notifiquese inmediatamente esta circunstancia mediante reenvio a la direccion electronica del remitente o al telefono 915 951 500 1903 De conformidad con lo establecido en la L.O.P.D. 15/1999, EL COLEGIO OFICIAL DE ARQUITECTOS DE MADRID garantiza la adopcion de las medidas necesarias para asegurar el tratamiento confidencial de los datos de caracter personal. Asi mismo le informamos de la posibilidad de ejercer los derechos de acceso, rectificacion, cancelacion y oposicion en la siguiente direccion: Hortaleza
Re: I/O error moving mailbox
On Tue, June 26, 2012 9:11 am, Javier Sánchez-Arévalo Díaz wrote: Eric, Here are the results: [...] pcocol01:~ # grep partition /etc/imapd.conf partition-default: /buzonesdir partition-part2: /mnt/aux partition-part3: /mnt/celerra defaultpartition: part3 cyrus@pcocol01:~ mbpath user.col1901 /buzonesdir/user/col1901 cyrus@pcocol01:~ cd /buzonesdir/user/col1901 cyrus@pcocol01:/buzonesdir/user/col1901 pwd /buzonesdir/user/col1901 cyrus@pcocol01:/buzonesdir/user/col1901 ls cyrus.cache cyrus.cache.NEW cyrus.header cyrus.index cyrus.index.NEW Drafts PosibleSPAM Sent Trash cyrus@pcocol01:/buzonesdir/user/col1901 ls -l total 20 -rw--- 1 cyrus mail 4 2012-06-21 11:14 cyrus.cache -rw--- 1 cyrus mail 4 2012-06-21 15:46 cyrus.cache.NEW -rw--- 1 cyrus mail 165 2012-06-21 11:14 cyrus.header -rw--- 1 cyrus mail 76 2012-06-26 07:32 cyrus.index -rw--- 1 cyrus mail 76 2012-06-21 15:46 cyrus.index.NEW drwxrwxrwx 2 cyrus mail 208 2012-06-21 15:46 Drafts drwxrwxrwx 2 cyrus mail 328 2012-06-22 02:06 PosibleSPAM drwxrwxrwx 2 cyrus mail 208 2012-06-21 15:46 Sent drwxrwxrwx 2 cyrus mail 208 2012-06-21 15:46 Trash Javier, I suggest you get rid of those cyrus.*.NEW files in the source directory. (rm cyrus.*.NEW) Please also check the directory where you want the mailbox to be moved to (is that /mnt/celerra/user/col1901 ?) Is there already something in that location ? Your 'rename_mailbox' may have partially succeeded. Eric Luyten, Computing Centre VUB/ULB. Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: I/O error moving mailbox
I have just tried your suggestion: [...] // cyrus.*.NEW files removed: pcocol01:~ # cd /buzonesdir/user/col1901/ pcocol01:/buzonesdir/user/col1901 # ls cyrus.cache cyrus.cache.NEW cyrus.header cyrus.index cyrus.index.NEW Drafts PosibleSPAM Sent Trash pcocol01:/buzonesdir/user/col1901 # rm cyrus.*.NEW pcocol01:/buzonesdir/user/col1901 # ls cyrus.cache cyrus.header cyrus.index Drafts PosibleSPAM Sent Trash pcocol01:/buzonesdir/user/col1901 # cd Drafts/ pcocol01:/buzonesdir/user/col1901/Drafts # ls cyrus.cache cyrus.cache.NEW cyrus.header cyrus.index cyrus.index.NEW pcocol01:/buzonesdir/user/col1901/Drafts # rm cyrus.*.NEW pcocol01:/buzonesdir/user/col1901/Drafts # ls cyrus.cache cyrus.header cyrus.index pcocol01:/buzonesdir/user/col1901/Drafts # cd .. pcocol01:/buzonesdir/user/col1901 # cd PosibleSPAM/ pcocol01:/buzonesdir/user/col1901/PosibleSPAM # ls 1365. 1366. 1367. 1368. 356. cyrus.cache cyrus.cache.NEW cyrus.header cyrus.index cyrus.index.NEW pcocol01:/buzonesdir/user/col1901/PosibleSPAM # rm cyrus.*.NEW pcocol01:/buzonesdir/user/col1901/PosibleSPAM # ls 1365. 1366. 1367. 1368. 356. cyrus.cache cyrus.header cyrus.index pcocol01:/buzonesdir/user/col1901/PosibleSPAM # cd .. pcocol01:/buzonesdir/user/col1901 # cd Sent/ pcocol01:/buzonesdir/user/col1901/Sent # ls cyrus.cache cyrus.cache.NEW cyrus.header cyrus.index cyrus.index.NEW pcocol01:/buzonesdir/user/col1901/Sent # rm cyrus.*.NEW pcocol01:/buzonesdir/user/col1901/Sent # ls cyrus.cache cyrus.header cyrus.index pcocol01:/buzonesdir/user/col1901/Sent # cd .. pcocol01:/buzonesdir/user/col1901 # cd Trash/ pcocol01:/buzonesdir/user/col1901/Trash # ls cyrus.cache cyrus.cache.NEW cyrus.header cyrus.index cyrus.index.NEW pcocol01:/buzonesdir/user/col1901/Trash # rm cyrus.*.NEW pcocol01:/buzonesdir/user/col1901/Trash # ls cyrus.cache cyrus.header cyrus.index pcocol01:/buzonesdir/user/col1901/Trash # cd .. pcocol01:/buzonesdir/user/col1901 # ls cyrus.cache cyrus.header cyrus.index Drafts PosibleSPAM Sent Trash pcocol01:/buzonesdir/user/col1901 # // You are right, there was a partial "movement" in /mnt/celerra/user/col1901: pcocol01:/buzonesdir/user/col1901 # ls /mnt/celerra/user/col1901/ cyrus.cache cyrus.header cyrus.index // If I try to move the mailbox without removing this partial files I have no success: pcocol01:/buzonesdir/user/col1901 # cd .. pcocol01:/buzonesdir/user # cyradm -u cyrus -pass XXX localhost localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error localhost exit // But It also doesn't work if I remove those files previously. pcocol01:/buzonesdir/user # rm -rf /mnt/celerra/user/col1901 pcocol01:/buzonesdir/user # ls /mnt/celerra/user/col1901 /bin/ls: /mnt/celerra/user/col1901: No such file or directory pcocol01:/buzonesdir/user # cyradm -u cyrus -pass localhost localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error [...] Any other idea? Thank you very much for your help. Javier. On 26/06/2012 9:44, Eric Luyten wrote: On Tue, June 26, 2012 9:11 am, Javier Snchez-Arvalo Daz wrote: Eric, Here are the results: [...] pcocol01:~ # grep partition /etc/imapd.conf partition-default: /buzonesdir partition-part2: /mnt/aux partition-part3: /mnt/celerra defaultpartition: part3 cyrus@pcocol01:~ mbpath user.col1901 /buzonesdir/user/col1901 cyrus@pcocol01:~ cd /buzonesdir/user/col1901 cyrus@pcocol01:/buzonesdir/user/col1901 pwd /buzonesdir/user/col1901 cyrus@pcocol01:/buzonesdir/user/col1901 ls cyrus.cache cyrus.cache.NEW cyrus.header cyrus.index cyrus.index.NEW Drafts PosibleSPAM Sent Trash cyrus@pcocol01:/buzonesdir/user/col1901 ls -l total 20 -rw--- 1 cyrus mail 4 2012-06-21 11:14 cyrus.cache -rw--- 1 cyrus mail 4 2012-06-21 15:46 cyrus.cache.NEW -rw--- 1 cyrus mail 165 2012-06-21 11:14 cyrus.header -rw--- 1 cyrus mail 76 2012-06-26 07:32 cyrus.index -rw--- 1 cyrus mail 76 2012-06-21 15:46 cyrus.index.NEW drwxrwxrwx 2 cyrus mail 208 2012-06-21 15:46 Drafts drwxrwxrwx 2 cyrus mail 328 2012-06-22 02:06 PosibleSPAM drwxrwxrwx 2 cyrus mail 208 2012-06-21 15:46 Sent drwxrwxrwx 2 cyrus mail 208 2012-06-21 15:46 Trash Javier, I suggest you get rid of those cyrus.*.NEW files in the source directory. (rm cyrus.*.NEW) Please also check the directory where you want the mailbox to be moved to (is that /mnt/celerra/user/col1901 ?) Is there already something in that location ? Your 'rename_mailbox' may have partially succeeded. Eric Luyten, Computing Centre VUB/ULB. Cyrus Home Page:
Re: I/O error moving mailbox
--On 26. Juni 2012 10:07:10 +0200 Javier Sánchez-Arévalo Díaz javier.sanc...@coam.org wrote: I have just tried your suggestion: [...] // cyrus.*.NEW files removed: pcocol01:~ # cd /buzonesdir/user/col1901/ pcocol01:/buzonesdir/user/col1901 # ls cyrus.cache cyrus.cache.NEW cyrus.header cyrus.index cyrus.index.NEW Drafts PosibleSPAM Sent Trash pcocol01:/buzonesdir/user/col1901 # rm cyrus.*.NEW ... // You are right, there was a partial movement in /mnt/celerra/user/col1901: pcocol01:/buzonesdir/user/col1901 # ls /mnt/celerra/user/col1901/ cyrus.cache cyrus.header cyrus.index // If I try to move the mailbox without removing this partial files I have no success: pcocol01:/buzonesdir/user/col1901 # cd .. pcocol01:/buzonesdir/user # cyradm -u cyrus -pass XXX localhost localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error localhost exit // But It also doesn't work if I remove those files previously. pcocol01:/buzonesdir/user # rm -rf /mnt/celerra/user/col1901 pcocol01:/buzonesdir/user # ls /mnt/celerra/user/col1901 /bin/ls: /mnt/celerra/user/col1901: No such file or directory pcocol01:/buzonesdir/user # cyradm -u cyrus -pass localhost localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error [...] Any other idea? Just an idea: Have you checked if after the first attempt the .NEW files you had previously deleted hadn't perhaps reappeared? Maybe you need to delete them again. -- .:.Sebastian Hagedorn - RZKR-R1 (Gebäude 52), Zimmer 18.:. .:.Regionales Rechenzentrum (RRZK).:. .:.Universität zu Köln / Cologne University - ✆ +49-221-478-5587.:. p7saiofCHRBpT.p7s Description: S/MIME cryptographic signature Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: I/O error moving mailbox
On 26/06/2012 12:45, Sebastian Hagedorn wrote: --On 26. Juni 2012 10:07:10 +0200 Javier Snchez-Arvalo Daz javier.sanc...@coam.org wrote: I have just tried your suggestion: [...] // cyrus.*.NEW files removed: pcocol01:~ # cd /buzonesdir/user/col1901/ pcocol01:/buzonesdir/user/col1901 # ls cyrus.cache cyrus.cache.NEW cyrus.header cyrus.index cyrus.index.NEW Drafts PosibleSPAM Sent Trash pcocol01:/buzonesdir/user/col1901 # rm cyrus.*.NEW ... // You are right, there was a partial "movement" in /mnt/celerra/user/col1901: pcocol01:/buzonesdir/user/col1901 # ls /mnt/celerra/user/col1901/ cyrus.cache cyrus.header cyrus.index // If I try to move the mailbox without removing this partial files I have no success: pcocol01:/buzonesdir/user/col1901 # cd .. pcocol01:/buzonesdir/user # cyradm -u cyrus -pass XXX localhost localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error localhost exit // But It also doesn't work if I remove those files previously. pcocol01:/buzonesdir/user # rm -rf /mnt/celerra/user/col1901 pcocol01:/buzonesdir/user # ls /mnt/celerra/user/col1901 /bin/ls: /mnt/celerra/user/col1901: No such file or directory pcocol01:/buzonesdir/user # cyradm -u cyrus -pass localhost localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error [...] Any other idea? Just an idea: Have you checked if after the first attempt the .NEW files you had previously deleted hadn't perhaps reappeared? Maybe you need to delete them again. I did It :( [...] // no *NEW* files in origin partition mailbox: pcocol01:~ # find /buzonesdir/user/col1901/ -iname '*NEW*' -print pcocol01:~ # // no one file in destination partition: pcocol01:/mnt/celerra/user # ls /mnt/celerra/user/col1901 /bin/ls: /mnt/celerra/user/col1901: No such file or directory // But still It doesn't work :( pcocol01:~ # cyradm -u cyrus -pass XX localhost localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error [...] Any other test or idea to try? Thanks a lot!. -- Javier Sanchez-Arevalo Dpto. de Informatica web:www.coam.es mail:javier.sanc...@coam.org Hortaleza 63 28004 Madrid T. 915 951 536 Este correo electronico y, en su caso, cualquier fichero anexo al mismo, contiene informacion de caracter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgacion, copia o distribucion a terceros sin la previa autorizacion escrita del COLEGIO OFICIAL DE ARQUITECTOS DE MADRID. En el caso de haber recibido este correo electronico por error, se ruega notifiquese inmediatamente esta circunstancia mediante reenvio a la direccion electronica del remitente o al telefono 915 951 500 1903 De conformidad con lo establecido en la L.O.P.D. 15/1999, EL COLEGIO OFICIAL DE ARQUITECTOS DE MADRID garantiza la adopcion de las medidas necesarias para asegurar el tratamiento confidencial de los datos de caracter personal. Asi mismo le informamos de la posibilidad de ejercer los derechos de acceso, rectificacion, cancelacion y oposicion en la siguiente direccion: Hortaleza 63. Madrid 28004 Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: I/O error moving mailbox
On Tue, June 26, 2012 12:54 pm, Javier Sánchez-Arévalo Díaz wrote: On 26/06/2012 12:45, Sebastian Hagedorn wrote: --On 26. Juni 2012 10:07:10 +0200 Javier Sánchez-Arévalo Díaz javier.sanc...@coam.org wrote: I have just tried your suggestion: [...] // cyrus.*.NEW files removed: pcocol01:~ # cd /buzonesdir/user/col1901/ pcocol01:/buzonesdir/user/col1901 # ls cyrus.cache cyrus.cache.NEW cyrus.header cyrus.index cyrus.index.NEW Drafts PosibleSPAM Sent Trash pcocol01:/buzonesdir/user/col1901 # rm cyrus.*.NEW ... // You are right, there was a partial movement in /mnt/celerra/user/col1901: pcocol01:/buzonesdir/user/col1901 # ls /mnt/celerra/user/col1901/ cyrus.cache cyrus.header cyrus.index // If I try to move the mailbox without removing this partial files I have no success: pcocol01:/buzonesdir/user/col1901 # cd .. pcocol01:/buzonesdir/user # cyradm -u cyrus -pass XXX localhost localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error localhost exit // But It also doesn't work if I remove those files previously. pcocol01:/buzonesdir/user # rm -rf /mnt/celerra/user/col1901 pcocol01:/buzonesdir/user # ls /mnt/celerra/user/col1901 /bin/ls: /mnt/celerra/user/col1901: No such file or directory pcocol01:/buzonesdir/user # cyradm -u cyrus -pass localhost localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error [...] Any other idea? Just an idea: Have you checked if after the first attempt the .NEW files you had previously deleted hadn't perhaps reappeared? Maybe you need to delete them again. I did It :( [...] // no *NEW* files in origin partition mailbox: pcocol01:~ # find /buzonesdir/user/col1901/ -iname '*NEW*' -print pcocol01:~ # // no one file in destination partition: pcocol01:/mnt/celerra/user # ls /mnt/celerra/user/col1901 /bin/ls: /mnt/celerra/user/col1901: No such file or directory // But still It doesn't work :( pcocol01:~ # cyradm -u cyrus -pass XX localhost localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error [...] Any other test or idea to try? Javier, I am in the middle of preparations for a Cyrus migration myself (50 million messages in 475,000 mailboxes, totalling more than 5 Terabyte of e-mail) but I would expect the destination directory to be certainly empty, if not non-existing. I have little time to test this on my Cyrus 2.3 environment, however. I noticed your destination partition bearing a 'celerra' name component. Is this an NFS mount or an iSCSI block device 'attach' on your Cyrus server ? Eric Luyten, Computing Centre VUB/ULB. Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: I/O error moving mailbox
On 26/06/2012 13:32, Eric Luyten wrote: On Tue, June 26, 2012 12:54 pm, Javier Snchez-Arvalo Daz wrote: On 26/06/2012 12:45, Sebastian Hagedorn wrote: --On 26. Juni 2012 10:07:10 +0200 Javier Snchez-Arvalo Daz javier.sanc...@coam.org wrote: I have just tried your suggestion: [...] // cyrus.*.NEW files removed: pcocol01:~ # cd /buzonesdir/user/col1901/ pcocol01:/buzonesdir/user/col1901 # ls cyrus.cache cyrus.cache.NEW cyrus.header cyrus.index cyrus.index.NEW Drafts PosibleSPAM Sent Trash pcocol01:/buzonesdir/user/col1901 # rm cyrus.*.NEW ... // You are right, there was a partial "movement" in /mnt/celerra/user/col1901: pcocol01:/buzonesdir/user/col1901 # ls /mnt/celerra/user/col1901/ cyrus.cache cyrus.header cyrus.index // If I try to move the mailbox without removing this partial files I have no success: pcocol01:/buzonesdir/user/col1901 # cd .. pcocol01:/buzonesdir/user # cyradm -u cyrus -pass XXX localhost localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error localhost exit // But It also doesn't work if I remove those files previously. pcocol01:/buzonesdir/user # rm -rf /mnt/celerra/user/col1901 pcocol01:/buzonesdir/user # ls /mnt/celerra/user/col1901 /bin/ls: /mnt/celerra/user/col1901: No such file or directory pcocol01:/buzonesdir/user # cyradm -u cyrus -pass localhost localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error [...] Any other idea? Just an idea: Have you checked if after the first attempt the .NEW files you had previously deleted hadn't perhaps reappeared? Maybe you need to delete them again. I did It :( [...] // no *NEW* files in origin partition mailbox: pcocol01:~ # find /buzonesdir/user/col1901/ -iname '*NEW*' -print pcocol01:~ # // no one file in destination partition: pcocol01:/mnt/celerra/user # ls /mnt/celerra/user/col1901 /bin/ls: /mnt/celerra/user/col1901: No such file or directory // But still It doesn't work :( pcocol01:~ # cyradm -u cyrus -pass XX localhost localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error [...] Any other test or idea to try? Javier, I am in the middle of preparations for a Cyrus migration myself (50 million messages in 475,000 mailboxes, totalling more than 5 Terabyte of e-mail) but I would expect the destination directory to be certainly empty, if not non-existing. I have little time to test this on my Cyrus 2.3 environment, however. I really appreciate you help Eric. I noticed your destination partition bearing a 'celerra' name component. Is this an NFS mount or an iSCSI block device 'attach' on your Cyrus server ? Yes It is. /mnt/celerra is a NFS mountpoint: pcocol01:~ # mount | grep celerra 212.145.146.8:/FS_AUX/FS_AUX on /mnt/celerra type nfs (rw,addr=212.145.146.8) But, honestly I think It's not a real I/O problem. I can move other mailboxes from one partition to another without problem. [...] pcocol01:~ # cyradm -u cyrus -pass XXX localhost localhost cm user.movingproblem default localhost exit pcocol01:~ # ls /buzonesdir/user/movingproblem/ cyrus.cache cyrus.header cyrus.index pcocol01:~ # cyradm -u cyrus -pass localhost localhost renm user.movingproblem user.movingproblem part3 localhost exit pcocol01:~ # ls /mnt/celerra/user/movingproblem/ cyrus.cache cyrus.header cyrus.index [...] Also I don't see any NFS error or warning in log files. ? Thank you again. Eric Luyten, Computing Centre VUB/ULB. Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus -- Javier Sanchez-Arevalo Dpto. de Informatica web:www.coam.es mail:javier.sanc...@coam.org Hortaleza 63 28004 Madrid T. 915 951 536 Este correo electronico y, en su caso, cualquier fichero anexo al mismo, contiene informacion de caracter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgacion, copia o distribucion a terceros sin la previa autorizacion escrita del COLEGIO OFICIAL DE
Re: I/O error moving mailbox
Hi again! Nobody have any idea about how to solve this problem? I'm confused about the real state of the database and I have no idea about how to solve this issue. Does anybody have any idea about how to help me? Than you very much in advance. On 21/06/2012 12:50, Javier Snchez-Arvalo Daz wrote: On 21/06/2012 12:18, Adam Tauno Williams wrote: On Thu, 2012-06-21 at 11:57 +0200, Javier Snchez-Arvalo Daz wrote: I'm experiencing some problems moving a mailbox from one partition ("default") to another ("part3"). I have already moved more than 19000 mailboxes from "default" to "part3" but I don't know why I'm unable to move "user.col1901" If you tail your mail / messages log do you see any messages when you try to move the mailbox? Yes. This is what I receive in /var/log/messages: [...] Jun 21 12:33:43 pcocol01 imap[19914]: DBERROR: error fetching user.col1901: cyrusdb error [...] And this is the result of executing ctl_mboxlist for this partition: [...] cyrus@pcocol01:~ ctl_mboxlist -d -p default user.col1901 default col1901 lrswipcda user.col1901.Drafts default col1901 lrswipcda user.col1901.PosibleSPAM default col1901 lrsipd cyrus lrswipcda user.col1901.Sent default col1901 lrswipcda user.col1901.Trash default col1901 lrswipcda [...] When I try to do It I receive the next error: [...] localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error [...] I have checked permissions and even I have given 777 to this mailbox: It probably isn't a good idea to mess with filesystem permissions. As long as everything is owned by your cyrus user it should be just fine. I agree. It was just for test purposes. Thank you for your help Adam. -- Javier Sanchez-Arevalo Dpto. de Informatica web:www.coam.es mail:javier.sanc...@coam.org Hortaleza 63 28004 Madrid T. 915 951 536 Este correo electronico y, en su caso, cualquier fichero anexo al mismo, contiene informacion de caracter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgacion, copia o distribucion a terceros sin la previa autorizacion escrita del COLEGIO OFICIAL DE ARQUITECTOS DE MADRID. En el caso de haber recibido este correo electronico por error, se ruega notifiquese inmediatamente esta circunstancia mediante reenvio a la direccion electronica del remitente o al telefono 915 951 500 1903 De conformidad con lo establecido en la L.O.P.D. 15/1999, EL COLEGIO OFICIAL DE ARQUITECTOS DE MADRID garantiza la adopcion de las medidas necesarias para asegurar el tratamiento confidencial de los datos de caracter personal. Asi mismo le informamos de la posibilidad de ejercer los derechos de acceso, rectificacion, cancelacion y oposicion en la siguiente direccion: Hortaleza 63. Madrid 28004 Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus -- Javier Sanchez-Arevalo Dpto. de Informatica web:www.coam.es mail:javier.sanc...@coam.org Hortaleza 63 28004 Madrid T. 915 951 536 Este correo electronico y, en su caso, cualquier fichero anexo al mismo, contiene informacion de caracter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgacion, copia o distribucion a terceros sin la previa autorizacion escrita del COLEGIO OFICIAL DE ARQUITECTOS DE MADRID. En el caso de haber recibido este correo electronico por error, se ruega
Re: I/O error moving mailbox
On Mon, June 25, 2012 10:30 am, Javier Sánchez-Arévalo Díaz wrote: Hi again! Nobody have any idea about how to solve this problem? I'm confused about the real state of the database and I have no idea about how to solve this issue. Does anybody have any idea about how to help me? Javier, What is the output of : 'grep partition /etc/imapd.conf' 'mbpath user.col1901' and what happens if you 'cd' into the result of the second command and execute 'pwd' and 'ls' there ? Does 'chk_cyrus -M user.col1901' return something weird ? Regards, Eric Luyten, Computing Centre VUB/ULB. On 21/06/2012 12:50, Javier Sánchez-Arévalo Díaz wrote: On 21/06/2012 12:18, Adam Tauno Williams wrote: On Thu, 2012-06-21 at 11:57 +0200, Javier Sánchez-Arévalo Díaz wrote: I'm experiencing some problems moving a mailbox from one partition (default) to another (part3). I have already moved more than 19000 mailboxes from default to part3 but I don't know why I'm unable to move user.col1901 If you tail your mail / messages log do you see any messages when you try to move the mailbox? Yes. This is what I receive in /var/log/messages: [...] Jun 21 12:33:43 pcocol01 imap[19914]: DBERROR: error fetching user.col1901: cyrusdb error [...] And this is the result of executing ctl_mboxlist for this partition: [...] cyrus@pcocol01:~ ctl_mboxlist -d -p default user.col1901default col1901 lrswipcda user.col1901.Drafts default col1901 lrswipcda user.col1901.PosibleSPAMdefault col1901 lrsipd cyrus lrswipcda user.col1901.Sent default col1901 lrswipcda user.col1901.Trash default col1901 lrswipcda [...] When I try to do It I receive the next error: [...] localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error [...] I have checked permissions and even I have given 777 to this mailbox: It probably isn't a good idea to mess with filesystem permissions. As long as everything is owned by your cyrus user it should be just fine. I agree. It was just for test purposes. Thank you for your help Adam. -- *Javier Sanchez-Arevalo* Dpto. de Informatica web:*www.coam.es* http://www.coam.es mail:*javier.sanc...@coam.org* mailto:javier.sanc...@coam.org Hortaleza 63 28004 Madrid T. 915 951 536 Este correo electronico y, en su caso, cualquier fichero anexo al mismo, contiene informacion de caracter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgacion, copia o distribucion a terceros sin la previa autorizacion escrita del COLEGIO OFICIAL DE ARQUITECTOS DE MADRID. En el caso de haber recibido este correo electronico por error, se ruega notifiquese inmediatamente esta circunstancia mediante reenvio a la direccion electronica del remitente o al telefono 915 951 500 1903 De conformidad con lo establecido en la L.O.P.D. 15/1999, EL COLEGIO OFICIAL DE ARQUITECTOS DE MADRID garantiza la adopcion de las medidas necesarias para asegurar el tratamiento confidencial de los datos de caracter personal. Asi mismo le informamos de la posibilidad de ejercer los derechos de acceso, rectificacion, cancelacion y oposicion en la siguiente direccion: Hortaleza 63. Madrid 28004 http://www.coam.es Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus -- *Javier Sanchez-Arevalo* Dpto. de Informatica web:*www.coam.es* http://www.coam.es mail:*javier.sanc...@coam.org* mailto:javier.sanc...@coam.org Hortaleza 63 28004 Madrid T. 915 951 536 Este correo electronico y, en su caso, cualquier fichero anexo al mismo, contiene informacion de caracter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgacion, copia o distribucion a terceros sin la previa autorizacion escrita del COLEGIO OFICIAL DE ARQUITECTOS DE MADRID. En el caso de haber recibido este correo electronico por error, se ruega notifiquese inmediatamente esta circunstancia mediante reenvio a la direccion electronica del remitente o al telefono 915 951 500 1903 De conformidad con lo establecido en la L.O.P.D. 15/1999, EL COLEGIO OFICIAL DE ARQUITECTOS DE MADRID garantiza la adopcion de las medidas necesarias para asegurar el tratamiento confidencial de los datos de caracter personal. Asi mismo le informamos de la posibilidad de ejercer los derechos de acceso, rectificacion, cancelacion y oposicion en la siguiente direccion: Hortaleza 63. Madrid 28004 http://www.coam.es Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To
I/O error moving mailbox
Hi to everybody, I'm experiencing some problems moving a mailbox from one partition ("default") to another ("part3"). I have already moved more than 19000 mailboxes from "default" to "part3" but I don't know why I'm unable to move "user.col1901" When I try to do It I receive the next error: [...] localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error [...] I have checked permissions and even I have given 777 to this mailbox: [...] pcocol01:~ # ls -l /buzonesdir/user/ total 13 drwxrwxrwx 6 cyrus mail 248 2012-06-21 11:14 col1901 pcocol01:~ # ls -l /buzonesdir/user/col1901/ total 12 -rw--- 1 cyrus mail 4 2012-06-21 11:14 cyrus.cache -rw--- 1 cyrus mail 165 2012-06-21 11:14 cyrus.header -rw--- 1 cyrus mail 76 2012-06-21 11:14 cyrus.index drwxrwxrwx 2 cyrus mail 144 2012-06-21 11:14 Drafts drwxrwxrwx 2 cyrus mail 264 2012-06-21 11:14 PosibleSPAM drwxrwxrwx 2 cyrus mail 144 2012-06-21 11:14 Sent drwxrwxrwx 2 cyrus mail 144 2012-06-21 11:14 Trash [...] If I try to reconstruct the mailbox, It looks like that It's done without problem: [...] cyrus@pcocol01:~ reconstruct -rfx user.col1901 user.col1901 user.col1901.Drafts user.col1901.PosibleSPAM user.col1901.Sent user.col1901.Trash [...] or [...] cyrus@pcocol01:~ reconstruct -rf user.col1901 user.col1901 user.col1901.Drafts user.col1901.PosibleSPAM user.col1901.Sent user.col1901.Trash [...] Could you please help me to find out the problem and solve It? Thank you very much for your help. -- Javier Sanchez-Arevalo Dpto. de Informatica web:www.coam.es mail:javier.sanc...@coam.org Hortaleza 63 28004 Madrid T. 915 951 536 Este correo electronico y, en su caso, cualquier fichero anexo al mismo, contiene informacion de caracter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgacion, copia o distribucion a terceros sin la previa autorizacion escrita del COLEGIO OFICIAL DE ARQUITECTOS DE MADRID. En el caso de haber recibido este correo electronico por error, se ruega notifiquese inmediatamente esta circunstancia mediante reenvio a la direccion electronica del remitente o al telefono 915 951 500 1903 De conformidad con lo establecido en la L.O.P.D. 15/1999, EL COLEGIO OFICIAL DE ARQUITECTOS DE MADRID garantiza la adopcion de las medidas necesarias para asegurar el tratamiento confidencial de los datos de caracter personal. Asi mismo le informamos de la posibilidad de ejercer los derechos de acceso, rectificacion, cancelacion y oposicion en la siguiente direccion: Hortaleza 63. Madrid 28004 Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: I/O error moving mailbox
On Thu, 2012-06-21 at 11:57 +0200, Javier Sánchez-Arévalo Díaz wrote: I'm experiencing some problems moving a mailbox from one partition (default) to another (part3). I have already moved more than 19000 mailboxes from default to part3 but I don't know why I'm unable to move user.col1901 If you tail your mail / messages log do you see any messages when you try to move the mailbox? When I try to do It I receive the next error: [...] localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error [...] I have checked permissions and even I have given 777 to this mailbox: It probably isn't a good idea to mess with filesystem permissions. As long as everything is owned by your cyrus user it should be just fine. signature.asc Description: This is a digitally signed message part Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: I/O error moving mailbox
On 21/06/2012 12:18, Adam Tauno Williams wrote: On Thu, 2012-06-21 at 11:57 +0200, Javier Snchez-Arvalo Daz wrote: I'm experiencing some problems moving a mailbox from one partition ("default") to another ("part3"). I have already moved more than 19000 mailboxes from "default" to "part3" but I don't know why I'm unable to move "user.col1901" If you tail your mail / messages log do you see any messages when you try to move the mailbox? Yes. This is what I receive in /var/log/messages: [...] Jun 21 12:33:43 pcocol01 imap[19914]: DBERROR: error fetching user.col1901: cyrusdb error [...] And this is the result of executing ctl_mboxlist for this partition: [...] cyrus@pcocol01:~ ctl_mboxlist -d -p default user.col1901 default col1901 lrswipcda user.col1901.Drafts default col1901 lrswipcda user.col1901.PosibleSPAM default col1901 lrsipd cyrus lrswipcda user.col1901.Sent default col1901 lrswipcda user.col1901.Trash default col1901 lrswipcda [...] When I try to do It I receive the next error: [...] localhost renm user.col1901 user.col1901 part3 renamemailbox: System I/O error [...] I have checked permissions and even I have given 777 to this mailbox: It probably isn't a good idea to mess with filesystem permissions. As long as everything is owned by your cyrus user it should be just fine. I agree. It was just for test purposes. Thank you for your help Adam. -- Javier Sanchez-Arevalo Dpto. de Informatica web:www.coam.es mail:javier.sanc...@coam.org Hortaleza 63 28004 Madrid T. 915 951 536 Este correo electronico y, en su caso, cualquier fichero anexo al mismo, contiene informacion de caracter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgacion, copia o distribucion a terceros sin la previa autorizacion escrita del COLEGIO OFICIAL DE ARQUITECTOS DE MADRID. En el caso de haber recibido este correo electronico por error, se ruega notifiquese inmediatamente esta circunstancia mediante reenvio a la direccion electronica del remitente o al telefono 915 951 500 1903 De conformidad con lo establecido en la L.O.P.D. 15/1999, EL COLEGIO OFICIAL DE ARQUITECTOS DE MADRID garantiza la adopcion de las medidas necesarias para asegurar el tratamiento confidencial de los datos de caracter personal. Asi mismo le informamos de la posibilidad de ejercer los derechos de acceso, rectificacion, cancelacion y oposicion en la siguiente direccion: Hortaleza 63. Madrid 28004 Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus