{"id":7530,"date":"2020-05-23T19:50:59","date_gmt":"2020-05-23T11:50:59","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7530"},"modified":"2020-05-23T19:51:00","modified_gmt":"2020-05-23T11:51:00","slug":"vgcfgrestore","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/vgcfgrestore","title":{"rendered":"vgcfgrestore\u547d\u4ee4 – \u8fd8\u539f\u5377\u7ec4\u63cf\u8ff0\u7b26\u533a\u57df"},"content":{"rendered":"\n
vgcfgrestore\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u4ece\u4e00\u4e2a\u6587\u4ef6\u5907\u4efd\u4e2d\u6062\u590d\u5377\u7ec4\u7684\u5143\u6570\u636e\u3002\u53ef\u4ee5\u9644\u52a0\u76f8\u5173\u53c2\u6570\u6765\u6307\u5b9a\u5907\u4efd\u6587\u4ef6\uff0c\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5907\u4efd\u6587\u4ef6\uff0c\u4f7f\u7528\u6700\u8fd1\u7684\u4e00\u6b21\u3002\u4e5f\u53ef\u4ee5\u4f7f\u7528\u9644\u52a0\u53c2\u6570\u5217\u51fa\u53ef\u7528\u7684\u5377\u7ec4\u540d\u5907\u4efd\u548c\u5f52\u6863\u6587\u4ef6\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>vgcfgrestore [\u53c2\u6570] [\u5377\u7ec4\u540d]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u6062\u590d\u5377\u7ec4vg_linuxcool\u7684\u5143\u6570\u636e\uff1a<\/p>\n\n\n\n \u4f7f\u7528\u6307\u5b9a\u7528\u4e8e\u6062\u590d\u5143\u6570\u636e\u5907\u4efd\u6587\u4ef6\uff1a<\/p>\n\n\n\n \u5217\u51fa\u6307\u5b9a\u5377\u7ec4\u540d\u4e0b\u7684\u5907\u4efd\uff1a<\/p>\n\n\n\n vgcfgrestore\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u4ece\u4e00\u4e2a\u6587\u4ef6\u5907\u4efd\u4e2d\u6062\u590d\u5377\u7ec4\u7684\u5143\u6570\u636e\u3002\u53ef\u4ee5\u9644\u52a0\u76f8\u5173\u53c2\u6570\u6765\u6307\u5b9a\u5907\u4efd\u6587\u4ef6\uff0c\u5982\u679c […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7530"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=7530"}],"version-history":[{"count":10,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7530\/revisions"}],"predecessor-version":[{"id":7759,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7530\/revisions\/7759"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-l<\/td> \u5217\u51fa\u6709\u5173\u5377\u7ec4\u5143\u6570\u636e\u5907\u4efd\u7684\u6587\u4ef6\u548c\u6709\u5173\u5377\u7ec4\u7684\u5f52\u6863\u6587\u4ef6<\/td><\/tr> -n<\u5377\u7ec4\u540d><\/td> \u6307\u5b9a\u5377\u7ec4\u540d<\/td><\/tr> -f<\u6587\u4ef6\u540d><\/td> \u6307\u5b9a\u7528\u4e8e\u6062\u590d\u7684LVM\u5143\u6570\u636e\u5907\u4efd\u6587\u4ef6<\/td><\/tr> -- -force<\/td> \u4ee5\u7cbe\u7b80\u6c60\u5377\u6062\u590d\u5143\u6570\u636e\uff08\u4e0d\u8fdb\u884c\u4efb\u4f55\u6821\u9a8c\uff0c\u614e\u7528\uff09<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# vgcfgrestore vg_linuxcool<\/pre>\n\n\n\n
[root@linuxcool ~]# vgcfgrestore \/dev\/vg0 -f \/archive\/vg0_backup.vg<\/pre>\n\n\n\n
[root@linuxcool ~]# vgcfgrestore -l -n vg_linuxcool<\/pre>\n","protected":false},"excerpt":{"rendered":"