{"id":165324,"date":"2020-10-04T12:51:43","date_gmt":"2020-10-04T04:51:43","guid":{"rendered":"http:\/\/4563.org\/?p=165324"},"modified":"2020-10-04T12:51:43","modified_gmt":"2020-10-04T04:51:43","slug":"tar-%e5%a4%87%e4%bb%bd%e6%80%bb%e6%98%af%e6%8f%90%e7%a4%ba-file-changed-as-we-read-it","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=165324","title":{"rendered":"tar \u5907\u4efd\u603b\u662f\u63d0\u793a file changed as we read it"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  tar \u5907\u4efd\u603b\u662f\u63d0\u793a file changed as we read it               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : naoh1000 <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6309\u7167 Docker \u6587\u6863\u4e2d\u5b98\u65b9\u7684\u8bf4\u6cd5\uff0c\u5907\u4efd\u5bb9\u5668\u7684\u5377\u76f4\u63a5 tar \u6253\u5305 \/var\/lib\/docker\/volumes\/ \u4e0b\u7684\u76ee\u5f55\u5c31\u884c\uff0c\u4f46\u6211\u5728\u6253\u5305\u542b\u6709 MySQL \u7684\u5377\u65f6\u603b\u662f\u63d0\u793a<\/p>\n<p>tar: \/var\/lib\/docker\/volumes\/mysql-data\/_data\/mysql.ibd: file changed as we read it<\/p>\n<p>\u8bf7\u95ee\u4f1a\u5bf9\u6570\u636e\u5b8c\u6574\u6027\u4ea7\u751f\u5f71\u54cd\u5417\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>11<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3642940\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : codehz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f1a\uff0c\u4f60\u9700\u8981\u505c\u6b62\u8fd0\u884c\u7684\u65f6\u5019\u5907\u4efd<br \/>\u76f4\u63a5\u5907\u4efd\u6b63\u5728\u8fd0\u884c\u7684\u6570\u636e\u5e93\u6587\u4ef6\u4e5f\u592a\u5fc3\u5927\u4e86\u5427\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3642941\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : BrettD <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6587\u4ef6\u8fd8\u5728\u53d8\u52a8\u7684\u65f6\u5019\u4f60\u5c31\u5907\u4efd\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3642942\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : qwerthhusn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4eec\u7528\u7684\u963f\u91cc\u4e91 HBR\uff0c\u6dfb\u52a0\u5b9a\u65f6\u4efb\u52a1\u7684\u65f6\u5019\u53ef\u4ee5\u6307\u5b9a\u6267\u884c\u524d\u548c\u6267\u884c\u540e\u7684\u547d\u4ee4\uff0c\u53ef\u4ee5\u5148\u628a\u5bb9\u5668\u505c\u6389                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3642943\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : naoh1000 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @codehz <br \/>@qwerthhusn <br \/>\u628a\u5bb9\u5668\u505c\u6389\u4f1a\u5bfc\u81f4\u670d\u52a1\u4e0d\u53ef\u7528\uff0c\u800c\u6211\u4eec\u7684\u670d\u52a1 24 \u5c0f\u65f6\u90fd\u6709\u4eba\u5728\u7528\uff0c\u76ee\u524d\u6211\u4eec\u9009\u62e9\u7684\u662f\u5907\u4efd\u811a\u672c\u6253\u5305 Volumes \u524d\u5148\u6267\u884c\u4e00\u6b21 mysqldump \u3002\u8bf7\u95ee\u6709\u6ca1\u6709\u66f4\u597d\u7684\u65b9\u6cd5\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3642944\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : iseki <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             emmm \u6211\u8bb0\u5f97 PostgreSQL \u662f\u5141\u8bb8\u5728\u542f\u7528 WAL \u65e5\u5fd7\u7684\u60c5\u51b5\u4e0b\u76f4\u63a5\u7528 tar \u5907\u4efd\u7684\uff0cMySQL \u4f60\u770b\u770b\u5e94\u8be5\u4e5f\u6709\u76f8\u5173                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3642945\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 12101111 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u8d77\u6765\u4f60\u9700\u8981 Cow \u6587\u4ef6\u7cfb\u7edf.\u53ef\u4ee5\u76f4\u63a5\u521b\u5efa\u5feb\u7167,zvol \u8fd8\u53ef\u4ee5\u5728\u6587\u4ef6\u7cfb\u7edf\u662f ext4 \u7684\u60c5\u51b5\u4e0b\u5728\u5757\u5c42\u9762\u521b\u5efa\u5feb\u7167                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3642946\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chentingjun <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u9700\u8981 xtrabackup\uff0c\u53ef\u4ee5\u5728\u7ebf\u5907\u4efd innodb \u7684\u8868\uff0cmyisam \u9700\u8981\u52a0\u5236\u5ea6\u9501\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3642947\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chentingjun <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @chentingjun \u5236\u5ea6==&gt; \u53ea\u8bfb                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3642948\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : msg7086 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u8981\u670d\u52a1\u5728\u7ebf\u7684\u8bdd\uff0c\u53ef\u4ee5\u8003\u8651\u4e3b\u4ece\u62c9\u4e00\u4e2a\u5907\u673a\u51fa\u6765\uff0c\u7136\u540e\u628a\u5907\u673a\u505c\u4e86\u5907\u4efd\u3002<br \/>\u6211\u624b\u91cc\u5c0f\u578b\u751f\u4ea7\u673a\u90fd\u662f\u8fd9\u4e48\u641e\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3642949\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yanqiyu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u4f7f\u7528 COW \u7684\u60c5\u51b5\u4e0b\u5f88\u96be\u505a\u5230\u4fdd\u8bc1\u4e00\u81f4\u6027\u7684\u5907\u4efd\u6b63\u5728\u88ab\u8bfb\u5199\u7684\u6587\u4ef6\uff0c\u5efa\u8bae\u8003\u8651\u4e0b\u6b21\u8ba1\u5212\u7ef4\u62a4\u7684\u65f6\u5019\u8fc1\u79fb\u4e00\u4e0b\uff08\u73b0\u5728\u5c31\u5fcd\u7740\uff0c\u5907\u4efd\u4e0d\u4fdd\u8bc1\u4e00\u81f4\u6027\u5c31\u5f53\u65ad\u4e86\u6b21\u7535\uff09<\/p>\n<p>\u4e4b\u540e\u4f7f\u7528\u7684\u6587\u4ef6\u7cfb\u7edf \/\u5757\u7ea7\u5b58\u50a8\u7ba1\u7406\u53ef\u4ee5\u8003\u8651\u6bd4\u5982 LVM,ZVol,zfs,btrfs \u7b49\u7b49\u53ef\u4ee5\u5b9e\u73b0 COW \u7684\u65b9\u6848\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3642950\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : julyclyde <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u5c31\u662f\u5178\u578b\u7684\uff1a<br \/>\u672c\u6765\u6ca1\u5565\u4e8b\uff0c\u52a0\u4e0a docker \u4e4b\u540e\u53c8\u6ca1\u4e8b\u627e\u4e8b<\/p>\n<p>mysql \u7684\u5907\u4efd\u5e94\u8be5\u4f7f\u7528 mysqldump &#8211;single-transaction \u6216\u8005 xtrabackup \u5de5\u5177<br \/>\u548c volume \u57fa\u672c\u6ca1\u6709\u4efb\u4f55\u5173\u7cfb                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>tar \u5907\u4efd\u603b\u662f\u63d0\u793a file c&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/165324"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=165324"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/165324\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=165324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=165324"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=165324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}