.. _config-mysqldump-lvm: mysqldump LVM Provider Configuration [mysqldump-lvm] ==================================================== Backs up one or more MySQL databases by creating an LVM snapshot and then starting a instance of MySQL on top of it to then perform a mysqldump. This effectively produces a non-blocking logical backup. [mysql-lvm] ----------- **snapshot-size** = The size of the snapshot itself. By default it is 20% of the size of the MySQL LVM mount or the remaining free-space in the Volume Group (if there is less than 20% available) up to 15GB. If snapshot-size is defined, the number represents the size of the snapshot in megabytes. **snapshot-name** = The name of the snapshot, the default being the name of the MySQL LVM volume + "_snapshot" (ie Storage-MySQL_snapshot) **snapshot-mountpoint** = Where to mount the snapshot. By default a randomly generated directory under /tmp is used. **innodb-recovery** = yes | no (default: no) Whether or not to run an InnoDB recovery operation. This avoids needing to do so during a restore, though will make the backup process itself take longer. **lock-tables** = yes | no (default: yes) Whether or not to run a FLUSH TABLES WITH READ LOCK to grab various bits of information (such as the binary log name and position). Disabling this requires that binary logging is disabled and InnoDB is being used exclusively. Otherwise, it is possible that the backup could contain crashed tables. **extra-flush-tables** = yes | no (default: yes) Whether or not to run a FLUSH TABLES before running the full FLUSH TABLES WITH READ LOCK. Should make the FLUSH TABLES WITH READ LOCK operation a bit faster. [mysqld] -------- **mysqld-exe** = [, ...] (default: mysqld in PATH, /usr/libexec/mysqld) This provides a list of locations where the mysqld process to use might be found. This is searched in order of entries in this list. **user** = The --user parameter to use with mysqld. **innodb-buffer-pool-size** = (default: 128M) How large to size the innodb-buffer-pool-size. **tmpdir** = (default: system tempdir) Path to the --tmpdir that mysqld should use. **log-error** = (default: tempdir/holland_lvm.log) Define path for mysqld's error log. The default location get cleaned up by Holland after the backup is complete. This settings allows the user to define the log file in another location and can be useful for debugging issue with the MySQL instance running on the snapshot. .. versionadded:: 1.0.9 [mysqldump] ----------- mysqldump-lvm supports almost all of the options from the mysqldump plugin. --master-data is not supported, as the mysqld process will not read binary logs, so this plugin will automatically disable bin-log-position, if set. Binary log information from SOHW MASTER STATUS and SHOW SLAVE STATUS is recorded in the ${backup_directory}/backup.conf file under the [mysql:replication] section. .. include:: compression.txt .. include:: mysqlconfig.txt