Browse Source

add dump live system

master
Markus Bergholz 3 years ago
parent
commit
bb3ad7f794
  1. 25
      til.md

25
til.md

@ -355,3 +355,28 @@ that can approximate F with error less than E.
With two inputs (x1 and x2), where x1 values are from range 0 to 0.5 and x2 values are from range to 0 to 1000. When x1 is changing by 0.5, the change is 100%, and a
change of x2 by 0.5 is only 0.05%.
## puppet
* list all nodes
puppet cert list --all
* remove a node
puppet cert clean <node name>
* add / accept a node
puppet cert sign <node name>
# MySQL / MariaDB
dump a live system without blocking
* for MyISAM
`nice -n 19 ionice -c2 -n 7 mysqldump --lock-tables=false <dbname> > dump.sql`
* for InnoDB
`nice -n 19 ionice -c2 -n 7 mysqldump --single-transaction=TRUE <dbname> > dump.sql`
Loading…
Cancel
Save