<\/path> \n<\/svg> <\/p>\n\u80cc\u666f\uff1a<\/h2>\n
\u9ed8\u8ba4\u7684\u670d\u52a1\u5668\/tmp\u76ee\u5f55\u7a7a\u95f4\u592a\u5c0f\u4e86\uff0c\u52a8\u4e0d\u52a8\u5c31\u5199\u6ee1\u4e86\u3002\u81ea\u5df1\u8c03\u6574\u4e0b\u3002<\/p>\n
1\u3001\u67e5\u770b\/tmp\u5927\u5c0f \uff0c\u89c1\u4e0b\u56fe\u3002<\/h3>\n
\u53ea\u6709\u53ef\u601c\u76841G\u3002\u540c\u65f6\u53d1\u73b0\u672c\u673a\u7684\u78c1\u76d8\u662f\u901a\u8fc7lvm\u7ba1\u7406\u7684\u3002
<\/p>\n
2\u3001\u67e5\u770bvg\u662f\u5426\u6709\u53ef\u7528\u7a7a\u95f4 \uff0c\u5982\u4e0b\u56fe\u3002<\/h3>\n
\u53d1\u73b0\u53ef\u7528\u7a7a\u95f4\u662f0.
\u6240\u4ee5\u8c03\u6574\u7684\u601d\u8def\u662f\uff1a\u51cf\u5c0f\u67d0\u4e2alv\u7684\u5bb9\u91cf\uff0c\u4f7fvg\u6709\u53ef\u7528\u7a7a\u95f4\u3002\u7136\u540e\u589e\u52a0\/tmp\u6240\u5728\u7684\u76ee\u5f55\u7684lv\u5bb9\u91cf\u3002
<\/p>\n
3\u3001\u67e5\u770b\u5f53\u524dlv \uff0c\u547d\u4ee4 lvdisplay ,\u5982\u4e0b\u56fe\u3002<\/h3>\n
\u53d1\u73b0 \/dev\/VolGroup00\/LogVol-da1 \u8fd9\u4e2alv\u6bd4\u8f83\u5927 \u3002\u51cf\u5c0f\u4ed6\u7684\u5bb9\u91cf\u52302000G \u3002
<\/p>\n
4\u3001 umount\u76ee\u5f55<\/h3>\n
\u7531\u4e8e\/dev\/VolGroup00\/LogVol-da1 \u8fd9\u4e2alv\u662f\u6302\u8f7d\u5230\/da1\u4e0b
umount \/dev\/VolGroup00\/LogVol-da1 ,\u63d0\u793a Device is busy \u3002\u5f53\u524d\u5e94\u8be5\u6709\u7a0b\u5e8f\u6b63\u5728\u4f7f\u7528\u8be5\u76ee\u5f55\u3002<\/p>\n
fuser -m -v -i -k \/dev\/VolGroup00\/LogVol-da1 \u6740\u6389\u6240\u6709\u4f7f\u7528 \/da1\u8fd9\u4e2a\u76ee\u5f55\u7684\u7a0b\u5e8f\u3002\u8bf7\u786e\u4fdd\u7a0b\u5e8f\u53ef\u4ee5\u88ab\u6740\u6389 \u3002<\/p>\n
\u7136\u540e\u518d\u91cd\u65b0umount \u6210\u529f \u3002<\/p>\n
5\u3001 \u51cf\u5c0f\/dev\/VolGroup00\/LogVol-da1 \u52302000G<\/h3>\n
\u51cf\u5c11lv\u7a7a\u95f4\u7684\u64cd\u4f5c\u662f\u6709\u98ce\u9669\u7684\uff0c\u64cd\u4f5c\u4e4b\u524d\u4e00\u5b9a\u8981\u505a\u597d\u5907\u4efd\uff0c\u4ee5\u514d\u6570\u636e\u4e22\u5931\u3002
\u8981\u51cf\u5c11\u4e00\u4e2alv\u7684\u7a7a\u95f4\uff0c\u5fc5\u987b\u5148\u51cf\u5c11\u4e4b\u4e0a\u7684\u6587\u4ef6\u7cfb\u7edf\u7684\u5927\u5c0f\u3002
\u5177\u4f53\u64cd\u4f5c\u987a\u5e8f\u662f\uff1a\u68c0\u67e5\u6587\u4ef6\u7cfb\u7edf\uff0c\u51cf\u5c11\u6587\u4ef6\u7cfb\u7edf\u5927\u5c0f\uff0c\u51cf\u5c11lv\u5927\u5c0f<\/p>\n
\u4f9d\u6b21\u6267\u884c\u4e0b\u9762\u547d\u4ee4 \u3002
fsck -f \/dev\/VolGroup00\/LogVol-da1
resize2fs \/dev\/VolGroup00\/LogVol-da1 2000G
lvreduce -L 2000G \/dev\/VolGroup00\/LogVol-da1 <\/p>\n
\u6216\u8005\u75281\u6761\u547d\u4ee4 lvreduce -L 2000G -f -r \/dev\/VolGroup00\/LogVol-da1 \u3002
\u8fd9\u4e2a\u65f6\u5019\uff0c\u518d\u6267\u884c\u4e0bvgdisplay,\u53d1\u73b0vg\u5df2\u7ecf\u6709\u53ef\u7528\u7a7a\u95f4\u4e86\u3002\u9700\u8981\u4ece\u589e\u52a0\u7684\u7a7a\u95f4\u91cc\u62ff\u51fa\u4e00\u90e8\u5206\u5206\u7ed9\/tmp\u76ee\u5f55\u3002\u5982\u4e0b\u56fe\u3002<\/p>\n
6\u3001\u589e\u52a0\/tmp\u6240\u5728lv\u7684\u5bb9\u91cf \u3002<\/h3>\n
\u4f9d\u6b21\u6267\u884c\u4e0b\u9762\u547d\u4ee4\uff1a
lvextend -L +30G \/dev\/VolGroup00\/LogVol01
resize2fs -f \/dev\/VolGroup00\/LogVol01 31G (\u6ce8\u610f \uff1a\u6b64\u5904\u768431G=\u539f\u6765\u76841G+\u65b0\u589e\u52a0\u768430G) <\/p>\n
\u6216\u8005\u75281\u6761\u547d\u4ee4 lvextend -L 31G -f -r \/dev\/VolGroup00\/LogVol01 \u3002
\u89c2\u5bdf\u770b\uff0c\/tmp\u6240\u5728\u7684lv\u5df2\u7ecf\u53d8\u621031G\u4e86\u3002\u5982\u56fe\u3002<\/p>\n
7\u3001\u91cd\u65b0\u6302\u8f7d\u5206\u533a<\/h3>\n
mount \/dev\/mapper\/VolGroup00-LogVol\u2013da1 \/da1
\u56e0\u4e3a\u521a\u624d\u628a\/dev\/mapper\/VolGroup00-LogVol\u2013da1\u5378\u8f7d\u4e86\uff0c\u9700\u8981\u91cd\u65b0\u6302\u4e0a<\/p>\n
8\u3001\u89c2\u5bdf\u78c1\u76d8<\/h3>\n
\/tmp\u76ee\u5f55\u5df2\u7ecf\u8c03\u6574\u523031G\u4e86,\u540c\u65f6\/da1\u76ee\u5f55\u4e5f\u51cf\u5c0f\u4e86\u4e9b\u3002
\u53e6\u5916\uff0c\u7531\u4e8e\u53ea\u7528\u4e8630G\uff0c\u8be5vg\u4e0b\u8fd8\u5269\u4f59\u90e8\u5206\u7a7a\u95f4\uff0c\u5982\u4e0b\uff0c\u53ef\u4ee5\u5230\u65f6\u5019\u52a8\u6001\u8c03\u6574\u7ed9\u5176\u4ed6\u76ee\u5f55\u3002
<\/p>\n","protected":false},"excerpt":{"rendered":"linux\u4fee\u6539tmp\u76ee\u5f55_\u600e\u4e48\u8c03\u6574\u76ee\u5f55\u91cc\u70b9\u7684\u957f\u5ea6Linux\u4e0b\u8c03\u6574\/tmp\u76ee\u5f55\u5927\u5c0f_\u67e5\u770btmp\u76ee\u5f55\u5927\u5c0f","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/5513"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=5513"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/5513\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=5513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=5513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=5513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}