{"id":124,"date":"2007-01-28T18:07:00","date_gmt":"2007-01-28T18:07:00","guid":{"rendered":"http:\/\/blog.trungson.com\/?p=124"},"modified":"2007-01-28T18:07:00","modified_gmt":"2007-01-28T18:07:00","slug":"mysql-replication-a-full-disk","status":"publish","type":"post","link":"http:\/\/blog.trungson.com\/?p=124","title":{"rendered":"MySQL replication &amp; a full disk"},"content":{"rendered":"<p>To avoid the nasty mess because of a full hard drive, make sure your log files are in control. Things run really wild without diskspace!<\/p>\n<p>If you&#8217;re running MySQL replication, run &#8220;PURGE MASTER LOGS TO &#8216;yourbinlogname-bin.00x'&#8221; or &#8220;PURGE MASTER LOGS BEFORE &#8216;2007-05-30 10:10:10&#8217;;&#8221; to safely remove the logs before X. Make sure it&#8217;s a number at or before the active log file shown in &#8220;SHOW MASTER STATUS&#8221;. You can run this safely with active replication.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To avoid the nasty mess because of a full hard drive, make sure your log files are in control. Things run really wild without diskspace! If you&#8217;re running MySQL replication, run &#8220;PURGE MASTER LOGS TO &#8216;yourbinlogname-bin.00x&#8217;&#8221; or &#8220;PURGE MASTER LOGS BEFORE &#8216;2007-05-30 10:10:10&#8217;;&#8221; to safely remove the logs before X. Make sure it&#8217;s a number [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/124"}],"collection":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=124"}],"version-history":[{"count":0,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/124\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=124"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}