{"id":1461,"date":"2018-04-20T14:50:48","date_gmt":"2018-04-20T06:50:48","guid":{"rendered":"http:\/\/www.eumz.com\/?p=1461"},"modified":"2018-04-20T14:50:48","modified_gmt":"2018-04-20T06:50:48","slug":"linux-lvm%e5%88%86%e5%8c%ba%e6%89%a9%e5%ae%b9%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.wxcn.com\/?p=1461","title":{"rendered":"Linux LVM\u5206\u533a\u6269\u5bb9\u65b9\u6cd5"},"content":{"rendered":"<p>\u73b0\u6709\u4e00\u53f0Linux\u670d\u52a1\u5668\uff0c\u91c7\u7528LVM\u5206\u533a\uff0c\u73b0\u5728\u65b0\u589e\u4e00\u575710G\u786c\u76d8\uff0c\u9700\u5c0610G\u786c\u76d8\u6269\u5bb9\u7ed9\/data\u5206\u533a\uff0c\u64cd\u4f5c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p>1\u3001vgdisplay\u67e5\u770bvg\uff0cvg name\u4e3aVolGroup<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wxcn.com\/wp-content\/uploads\/2018\/04\/a34689b0a848e969e92e8ae58860ecf6.png\" \/><\/p>\n<p>2\u3001fdisk -l\u67e5\u770b\u65b0\u589e\u786c\u76d8\u4e3asdb\uff0c<br \/>\npvcreat \/dev\/sdb<br \/>\npvdisplay\u67e5\u770bpv<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wxcn.com\/wp-content\/uploads\/2018\/04\/b8b202452b91813275b0ea788cbbf7c2.png\" \/><\/p>\n<p>3\u3001df -h<br \/>\n\u67e5\u770b\/data\u6240\u5728\u7684\u903b\u8f91\u5377\u7684\u540d\u79f0<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wxcn.com\/wp-content\/uploads\/2018\/04\/6e72ae88874f729cb162da8930ded72a.png\" \/><\/p>\n<p>4\u3001\u5c06\/dev\/sdb\u589e\u52a0\u5230vg\u91cc\uff0cvg name\u4e3aVolGroup<br \/>\n\u67e5\u770bvg\uff0cvg\u5bb9\u91cf\u5df2\u7ecf\u753139.8G\u53d8\u4e3a49.8G<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wxcn.com\/wp-content\/uploads\/2018\/04\/1e39106f0f98506cba1c15d5cbb96f99.png\" \/><\/p>\n<p>5\u3001lvextend -L +9.8G \u5c069.8G\u589e\u52a0\u5230\u6587\u4ef6\u7cfb\u7edf<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wxcn.com\/wp-content\/uploads\/2018\/04\/509ca3cf230646206db084a36ed162ab.png\" \/><\/p>\n<p>6\u3001df -h\u540e\u5bb9\u91cf\u6ca1\u53d8\uff0c\u8fd8\u9700\u8981<br \/>\n#e2fsck -f \/dev\/mapper\/VolGroup-lv_root<br \/>\n#resize2fs \/dev\/mapper\/VolGroup-lv_root<\/p>\n<p>7\u3001df -h\u5df2\u7ecf\u53ef\u4ee5\u770b\u5230\/data\u5df2\u7ecf\u753120G\u53d8\u4e3a30G<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wxcn.com\/wp-content\/uploads\/2018\/04\/32710ec8dfc80a9f19f0c66070c669af.png\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u73b0\u6709\u4e00\u53f0Linux\u670d\u52a1\u5668\uff0c\u91c7\u7528LVM\u5206\u533a\uff0c\u73b0\u5728\u65b0\u589e\u4e00\u575710G\u786c\u76d8\uff0c\u9700\u5c0610G\u786c\u76d8\u6269\u5bb9\u7ed9\/data\u5206\u533a\uff0c\u64cd\u4f5c\u6b65\u9aa4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[183,187],"class_list":["post-1461","post","type-post","status-publish","format-standard","hentry","category-operating-system","tag-linux-2","tag-lvm"],"_links":{"self":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/posts\/1461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1461"}],"version-history":[{"count":0,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/posts\/1461\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}