{"id":7524,"date":"2020-05-23T19:52:56","date_gmt":"2020-05-23T11:52:56","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7524"},"modified":"2020-05-23T19:52:57","modified_gmt":"2020-05-23T11:52:57","slug":"pvresize","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/pvresize","title":{"rendered":"pvresize\u547d\u4ee4 – \u8c03\u6574\u4e00\u4e2a\u5377\u7ec4\u4e2d\u7684\u7269\u7406\u5377\u7684\u5927\u5c0f"},"content":{"rendered":"\n
pvresize\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u8c03\u6574\u4e00\u4e2a\u5377\u7ec4\u4e2d\u7684\u7269\u7406\u5377\u7684\u5927\u5c0f\u3002pvresize\u547d\u4ee4\u53ef\u4ee5\u8c03\u6574\u53ef\u80fd\u5df2\u7ecf\u5728\u5377\u7ec4\u4e2d\u7684\u7269\u7406\u5377\u7684\u5927\u5c0f\uff0c\u5e76\u5728\u5176\u4e2d\u5206\u914d\u6d3b\u52a8\u7684\u903b\u8f91\u5377\u3002<\/p>\n\n\n\n
\u5bf9\u4e8e\u5b58\u5728\u7269\u7406\u5377\u7684\u8bbe\u5907\uff0c\u5728\u6269\u589e\u5176\u5bb9\u91cf\u4e4b\u540e\u6216\u7f29\u5c0f\u5176\u5bb9\u91cf\u4e4b\u524d\uff0c\u5fc5\u987b\u4f7f\u7528pvresize\u547d\u4ee4\u5bf9\u5e94\u5730\u589e\u52a0\u6216\u51cf\u5c11\u7269\u7406\u5377\u7684\u5927\u5c0f\u3002\u5982\u679c\u7269\u7406\u5377\u5df2\u5206\u914d\u7269\u7406\u533a\u57df\u8d85\u8fc7\u4e86\u547d\u4ee4\u6307\u5b9a\u7684\u65b0\u5927\u5c0f\u8fb9\u754c\uff0cpvresize\u547d\u4ee4\u4f1a\u62d2\u7edd\u5c06\u7269\u7406\u5377\u7f29\u5c0f\u3002\u82e5\u78c1\u76d8\u7a7a\u95f4\u8db3\u591f\uff0c\u53ef\u901a\u8fc7pvresize\u547d\u4ee4\u5c06\u7269\u7406\u533a\u57df\u91cd\u65b0\u5206\u914d\u81f3\u522b\u7684\u5377\u7ec4\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n\n\n\n
\u5982\u679c\u8fd0\u884cpvresize\u547d\u4ee4\u4e0d\u5e26\u53c2\u6570\uff0c\u5c31\u4f1a\u5c06\u7269\u7406\u5377\u7684\u5927\u5c0f\u8c03\u6574\u4e3a\u64cd\u4f5c\u7cfb\u7edf\u4e3a\u5e95\u5c42\u5206\u533a\u62a5\u544a\u7684\u5927\u5c0f\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>pvresize [\u53c2\u6570] [\u7269\u7406\u5377]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u8c03\u6574\u7269\u7406\u5377\/dev\/sda5\u7684\u5927\u5c0f\u4e3a\u78c1\u76d8\uff1a<\/p>\n\n\n\n \u8c03\u6574\u7269\u7406\u5377\/dev\/sda5\u7684\u5927\u5c0f\u4e3a40GB\uff1a<\/p>\n\n\n\n \u6d4b\u8bd5\u6a21\u5f0f\u4e0b\u8fd0\u884c\u8c03\u6574\uff1a<\/p>\n\n\n\n pvresize\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u8c03\u6574\u4e00\u4e2a\u5377\u7ec4\u4e2d\u7684\u7269\u7406\u5377\u7684\u5927\u5c0f\u3002pvresize\u547d\u4ee4\u53ef\u4ee5\u8c03\u6574\u53ef\u80fd\u5df2\u7ecf\u5728\u5377\u7ec4\u4e2d\u7684\u7269\u7406\u5377 […]<\/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\/7524"}],"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=7524"}],"version-history":[{"count":7,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7524\/revisions"}],"predecessor-version":[{"id":7762,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7524\/revisions\/7762"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-d<\/td> \u8c03\u8bd5\u6a21\u5f0f<\/td><\/tr> -h<\/td> \u5e2e\u52a9\u4fe1\u606f<\/td><\/tr> -t<\/td> \u4ee5\u6d4b\u8bd5\u6a21\u5f0f\u8fd0\u884c<\/td><\/tr> -v<\/td> \u5236\u5b9a\u53d1\u9001\u6d88\u606f\u7684\u8be6\u7ec6\u7b49\u7ea7<\/td><\/tr> -y<\/td> \u603b\u662f\u9009\u62e9\u786e\u5b9a\uff08\u8c28\u614e\uff09<\/td><\/tr> -- -reportformat basic|json<\/td> \u91cd\u5199\u5f53\u524d\u62a5\u544a\u7684\u8f93\u51fa\u683c\u5f0f<\/td><\/tr> -- -setphysicalvolumesize<\u5377\u5927\u5c0f><\/td> \u8986\u76d6\u7269\u7406\u5377\u81ea\u52a8\u68c0\u6d4b\u5230\u7684\u5c3a\u5bf8<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# pvresize \/dev\/sda5<\/pre>\n\n\n\n
[root@linuxcool ~]# pvresize --setphysicalvolumesize 40G \/dev\/sda5<\/pre>\n\n\n\n
[root@linuxcool ~]# pvresize -t \/dev\/sda2<\/pre>\n","protected":false},"excerpt":{"rendered":"