Opened 2 years ago

Closed 2 years ago

#11292 closed Task/To do item (fixed)

Recover space in mx1

Reported by: https://id.mayfirst.org/jaimev Owned by: https://id.mayfirst.org/jaimev
Priority: Medium Component: Tech
Keywords: Cc: https://id.mayfirst.org/erq
Sensitive: no

Description

mx1 disk space usage for /var is at 100% We think we could recover some disk space by deleting some unused e-mail accounts.

Change History (6)

comment:1 Changed 2 years ago by https://id.mayfirst.org/jaimev

Searching for cur directories within user Maildirs shows 1060 users haven't reviewed their account in over 5 years.

0 mx1:~/tickets/11292# find /var/mail/virtual/laneta.apc.org/ -maxdepth 2 -path '*/cur' -mtime +730 | wc -l
1192

comment:2 Changed 2 years ago by https://id.mayfirst.org/jaimev

  • Owner set to https://id.mayfirst.org/jaimev
  • Status changed from new to assigned

Before deleting content of mailboxes.

0 mx1:~/tickets/11292# df -h /var
Filesystem            Size  Used Avail Use% Moun
/dev/mapper/vg_mx10-var
                      766G  720G  6.5G 100% /var

I ran the following to clear out the conents of accounts older than 5 years:

0 mx1:~/tickets/11292# for dir in $(find /var/mail/virtual/laneta.apc.org/ -maxdepth 2 -path '*/cur' -mtime +1825 | cut -d'/' -f-6) ; do rm -rf $dir/*; done

And this is the disk usage afterwards.

0 mx1:~/tickets/11292# df -h /var
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_mx10-var
                      766G  493G  235G  68% /var

comment:3 Changed 2 years ago by https://id.mayfirst.org/jaimev

  • Cc https://id.mayfirst.org/erq added

Copiando a enrique aquí. He liberado espacio en mx1 borrando el contenido de los maildirs de usuarios que no han revisando su cuenta en mas de 5 años. Si veas algún problema con esta medida avisame pronto y podemos restaurar de respaldo.

comment:4 Changed 2 years ago by https://id.mayfirst.org/erq

todo bien Jaime, gracias. Aunque me pregunto si ¿será necesario borrar las cuentas desde el panel de control de mx1? o ¿si podría haber un efecto indeseable al existir esas cuentas de correo en la base de datos del panel sin que cuenten ya con buzón?

comment:5 Changed 2 years ago by https://id.mayfirst.org/jaimev

Por ahora no creo que sea necesario erq, el destino del Maildir aún existe.

comment:6 Changed 2 years ago by https://id.mayfirst.org/jaimev

  • Resolution set to fixed
  • Status changed from assigned to closed

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.