Not the answer you need?
Register and ask your own question! full disk problems

nikola.vidovicnikola.vidovic EntrantInactive User Role Beginner

We have a 3 node cluster setup, and it happens that nodes create a lot of files and it leads to fulling disks on nodes and to node crash. Then node needs to be reinitialised and files needs to be deleted. All those files can full up the disks up to 90 GB, althought when node starts mysql data directory takes only 12 GB. It is Percona XtraDB Cluster 5.6. How can I limit the number of these files?

Thank you!


  • taka-htaka-h Contributor Current User Role Beginner

    how about gcache-keep-pages-size

    I also think, It might be good to fully synchronize data by SST when you setup.
  • jesuschjesusch Entrant Inactive User Role Beginner

    I'm facing the same problem which seems to happen in mariadb as well

    @taka-h: I don't really understand the doc of gcache.keep_page_size - is this the number of files or is the the overall amounth of space required by gcache?

  • krm1312krm1312 Entrant Current User Role Beginner
    Is there any news on this issue? We have a three node cluster, and invariably after a few days to a week, we end up with a bunch of files being created. The cluster itself is fine. I end up shutting down the node with the files (whichis the one getting all the writes), manually delete them, and start it back up.
    -rw-------. 1 mysql mysql  134219048 Dec 11 18:27 galera.cache
      -rw-------  1 mysql mysql  134217728 Dec 12 12:26
      -rw-------  1 mysql mysql  134217728 Dec 13 12:27
      -rw-------  1 mysql mysql  134217728 Dec 14 10:27
      -rw-------  1 mysql mysql  134217728 Dec 14 12:54
      -rw-------  1 mysql mysql  134217728 Dec 14 14:34
      -rw-------  1 mysql mysql  134217728 Dec 14 15:56
      -rw-------  1 mysql mysql  134217728 Dec 14 18:59
      -rw-------  1 mysql mysql  134217728 Dec 15 10:41
      -rw-------  1 mysql mysql  134217728 Dec 15 12:31
      -rw-------  1 mysql mysql  134217728 Dec 15 15:11
      -rw-rw----  1 mysql mysql        133 Dec 10 19:32 GRA_9_888385.log
      -rw-rw----. 1 mysql mysql        108 Dec 15 00:30 grastate.dat
      -rw-rw----  1 mysql mysql        265 Dec  3 20:24 gvwstate.dat
    [root@host src]# rpm -qa | grep -i percona
    [root@host src]# cat /etc/my.cnf
      default-character-set = utf8mb4
      socket = /x/mysql/mysql.sock
      default-character-set = utf8mb4
      port = 3306
      socket = /x/mysql/mysql.sock
      datadir = /x/mysql
      character-set-client-handshake = FALSE
      character-set-server = utf8mb4
      collation-server = utf8mb4_unicode_ci
      max_connections = 1000
      log_bin = mysql-bin
      expire_logs_days = 3
      binlog_format                  = ROW
      default_storage_engine = innodb
      innodb_buffer_pool_size        = 5G 
      innodb_flush_log_at_trx_commit = 0
      innodb_flush_method            = O_DIRECT
      innodb_log_files_in_group      = 2
      innodb_log_file_size           = 20M
      innodb_file_per_table          = 1
      innodb_large_prefix = true
      innodb_file_format = Barracuda
      innodb_autoinc_lock_mode       = 2
      wsrep_cluster_address          = gcomm://x.x.x.138,x.x.x.139,x.x.x.140
      wsrep_node_address             = x.x.x.138
      wsrep_provider                 = /usr/lib64/galera3/
      wsrep_sst_method               = xtrabackup-v2
      wsrep_sst_auth                 = "x:x"
      wsrep_sst_receive_address      = x.x.x.138:14444
      wsrep_slave_threads            = 8
      wsrep_cluster_name             = xx 
      wsrep_node_name                = xxx
      pid-file = /run/mysqld/
  • przemekprzemek Percona Support Engineer Percona Staff Role
    Guys, have a look at:
    Upgrading to latest PXC with Galera 3.12 should already help in this situation.
  • cibocibo Entrant Legacy User Role Beginner
    I still have the same issue with this version :


    first setting was :

    wsrep_provider_options = gcache.size=2G;gcache.keep_pages_size=100M;gcache.keep_pages_count=20

    changed to

    "wsrep_provider_options = gcache.size=2G;gcache.keep_pages_size=2G;gcache.keep_pages_count=10

    both configuration facing the same problem
    any suggestions ?
  • Kenn TakaraKenn Takara Percona Percona Staff Role
    The algorithm for gcache page cleanup was changed in 5.6.35. However, gcache will not release the pages until it is safe to do so (until the data has been safely replicated to all the nodes). Do you have very large transactions? Also, the pages are freed in order they are created, so one early transaction could block the rest from being freed up.
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.