Opened 3 years ago

Closed 3 years ago

#11292 closed Task/To do item (fixed)

Recover space in mx1

Reported by: JaimeV Owned by: JaimeV
Priority: Medium Component: Tech
Keywords: Cc: Enrique Rosas
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 3 years ago by 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 3 years ago by JaimeV

Owner: set to JaimeV
Status: newassigned

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 3 years ago by JaimeV

Cc: Enrique Rosas 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 3 years ago by Enrique Rosas

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 3 years ago by JaimeV

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

comment:6 Changed 3 years ago by JaimeV

Resolution: fixed
Status: assignedclosed

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.