[SOLVED] Squatter "No space left on device"

Tecnologia Charne.Net tecno at charne.net
Tue Jun 16 08:29:14 EDT 2015


El 15/06/15 a las 11:26, Anthony Prades escibió:
> On 06/15/2015 03:41 PM, Tecnologia Charne.Net wrote:
>> Hello!
>>
>> i'm using cyrus IMAPD since 11 years, on Debian VM. [0]
>>
>> Now, I found this problem and I can't find docs or comments about it
>> on web:
>>
>> # cyrus squatter -riv user/jgcharne at comunidad.unnoba.edu.ar
>> Indexing mailbox user/jgcharne at comunidad.unnoba.edu.ar... Writing index
>> update: No space left on device
>>
>>
>> [0]
>> localhost> ver
>> name       : Cyrus IMAPD
>> version    : v2.4.17-caldav-beta10-Debian-2.4.17+caldav~beta10-18
>> 97aa1c46 2014-07-22
>> vendor     : Project Cyrus
>> support-url: http://www.cyrusimap.org
>> os         : Linux
>> os-version : 3.14-1-amd64
>> environment: Built w/Cyrus SASL 2.1.26
>>               Running w/Cyrus SASL 2.1.26
>>               Built w/Berkeley DB 5.3.28: (September  9, 2013)
>>               Running w/Berkeley DB 5.3.28: (September  9, 2013)
>>               Built w/OpenSSL 1.0.1k 8 Jan 2015
>>               Running w/OpenSSL 1.0.2a 19 Mar 2015
>>               Built w/zlib 1.2.8
>>               Running w/zlib 1.2.8
>>               CMU Sieve 2.4
>>               TCP Wrappers
>>               NET-SNMP
>>               mmap = shared
>>               lock = fcntl
>>               nonblock = fcntl
>>               idle = poll
>>
>>
>> * Partition has 1.3 TB and only 400 GB used.
> Hi,
>
> maybe all inodes are used. What's the result of: df -i ?
>
> Anthony
>>
>>
>> * User mailbox has correct permissions.
>>
>> mda:/var/spool/cyrus/mail/domain/c/comunidad.unnoba.edu.ar/j/user/jgcharne#
>>
>> ls -all
>> drwx------ 1 cyrus mail  150 jun 15 10:38 .
>> drwx------ 1 cyrus mail   16 abr 13 11:17 ..
>> -rw------- 1 cyrus mail 1105 jun 15 10:22 7.
>> -rw------- 1 cyrus mail 7412 jun 15 10:22 cyrus.cache
>> -rw------- 1 cyrus mail  227 jun 15 10:15 cyrus.header
>> -rw------- 1 cyrus mail  800 jun 15 10:26 cyrus.index
>> -rw------- 1 cyrus mail  112 jun 15 10:17 cyrus.squat
>> drwx------ 1 cyrus mail   90 jun 10 05:17 Drafts
>> drwx------ 1 cyrus mail  122 jun 15 10:00 Sent
>> drwx------ 1 cyrus mail   90 jun 10 05:17 Spam
>> drwx------ 1 cyrus mail   90 jun 10 05:17 Templates
>> drwx------ 1 cyrus mail   90 jun 15 10:16 Trash
>>
>>
>>
>> Someone had this problem?
>>
>> Thanks in advance.
>>
>> Javier.-
>>
>>

Problem was btrfs metadata:

  cyrus squatter user/javier at unnoba.edu.ar
  Writing index update: No space left on device


Filesystem checks:

mda:~# btrfs filesystem df /var/spool/cyrus/
Data, single: total=1.26TiB, used=349.31GiB
System, DUP: total=8.00MiB, used=160.00KiB
System, single: total=4.00MiB, used=0.00B
*Metadata, DUP: total=3.50GiB, used=2.99GiB*
Metadata, single: total=8.00MiB, used=0.00B


btrfs filesystem usage /var/spool/cyrus
Overall:
    Device size:           1.27TiB
    Device allocated:           1.27TiB
    Device unallocated:          60.00KiB
    Device missing:             0.00B
    Used:             355.30GiB
    Free (estimated):         943.69GiB    (min: 943.69GiB)
    Data ratio:                  1.00
    Metadata ratio:              2.00
    Global reserve:             0.00B    (used: 0.00B)

Data,single: Size:1.26TiB, Used:349.31GiB
   /dev/xvdb1       1.26TiB

Metadata,single: Size:8.00MiB, Used:0.00B
   /dev/xvdb1       8.00MiB

*Metadata,DUP: Size:3.50GiB, Used:2.99GiB**
**   /dev/xvdb1       7.00GiB*

System,single: Size:4.00MiB, Used:0.00B
   /dev/xvdb1       4.00MiB

System,DUP: Size:8.00MiB, Used:160.00KiB
   /dev/xvdb1      16.00MiB

Unallocated:
   /dev/xvdb1      60.00KiB


# btrfs balance start -v -dusage=5 /var/spool/cyrus/
Dumping filters: flags 0x1, state 0x0, force is off
  DATA (flags 0x2): balancing, usage=5
Done, had to relocate 213 out of 1302 chunks


Now, it's working.


Javier.-

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/cyrus-devel/attachments/20150616/464724cb/attachment.html 


More information about the Cyrus-devel mailing list