{"id":4660,"date":"2019-08-21T13:51:03","date_gmt":"2019-08-21T05:51:03","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4660"},"modified":"2019-08-25T00:24:11","modified_gmt":"2019-08-24T16:24:11","slug":"lvreduce","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lvreduce","title":{"rendered":"lvreduce\u547d\u4ee4 – \u51cf\u5c11LVM\u903b\u8f91\u5377\u6240\u5360\u7a7a\u95f4\u5927\u5c0f"},"content":{"rendered":"\n

lvreduce\u547d\u4ee4\u7528\u4e8e\u51cf\u5c11LVM\u903b\u8f91\u5377\u5360\u7528\u7684\u7a7a\u95f4\u5927\u5c0f\u3002\u4f7f\u7528lvreduce\u547d\u4ee4\u6536\u7f29\u903b\u8f91\u5377\u7684\u7a7a\u95f4\u5927\u5c0f\u6709\u53ef\u80fd\u4f1a\u5220\u9664\u903b\u8f91\u5377\u4e0a\u5df2\u6709\u7684\u6570\u636e\uff0c\u6240\u4ee5\u5728\u64cd\u4f5c\u524d\u5fc5\u987b\u8fdb\u884c\u786e\u8ba4\u3002 <\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>lvreduce [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-L<\/td>\u6307\u5b9a\u903b\u8f91\u5377\u7684\u5927\u5c0f, \u5355\u4f4d\u4e3a\u201ckKmMgGtT\u201d\u5b57\u8282 <\/td><\/tr>
-l<\/td>\u6307\u5b9a\u903b\u8f91\u5377\u7684\u5927\u5c0f\uff08LE\u6570\uff09 <\/td><\/tr>
-f<\/td>\u5728\u4e0d\u63d0\u793a\u7684\u60c5\u51b5\u4e0b\u51cf\u5c0f\u7a7a\u95f4<\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u5c06\u903b\u8f91\u5377\u7684\u7a7a\u95f4\u5927\u5c0f\u51cf\u5c1150M\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lvreduce -L -50M \/dev\/vg1000\/lvol0 \n................  \nDo you really want to reduce lvol0? [y\/n]: y       \nReducing logical volume lvol0 to 252.00 MB     \nLogical volume lvol0 successfully resized <\/pre>\n","protected":false},"excerpt":{"rendered":"

lvreduce\u547d\u4ee4\u7528\u4e8e\u51cf\u5c11LVM\u903b\u8f91\u5377\u5360\u7528\u7684\u7a7a\u95f4\u5927\u5c0f\u3002\u4f7f\u7528lvreduce\u547d\u4ee4\u6536\u7f29\u903b\u8f91\u5377\u7684\u7a7a\u95f4\u5927\u5c0f\u6709\u53ef\u80fd\u4f1a\u5220 […]<\/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\/4660"}],"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=4660"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4660\/revisions"}],"predecessor-version":[{"id":4819,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4660\/revisions\/4819"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}