{"id":7534,"date":"2020-05-23T19:51:22","date_gmt":"2020-05-23T11:51:22","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7534"},"modified":"2020-05-23T19:51:35","modified_gmt":"2020-05-23T11:51:35","slug":"vgimport","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/vgimport","title":{"rendered":"vgimport\u547d\u4ee4 – \u5bfc\u5165\u5377\u7ec4"},"content":{"rendered":"\n

vgimport\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u5bfc\u5165\u5377\u7ec4\u3002<\/p>\n\n\n\n

\u4ece\u4e0d\u540c\u7684\u7cfb\u7edf\u79fb\u52a8\u5bfc\u51fa\u7269\u7406\u5377\u4e4b\u540e\uff0cvgimport\u547d\u4ee4\u914d\u5408\u76f8\u5e94map\u6587\u4ef6\u53ef\u4ee5\u8ba9\u7cfb\u7edf\u518d\u6b21\u8ba4\u51fa\u5bfc\u51fa\u7684\u5377\u7ec4\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>vgimport [\u53c2\u6570] [\u5377\u7ec4\u540d]<\/p>\n\n\n\n

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

-a<\/td>\u5bfc\u5165\u6240\u6709\u5df2\u7ecf\u5b58\u5728\u7684\u5377\u7ec4<\/td><\/tr>
-s<\/td>\u626b\u63cf\u4e0e\u7cfb\u7edf\u8fde\u63a5\u7684\u6bcf\u4e2a\u78c1\u76d8\uff0c\u5e76\u4f7f\u7528\u5177\u6709\u5339\u914d\u5377\u7ec4\u4fe1\u606f\u7684\u7269\u7406\u5377\u66f4\u65b0\/etc\/lvmtab\u6587\u4ef6\uff0c\u59cb\u7ec8\u4e0e-m\u4e00\u8d77\u4f7f\u7528<\/td><\/tr>
-m<\/td>\u4ea7\u751f\u4e00\u4e2amap\u6587\u4ef6<\/td><\/tr>
-v<\/td>\u663e\u793a\u8be6\u7ec6\u8fc7\u7a0b<\/td><\/tr>
-N<\/td>\u5728\/etc\/lvmtab\u6587\u4ef6\u4e2d\u586b\u5145\u6301\u4e45\u6027\u8bbe\u5907\u4e13\u7528\u6587\u4ef6\u6765\u914d\u7f6e\u5377\u7ec4\uff0c\u53ea\u80fd\u4e0e-s\u4e00\u8d77\u4f7f\u7528<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u5bfc\u5165\u5377\u7ec4vgl\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# vgimport vgl<\/pre>\n\n\n\n

\u4f7f\u7528map\u6587\u4ef6\u5bfc\u5165\u5e76\u81ea\u52a8\u641c\u7d22\u76f8\u5e94\u7684\u786c\u76d8\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# vgimport \u2013s \u2013m \/tmp\/linuxcool_vg.map \/dev\/linuxcool_vg<\/pre>\n\n\n\n

\u663e\u793a\u8be6\u7ec6\u64cd\u4f5c\u8fc7\u7a0b\u8fdb\u884c\u5377\u7ec4\u5bfc\u5165\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# vgimport -v -s -m \/tmp\/linuxcool_vg.map \/dev\/linuxcool_vg<\/pre>\n","protected":false},"excerpt":{"rendered":"

vgimport\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u5bfc\u5165\u5377\u7ec4\u3002 \u4ece\u4e0d\u540c\u7684\u7cfb\u7edf\u79fb\u52a8\u5bfc\u51fa\u7269\u7406\u5377\u4e4b\u540e\uff0cvgimport\u547d\u4ee4\u914d\u5408\u76f8\u5e94map […]<\/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\/7534"}],"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=7534"}],"version-history":[{"count":8,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7534\/revisions"}],"predecessor-version":[{"id":7577,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7534\/revisions\/7577"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}