I need to delete/purge relay-bin files from mysql server. We don’t have any space left. We are not sure if we can delete the old relay-bin files or not. Looking for adivse on what is the best approach to delete/purge the files that has filled up the server space.
Here are the mysql db details
innodb_version: 5.5.33-rel31.1
protocol_version: 10
slave_type_conversions:
version: 5.5.33-31.1-log
version_comment: Percona Server (GPL), Release rel31.1, Revision 566
version_compile_machine: x86_64
version_compile_os: Linux
@amereddy relay_logs are automatically purged after they have been processed by the SQL_thread. How is your replication lag? You can use STOP SLAVE; RESET SLAVE; START SLAVE; to delete the relay logs. Any needed logs will be re-downloaded from the master.
Thanks Matt. I have master(mysb02) and slave(mysdb04). The slave is down as it is 100% full and we could not add anymore space to /var mount. I can’t even start mysql service to execute the commands you have suggested. Is there anything else that I can do ?