I/O error moving mailbox [Problem Solved]

Javier Sánchez-Arévalo Díaz javier.sanchez at coam.org
Wed Jun 27 02:44:11 EDT 2012


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
10000000
pcocol01:~ #

When I tried to set the quota for that user I received the same error:


localhost> lq user.col1901
localhost> sq user.col1901 10000000
quota:10000000
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 XXXXXXXXXX localhost
localhost> sq user.col1901 10000000
quota:10000000
localhost> lq user.col1901
  STORAGE 0/10000000 (0%)
localhost> renm user.col1901 user.col1901 part3
localhost>


Thank you very much to all of you!






On 26/06/2012 14:22, Javier Sánchez-Arévalo Díaz wrote:
>
> On 26/06/2012 13:32, Eric Luyten wrote:
>> 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.sanchez at 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 XXXXXXX 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 XXXXXXXX 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 XXXXXX 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 XXXXXXX localhost
> localhost> cm user.movingproblem default
> localhost> exit
> pcocol01:~ # ls /buzonesdir/user/movingproblem/
> cyrus.cache  cyrus.header  cyrus.index
> pcocol01:~ # cyradm -u cyrus -pass XXXXXXXX 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* <http://www.coam.es>
> mail:*javier.sanchez at coam.org* <mailto:javier.sanchez at 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.sanchez at coam.org* <mailto:javier.sanchez at 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>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20120627/62ca9775/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 3881 bytes
Desc: not available
Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20120627/62ca9775/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logocoam.png
Type: image/png
Size: 3881 bytes
Desc: not available
Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20120627/62ca9775/attachment-0003.png 


More information about the Info-cyrus mailing list