{"id":7543,"date":"2020-05-23T19:52:31","date_gmt":"2020-05-23T11:52:31","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7543"},"modified":"2020-05-23T19:52:32","modified_gmt":"2020-05-23T11:52:32","slug":"vgsplit","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/vgsplit","title":{"rendered":"vgsplit\u547d\u4ee4 – \u5c06\u7269\u7406\u5377\u79fb\u52a8\u5230\u65b0\u7684\u6216\u73b0\u6709\u7684\u5377\u7ec4\u4e2d"},"content":{"rendered":"\n

vgsplit\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u4ece\u6e90\u5377\u7ec4\uff08\u7269\u7406\u5377\uff09\u79fb\u52a8\u5230\u65b0\u7684\u6216\u73b0\u6709\u7684\u5377\u7ec4\u4e2d\u3002<\/p>\n\n\n\n

\u4f7f\u7528vgsplit\u547d\u4ee4\u5c06\u4e00\u4e2a\u6216\u591a\u4e2a\u7269\u7406\u5377\u65f6\uff0c\u79fb\u52a8\u7684\u7269\u7406\u5377\u53ef\u4ee5\u6307\u5b9a\u7269\u7406\u5377\u8def\u5f84\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7-n\u903b\u8f91\u5377\u540d\u6307\u5b9a\uff0c\u4f46\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u53ea\u79fb\u52a8\u6307\u5b9a\u903b\u8f91\u5377\u5e95\u5c42\u7684\u7269\u7406\u5377\u3002<\/p>\n\n\n\n

\u5982\u679c\u76ee\u6807\u5377\u7ec4\u540d\u79f0\u786e\u5b9e\u5b58\u5728\uff0c\u5c06\u5728\u79fb\u52a8\u7269\u7406\u5377\u4e4b\u524d\u68c0\u67e5\u5b83\u662f\u5426\u4e0e\u6e90\u5377\u7ec4\u540d\u79f0\u51b2\u7a81\u3002 \u4e0d\u80fd\u5728\u5377\u7ec4\u4e4b\u95f4\u5206\u5272\u903b\u8f91\u5377\u3002 vgsplit\u547d\u4ee4\u53ea\u79fb\u52a8\u5b8c\u6574\u7684\u7269\u7406\u5377\u3002\u6bcf\u4e2a\u73b0\u6709\u7684\u903b\u8f91\u5377\u5fc5\u987b\u5b8c\u5168\u4f4d\u4e8e\u6784\u6210\u6e90\u5377\u7ec4\u6216\u76ee\u6807\u5377\u7ec4\u7684\u7269\u7406\u5377\u4e0a\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>vgsplit [\u53c2\u6570] [\u6e90\u5377\u7ec4\u540d] [\u76ee\u6807\u5377\u7ec4\u540d] [\u7269\u7406\u5377\u8def\u5f84]<\/p>\n\n\n\n

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

-d<\/td>\u542f\u7528\u8c03\u8bd5\u6a21\u5f0f<\/td><\/tr>
-v<\/td>\u663e\u793a\u8be6\u7ec6\u4fe1\u606f<\/td><\/tr>
-l<\u6700\u5927\u903b\u8f91\u5377\u6570><\/td>\u6307\u5b9a\u5377\u7ec4\u4e2d\u6700\u5927\u7684\u903b\u8f91\u5377\u6570<\/td><\/tr>
-- -vgmeladatacopies<\u6570\u91cf><\/td>\u6307\u5b9a\u526f\u672c\u6570\u91cf<\/td><\/tr>
-M<1|2><\/td>\u6307\u5b9a\u5143\u6570\u636e\u7c7b\u578b<\/td><\/tr>
-n<\u903b\u8f91\u5377\u540d><\/td>\u6307\u5b9a\u903b\u8f91\u5377\u7684\u540d\u79f0<\/td><\/tr>
-A<y|n><\/td>\u662f\u5426\u81ea\u52a8\u5907\u4efd<\/td><\/tr>
-t<\/td>\u542f\u7528\u6d4b\u8bd5\u6a21\u5f0f<\/td><\/tr>
-p<\u6700\u5927\u7269\u7406\u5377\u6570><\/td>\u6307\u5b9a\u5377\u7ec4\u4e2d\u6700\u5927\u7684\u7269\u7406\u5377\u6570<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u5c06\u5377\u7ec4vg1\u62c6\u5206\u4e3a\u4e24\u4e2a\uff0c\u751f\u6210\u65b0\u5377\u7ec4vg2\uff0c\u8be5\u5377\u7ec4\u6210\u5458\u4e3a\/dev\/sda3\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# vgsplit vg1 vg2 \/dev\/sda3<\/pre>\n\n\n\n

\u6307\u5b9a\u5377\u7ec4\u4e2d\u6700\u5927\u7684\u7269\u7406\u5377\u6570\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# vgsplit -p 5 vg1 vg2 \/dev\/sda3<\/pre>\n\n\n\n

\u5c06\/dev\/sdg2\u4e0edev\u5206\u79bb\uff0c\u6dfb\u52a0\u5230\u4e00\u4e2a\u540d\u4e3a\u201c design\u201d\u7684\u65b0\u5377\u7ec4\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# vgsplit dev design \/dev\/sdg2<\/pre>\n","protected":false},"excerpt":{"rendered":"

vgsplit\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u4ece\u6e90\u5377\u7ec4\uff08\u7269\u7406\u5377\uff09\u79fb\u52a8\u5230\u65b0\u7684\u6216\u73b0\u6709\u7684\u5377\u7ec4\u4e2d\u3002 \u4f7f\u7528vgsplit\u547d\u4ee4\u5c06\u4e00\u4e2a\u6216\u591a\u4e2a […]<\/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\/7543"}],"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=7543"}],"version-history":[{"count":12,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7543\/revisions"}],"predecessor-version":[{"id":7761,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7543\/revisions\/7761"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}