{"id":7536,"date":"2020-05-23T19:51:37","date_gmt":"2020-05-23T11:51:37","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7536"},"modified":"2020-05-23T19:51:38","modified_gmt":"2020-05-23T11:51:38","slug":"vgimportclone","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/vgimportclone","title":{"rendered":"vgimportclone\u547d\u4ee4 – \u5bfc\u5165\u5e76\u91cd\u547d\u540d\u590d\u5236\u7684\u5377\u7ec4"},"content":{"rendered":"\n

vgimportclone\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u5bfc\u5165\u5e76\u91cd\u547d\u540d\u590d\u5236\u7684\u5377\u7ec4\uff0c\u8fd9\u6709\u70b9\u7c7b\u786c\u4ef6\u5feb\u7167\u3002<\/p>\n\n\n\n

\u590d\u5236\u7684\u5377\u7ec4\u548c\u7269\u7406\u5377\u5728\u4e0e\u539f\u59cb\u5377\u7ec4\u548c\u7269\u7406\u5377\u5171\u5b58\u4e4b\u524d\u4e0d\u80fd\u4f7f\u7528\u3002vgimportclone\u547d\u4ee4\u91cd\u547d\u540d\u4e0e\u6307\u5b9a\u7269\u7406\u5377\u5173\u8054\u7684\u5377\u7ec4\uff0c\u5e76\u66f4\u6539\u5173\u8054\u7684\u5377\u7ec4\u548c\u7269\u7406\u5377uuid\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>vgimportclone [\u53c2\u6570] [\u7269\u7406\u5377] <\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-i<\/td>\u5bfc\u5165\u4e4b\u524d\u5bfc\u51fa\u7684\u5377\u7ec4<\/td><\/tr>
-n<\u5feb\u7167\u5377\u7ec4\u540d><\/td>\u6307\u5b9a\u5feb\u7167\u5377\u7ec4\u540d\u79f0\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5feb\u7167\u5377\u7ec4\u5c06\u88ab\u91cd\u547d\u540d\u4e3a\u539f\u6765\u7684\u540d\u79f0\u52a0\u4e0a\u4e00\u4e2a\u6570\u5b57\u540e\u7f00\uff0c\u4ee5\u907f\u514d\u91cd\u590d\u547d\u540d<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u5c06\u7269\u7406\u5377\/dev\/sda5\u3001\/dev\/sda6\u548c\/dev\/sda7\u5bfc\u5165\u5e76\u91cd\u547d\u540d\u590d\u5236\u7684\u5377\u7ec4\u540d\u79f0\u4e3avg_linuxcool\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# vgimportclone -n vg_linuxcool \/dev\/sda5 \/dev\/sda6 \/dev\/sda7<\/pre>\n\n\n\n

\u8981\u5c06\u4e0e\/dev\/sdc\u548c\/dev\/sdd\u5173\u8054\u7684\u5377\u7ec4vg00\u91cd\u547d\u540d\u4e3avg00_snap\uff0c\u5e76\u66f4\u6539\u5173\u8054\u7684\u5377\u7ec4\u548c\u7269\u7406\u5377\u7684uuid\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# vgimportclone -n vg00_snap \/dev\/sdc \/dev\/sdd<\/pre>\n\n\n\n

\u5bfc\u5165\u6307\u5b9a\u5377\u7ec4\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# vgimportclone -i vg_linuxcool \/dev\/sda5<\/pre>\n","protected":false},"excerpt":{"rendered":"

vgimportclone\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u5bfc\u5165\u5e76\u91cd\u547d\u540d\u590d\u5236\u7684\u5377\u7ec4\uff0c\u8fd9\u6709\u70b9\u7c7b\u786c\u4ef6\u5feb\u7167\u3002 \u590d\u5236\u7684\u5377\u7ec4\u548c\u7269\u7406\u5377\u5728\u4e0e\u539f […]<\/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\/7536"}],"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=7536"}],"version-history":[{"count":8,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7536\/revisions"}],"predecessor-version":[{"id":7760,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7536\/revisions\/7760"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}