{"id":62493,"date":"2026-01-20T01:58:43","date_gmt":"2026-01-19T17:58:43","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/62493.html"},"modified":"2026-01-20T01:58:43","modified_gmt":"2026-01-19T17:58:43","slug":"%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88lvm%ef%bc%89%e5%ad%98%e5%82%a8%e6%89%a9%e5%ae%b9%e5%85%a8%e6%b5%81%e7%a8%8b%e5%ad%a6%e4%b9%a0%e6%89%8b%e5%86%8c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/62493.html","title":{"rendered":"\u670d\u52a1\u5668\uff08LVM\uff09\u5b58\u50a8\u6269\u5bb9\u5168\u6d41\u7a0b\u5b66\u4e60\u624b\u518c"},"content":{"rendered":"<p>\u672c\u624b\u518c\u57fa\u4e8e \u94f6\u6cb3\u9e92\u9e9f&#xff08;ARM64&#xff09;LVM \u73af\u5883\u7f16\u5199&#xff0c;\u6db5\u76d6\u8fd0\u7ef4\u4e2d\u5e38\u89c1\u7684\u5b58\u50a8\u6269\u5bb9\u573a\u666f\u3001\u5b8c\u6574\u64cd\u4f5c\u6b65\u9aa4\u3001\u6587\u4ef6\u7cfb\u7edf\u9002\u914d\u77e5\u8bc6\u53ca\u907f\u5751\u8981\u70b9&#xff0c;\u53ef\u4f5c\u4e3a\u957f\u671f\u5b66\u4e60\u548c\u53c2\u8003\u6307\u5357\u3002<\/p>\n<h3>\u4e00\u3001\u6269\u5bb9\u6838\u5fc3\u6982\u5ff5\u4e0e\u5206\u7c7b<\/h3>\n<h4>1. \u5b58\u50a8\u6269\u5bb9\u7684\u6838\u5fc3\u76ee\u6807<\/h4>\n<p>\u89e3\u51b3\u670d\u52a1\u5668\u6839\u76ee\u5f55\u3001\u6570\u636e\u76ee\u5f55\u7b49\u5206\u533a\u7a7a\u95f4\u4e0d\u8db3\u7684\u95ee\u9898&#xff0c;\u5206\u4e3a LVM \u6269\u5bb9&#xff08;\u63a8\u8350&#xff0c;\u7075\u6d3b\u53ef\u6269\u5c55&#xff09;\u548c \u975e LVM \u6269\u5bb9&#xff08;\u76f4\u63a5\u8c03\u6574\u5206\u533a&#xff0c;\u7075\u6d3b\u6027\u5dee&#xff09;\u4e24\u7c7b&#xff0c;\u672c\u624b\u518c\u4ee5\u4f01\u4e1a\u4e3b\u6d41\u7684 LVM \u6269\u5bb9 \u4e3a\u4e3b\u3002<\/p>\n<h4>2. LVM \u6838\u5fc3\u7ec4\u4ef6&#xff08;\u5fc5\u987b\u638c\u63e1&#xff09;<\/h4>\n<p>LVM&#xff08;\u903b\u8f91\u5377\u7ba1\u7406&#xff09;\u901a\u8fc7\u5c06\u7269\u7406\u78c1\u76d8\u62bd\u8c61\u4e3a\u903b\u8f91\u5377&#xff0c;\u5b9e\u73b0\u5b58\u50a8\u7684\u7075\u6d3b\u6269\u5bb9 \/ \u7f29\u5bb9&#xff0c;\u6838\u5fc3\u7ec4\u4ef6\u5173\u7cfb&#xff1a;\u7269\u7406\u78c1\u76d8 \u2192 \u7269\u7406\u5377(PV) \u2192 \u5377\u7ec4(VG) \u2192 \u903b\u8f91\u5377(LV) \u2192 \u6587\u4ef6\u7cfb\u7edf<\/p>\n<table>\n<tr>\u7ec4\u4ef6\u82f1\u6587\u5168\u79f0\u4f5c\u7528<\/tr>\n<tbody>\n<tr>\n<td>\u7269\u7406\u5377&#xff08;PV&#xff09;<\/td>\n<td>Physical Volume<\/td>\n<td>\u5c06\u7269\u7406\u78c1\u76d8 \/ \u5206\u533a\u521d\u59cb\u5316\u4e3a LVM \u53ef\u8bc6\u522b\u7684\u683c\u5f0f&#xff0c;\u662f LVM \u7684\u5e95\u5c42\u5b58\u50a8\u5355\u5143<\/td>\n<\/tr>\n<tr>\n<td>\u5377\u7ec4&#xff08;VG&#xff09;<\/td>\n<td>Volume Group<\/td>\n<td>\u5c06\u591a\u4e2a PV \u5408\u5e76\u4e3a\u4e00\u4e2a \u201c\u5b58\u50a8\u6c60\u201d&#xff0c;\u53ef\u52a8\u6001\u6dfb\u52a0 \/ \u79fb\u9664 PV<\/td>\n<\/tr>\n<tr>\n<td>\u903b\u8f91\u5377&#xff08;LV&#xff09;<\/td>\n<td>Logical Volume<\/td>\n<td>\u4ece VG \u4e2d\u5212\u5206\u7684\u903b\u8f91\u5206\u533a&#xff0c;\u53ef\u76f4\u63a5\u683c\u5f0f\u5316\u6302\u8f7d&#xff0c;\u652f\u6301\u52a8\u6001\u6269\u5bb9<\/td>\n<\/tr>\n<tr>\n<td>\u6587\u4ef6\u7cfb\u7edf<\/td>\n<td>File System<\/td>\n<td>\u683c\u5f0f\u5316 LV \u7684\u683c\u5f0f&#xff08;\u5982 XFS\u3001Ext4&#xff09;&#xff0c;\u9700\u5355\u72ec\u6269\u5bb9\u624d\u80fd\u8bc6\u522b LV \u65b0\u589e\u7a7a\u95f4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3. \u5e38\u89c1\u6269\u5bb9\u573a\u666f<\/h4>\n<table>\n<tr>\u6269\u5bb9\u573a\u666f\u9002\u7528\u60c5\u51b5\u6838\u5fc3\u7279\u70b9<\/tr>\n<tbody>\n<tr>\n<td>\u65b0\u589e\u7269\u7406\u78c1\u76d8\u6269\u5bb9<\/td>\n<td>\u670d\u52a1\u5668\u6709\u7a7a\u95f2\u78c1\u76d8\u69fd\u4f4d \/ \u53ef\u6302\u8f7d\u65b0\u78c1\u76d8&#xff08;\u5982\u672c\u6b21 vdb\/vdc \u6269\u5bb9&#xff09;<\/td>\n<td>\u6700\u5e38\u7528\u3001\u65e0\u98ce\u9669&#xff0c;\u4e0d\u5f71\u54cd\u73b0\u6709\u6570\u636e<\/td>\n<\/tr>\n<tr>\n<td>\u73b0\u6709\u78c1\u76d8\u672a\u5206\u914d\u7a7a\u95f4\u6269\u5bb9<\/td>\n<td>\u5df2\u6302\u8f7d\u7684\u78c1\u76d8\u5b58\u5728\u672a\u5212\u5206\u7684\u7a7a\u95f2\u5206\u533a&#xff08;\u5982 \/dev\/vda \u6709\u5269\u4f59\u7a7a\u95f4&#xff09;<\/td>\n<td>\u65e0\u9700\u65b0\u589e\u786c\u4ef6&#xff0c;\u9700\u8c03\u6574\u5206\u533a\u8868<\/td>\n<\/tr>\n<tr>\n<td>\u4e91\u670d\u52a1\u5668\u4e91\u76d8\u6269\u5bb9<\/td>\n<td>\u4e91\u4e3b\u673a\u6302\u8f7d\u7684\u4e91\u76d8\u5bb9\u91cf\u4e0d\u8db3&#xff08;\u5982\u963f\u91cc\u4e91 EBS\u3001\u534e\u4e3a\u4e91 EVS&#xff09;<\/td>\n<td>\u9700\u5148\u5728\u4e91\u5e73\u53f0\u63a7\u5236\u53f0\u6269\u5bb9\u4e91\u76d8&#xff0c;\u518d\u5728\u7cfb\u7edf\u5185\u64cd\u4f5c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u4e8c\u3001\u4e0d\u540c\u573a\u666f\u4e0b\u7684 LVM \u6269\u5bb9\u5168\u6b65\u9aa4<\/h3>\n<h4>\u573a\u666f 1&#xff1a;\u65b0\u589e\u7269\u7406\u78c1\u76d8\u6269\u5bb9&#xff08;\u672c\u6b21\u64cd\u4f5c\u573a\u666f&#xff09;<\/h4>\n<p>\u9002\u7528\u4e8e\u670d\u52a1\u5668\u65b0\u589e\u7269\u7406\u78c1\u76d8 \/ \u4e91\u76d8&#xff0c;\u9700\u5c06\u65b0\u78c1\u76d8\u52a0\u5165\u73b0\u6709 LVM \u5377\u7ec4&#xff0c;\u6269\u5c55\u903b\u8f91\u5377\u3002<\/p>\n<h5>\u524d\u7f6e\u51c6\u5907<\/h5>\n<li>\u786e\u8ba4\u65b0\u589e\u78c1\u76d8\u767b\u5f55\u670d\u52a1\u5668&#xff0c;\u68c0\u67e5\u65b0\u78c1\u76d8\u662f\u5426\u88ab\u7cfb\u7edf\u8bc6\u522b&#xff08;\u65e0\u5206\u533a\u3001\u65e0\u6302\u8f7d&#xff09;\n<p># \u67e5\u770b\u78c1\u76d8\u5217\u8868&#xff0c;\u786e\u8ba4\u65b0\u589e\u78c1\u76d8&#xff08;\u5982 vdb\u3001vdc&#xff09;<br \/>\nlsblk<br \/>\n# \u68c0\u67e5\u78c1\u76d8\u662f\u5426\u6709\u6570\u636e\/\u5206\u533a&#xff08;\u65e0\u8f93\u51fa\u5219\u4e3a\u5e72\u51c0\u78c1\u76d8&#xff09;<br \/>\nfdisk -l \/dev\/vdb<\/p>\n<\/li>\n<li>\u5907\u4efd\u5173\u952e\u6570\u636e\u5bf9\u6839\u76ee\u5f55\u3001\u6570\u636e\u5e93\u76ee\u5f55\u7b49\u6838\u5fc3\u6570\u636e\u8fdb\u884c\u5907\u4efd&#xff08;\u5982 tar \u6253\u5305 \/etc\u3001\/var\/lib\/mysql&#xff09;&#xff0c;\u907f\u514d\u64cd\u4f5c\u5931\u8bef\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u3002<\/li>\n<li>\u9009\u62e9\u64cd\u4f5c\u65f6\u673a\u52a1\u5fc5\u5728 \u4e1a\u52a1\u4f4e\u5cf0\u671f \u6267\u884c&#xff08;\u5982\u51cc\u6668&#xff09;&#xff0c;LVM \u6269\u5bb9\u4e3a\u5728\u7ebf\u64cd\u4f5c&#xff0c;\u4e0d\u5f71\u54cd\u4e1a\u52a1\u8fd0\u884c&#xff0c;\u4f46\u9700\u907f\u514d\u9ad8\u8d1f\u8f7d\u65f6\u64cd\u4f5c\u3002<\/li>\n<h5>\u6b65\u9aa4 1&#xff1a;\u521b\u5efa\u7269\u7406\u5377&#xff08;PV&#xff09;<\/h5>\n<p>\u5c06\u65b0\u589e\u7684\u7a7a\u767d\u78c1\u76d8\u521d\u59cb\u5316\u4e3a LVM \u7269\u7406\u5377<\/p>\n<p># \u521d\u59cb\u5316\u5355\u5757\u78c1\u76d8&#xff08;\u5982 vdb&#xff09;<br \/>\npvcreate \/dev\/vdb<br \/>\n# \u6279\u91cf\u521d\u59cb\u5316\u591a\u5757\u78c1\u76d8&#xff08;\u5982 vdb\u3001vdc&#xff09;<br \/>\npvcreate \/dev\/vdb \/dev\/vdc<\/p>\n<p># \u9a8c\u8bc1 PV \u521b\u5efa\u7ed3\u679c&#xff08;\u663e\u793a vdb\u3001vdc \u72b6\u6001\u4e3a available&#xff09;<br \/>\npvdisplay<\/p>\n<p>\u5e38\u89c1\u95ee\u9898&#xff1a;\u82e5\u63d0\u793a device is busy&#xff0c;\u8bf4\u660e\u78c1\u76d8\u5df2\u88ab\u6302\u8f7d\u6216\u6709\u5206\u533a&#xff0c;\u9700\u5148\u6267\u884c umount \/dev\/vdb \u5378\u8f7d\u6216 fdisk \/dev\/vdb \u5220\u9664\u5206\u533a\u3002<\/p>\n<h5>\u6b65\u9aa4 2&#xff1a;\u6269\u5c55\u5377\u7ec4&#xff08;VG&#xff09;<\/h5>\n<p>\u5c06\u65b0\u521b\u5efa\u7684 PV \u52a0\u5165\u73b0\u6709\u5377\u7ec4&#xff08;\u672c\u6b21\u5377\u7ec4\u540d\u4e3a klas&#xff09;<\/p>\n<p># \u67e5\u770b\u73b0\u6709\u5377\u7ec4\u4fe1\u606f&#xff08;\u786e\u8ba4\u5377\u7ec4\u540d\u3001\u5269\u4f59\u7a7a\u95f4&#xff09;<br \/>\nvgdisplay<\/p>\n<p># \u5c06 PV \u52a0\u5165\u5377\u7ec4 klas<br \/>\nvgextend klas \/dev\/vdb<br \/>\n# \u6279\u91cf\u52a0\u5165\u591a\u5757 PV<br \/>\nvgextend klas \/dev\/vdb \/dev\/vdc<\/p>\n<p># \u9a8c\u8bc1 VG \u6269\u5c55\u7ed3\u679c&#xff08;Free PE \/ Size \u4f1a\u589e\u52a0\u65b0\u78c1\u76d8\u5bb9\u91cf&#xff09;<br \/>\nvgdisplay klas<\/p>\n<h5>\u6b65\u9aa4 3&#xff1a;\u6269\u5c55\u903b\u8f91\u5377&#xff08;LV&#xff09;<\/h5>\n<p>\u4ece\u5377\u7ec4\u4e2d\u5206\u914d\u7a7a\u95f4&#xff0c;\u6269\u5c55\u76ee\u6807\u903b\u8f91\u5377&#xff08;\u672c\u6b21\u76ee\u6807 LV \u4e3a \/dev\/mapper\/klas-root&#xff09;<\/p>\n<p># \u65b9\u5f0f1&#xff1a;\u4f7f\u7528\u5377\u7ec4\u5185\u6240\u6709\u5269\u4f59\u7a7a\u95f4&#xff08;\u63a8\u8350&#xff09;<br \/>\nlvextend -l &#043;100%FREE \/dev\/mapper\/klas-root<\/p>\n<p># \u65b9\u5f0f2&#xff1a;\u6307\u5b9a\u6269\u5bb9\u5927\u5c0f&#xff08;\u5982\u7ed9\u6839\u76ee\u5f55\u6269\u5bb9 200G&#xff09;<br \/>\nlvextend -L &#043;200G \/dev\/mapper\/klas-root \/dev\/vdb<\/p>\n<p># \u9a8c\u8bc1 LV \u6269\u5c55\u7ed3\u679c&#xff08;LV Size \u663e\u793a\u6269\u5bb9\u540e\u5bb9\u91cf&#xff09;<br \/>\nlvdisplay \/dev\/mapper\/klas-root<\/p>\n<p>\u53c2\u6570\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>-l &#043;100%FREE&#xff1a;\u4f7f\u7528\u5377\u7ec4\u5185\u5168\u90e8\u7a7a\u95f2\u7a7a\u95f4&#xff1b;<\/li>\n<li>-L &#043;200G&#xff1a;\u6307\u5b9a\u6269\u5bb9\u5927\u5c0f&#xff08;&#043; \u8868\u793a\u65b0\u589e&#xff0c;\u65e0 &#043; \u8868\u793a\u8bbe\u7f6e\u4e3a\u76ee\u6807\u5927\u5c0f&#xff09;\u3002<\/li>\n<\/ul>\n<h5>\u6b65\u9aa4 4&#xff1a;\u6269\u5c55\u6587\u4ef6\u7cfb\u7edf<\/h5>\n<p>LV \u6269\u5bb9\u540e&#xff0c;\u6587\u4ef6\u7cfb\u7edf\u5e76\u672a\u8bc6\u522b\u65b0\u589e\u7a7a\u95f4&#xff0c;\u9700\u6267\u884c\u5bf9\u5e94\u547d\u4ee4\u6269\u5c55\u6587\u4ef6\u7cfb\u7edf&#xff08;\u5173\u952e\u6b65\u9aa4&#xff01;&#xff09;<\/p>\n<table>\n<tr>\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u6269\u5bb9\u547d\u4ee4\u7279\u70b9<\/tr>\n<tbody>\n<tr>\n<td>XFS&#xff08;\u672c\u6b21\u4f7f\u7528&#xff09;<\/td>\n<td>xfs_growfs \/dev\/mapper\/klas-root<\/td>\n<td>\u4ec5\u652f\u6301\u5728\u7ebf\u6269\u5bb9&#xff0c;\u4e0d\u652f\u6301\u7f29\u5bb9<\/td>\n<\/tr>\n<tr>\n<td>Ext4<\/td>\n<td>resize2fs \/dev\/mapper\/klas-root<\/td>\n<td>\u652f\u6301\u5728\u7ebf\u6269\u5bb9 \/ \u7f29\u5bb9&#xff0c;\u9700\u5148\u6267\u884c e2fsck -f \u68c0\u67e5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p># \u67e5\u770b\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b&#xff08;\u786e\u8ba4\u6839\u76ee\u5f55\u4e3a XFS&#xff09;<br \/>\ndf -Th \/<\/p>\n<p># XFS \u6587\u4ef6\u7cfb\u7edf\u6269\u5bb9<br \/>\nxfs_growfs \/dev\/mapper\/klas-root<\/p>\n<h5>\u6b65\u9aa4 5&#xff1a;\u6269\u5bb9\u9a8c\u8bc1<\/h5>\n<p># 1. \u67e5\u770b\u6587\u4ef6\u7cfb\u7edf\u5bb9\u91cf&#xff08;\u6839\u76ee\u5f55\u5bb9\u91cf\u5e94\u663e\u793a\u4e3a\u6269\u5bb9\u540e\u5927\u5c0f&#xff09;<br \/>\ndf -h \/<\/p>\n<p># 2. \u67e5\u770b LVM \u5404\u7ec4\u4ef6\u72b6\u6001&#xff08;\u786e\u8ba4 PV\/VG\/LV \u5747\u6b63\u5e38&#xff09;<br \/>\npvdisplay &amp;&amp; vgdisplay klas &amp;&amp; lvdisplay \/dev\/mapper\/klas-root<\/p>\n<p>\u2705 \u9884\u671f\u7ed3\u679c&#xff1a;\u6839\u76ee\u5f55\u5bb9\u91cf\u4ece 83G \u6269\u5c55\u81f3 483G&#xff0c;\u4e1a\u52a1\u8fd0\u884c\u65e0\u5f02\u5e38\u3002<\/p>\n<h4>\u573a\u666f 2&#xff1a;\u73b0\u6709\u78c1\u76d8\u672a\u5206\u914d\u7a7a\u95f4\u6269\u5bb9<\/h4>\n<p>\u9002\u7528\u4e8e\u5df2\u6302\u8f7d\u7684\u78c1\u76d8&#xff08;\u5982 \/dev\/vda&#xff09;\u5b58\u5728\u672a\u5212\u5206\u7684\u7a7a\u95f2\u7a7a\u95f4&#xff0c;\u65e0\u9700\u65b0\u589e\u786c\u4ef6\u3002<\/p>\n<h5>\u6838\u5fc3\u6b65\u9aa4<\/h5>\n<li>\u8c03\u6574\u5206\u533a\u8868&#xff1a;\u4f7f\u7528 fdisk \u6216 gdisk \u5220\u9664\u539f\u6709\u5206\u533a&#xff0c;\u91cd\u65b0\u521b\u5efa\u66f4\u5927\u7684\u5206\u533a&#xff08;\u9700\u6ce8\u610f\u5206\u533a\u7c7b\u578b\u4e3a 8e&#xff08;LVM&#xff09;&#xff09;\u3002\n<p># \u8fdb\u5165 fdisk \u5de5\u5177<br \/>\nfdisk \/dev\/vda<br \/>\n# \u8f93\u5165 p \u67e5\u770b\u5206\u533a\u8868 \u2192 d \u5220\u9664\u73b0\u6709 LVM \u5206\u533a \u2192 n \u521b\u5efa\u65b0\u5206\u533a \u2192 t \u4fee\u6539\u7c7b\u578b\u4e3a 8e \u2192 w \u4fdd\u5b58<\/p>\n<\/li>\n<li>\u6269\u5c55\u7269\u7406\u5377&#xff1a;\u66f4\u65b0 PV \u5927\u5c0f&#xff0c;\u4f7f\u5176\u8bc6\u522b\u65b0\u589e\u7684\u5206\u533a\u7a7a\u95f4\n<p>pvresize \/dev\/vda2<\/p>\n<\/li>\n<li>\u540e\u7eed\u6b65\u9aa4&#xff1a;\u91cd\u590d \u300c\u573a\u666f 1 \u6b65\u9aa4 2 &#8211; \u6b65\u9aa4 5\u300d&#xff08;\u6269\u5c55 VG \u2192 \u6269\u5c55 LV \u2192 \u6269\u5c55\u6587\u4ef6\u7cfb\u7edf&#xff09;\u3002<\/li>\n<h4>\u573a\u666f 3&#xff1a;\u4e91\u670d\u52a1\u5668\u4e91\u76d8\u6269\u5bb9<\/h4>\n<p>\u9002\u7528\u4e8e\u963f\u91cc\u4e91\u3001\u534e\u4e3a\u4e91\u7b49\u4e91\u5e73\u53f0\u7684\u4e91\u4e3b\u673a&#xff0c;\u9700\u5148\u5728\u63a7\u5236\u53f0\u6269\u5bb9\u4e91\u76d8&#xff0c;\u518d\u5728\u7cfb\u7edf\u5185\u64cd\u4f5c\u3002<\/p>\n<h5>\u6838\u5fc3\u6b65\u9aa4<\/h5>\n<li>\u4e91\u5e73\u53f0\u63a7\u5236\u53f0\u6269\u5bb9&#xff1a;\u767b\u5f55\u4e91\u5e73\u53f0 \u2192 \u627e\u5230\u76ee\u6807\u4e91\u76d8 \u2192 \u6267\u884c\u300c\u6269\u5bb9\u300d\u64cd\u4f5c&#xff08;\u5982\u5c06 100G \u6269\u5bb9\u4e3a 500G&#xff09;\u3002<\/li>\n<li>\u7cfb\u7edf\u5185\u626b\u63cf\u78c1\u76d8&#xff1a;\u5237\u65b0\u78c1\u76d8\u4fe1\u606f&#xff0c;\u4f7f\u7cfb\u7edf\u8bc6\u522b\u6269\u5bb9\u540e\u7684\u5bb9\u91cf\n<p># \u91cd\u65b0\u626b\u63cf SCSI \u603b\u7ebf&#xff08;\u901a\u7528\u547d\u4ee4&#xff09;<br \/>\necho 1 &gt; \/sys\/class\/block\/vda\/device\/rescan<\/p>\n<\/li>\n<li>\u540e\u7eed\u6b65\u9aa4&#xff1a;\n<ul>\n<li>\u82e5\u4e91\u76d8\u4e3a LVM \u683c\u5f0f&#xff1a;\u91cd\u590d\u300c\u573a\u666f 2 \u6b65\u9aa4 1 &#8211; \u6b65\u9aa4 5\u300d&#xff1b;<\/li>\n<li>\u82e5\u4e91\u76d8\u4e3a\u975e LVM \u683c\u5f0f&#xff1a;\u4f7f\u7528 resize2fs\/xfs_growfs \u76f4\u63a5\u6269\u5c55\u6587\u4ef6\u7cfb\u7edf\u3002<\/li>\n<\/ul>\n<\/li>\n<h3>\u4e09\u3001\u5173\u952e\u77e5\u8bc6\u8865\u5145\u4e0e\u907f\u5751\u6307\u5357<\/h3>\n<h4>1. \u5728\u7ebf\u6269\u5bb9 vs \u79bb\u7ebf\u6269\u5bb9<\/h4>\n<table>\n<tr>\u64cd\u4f5c\u7c7b\u578b\u9002\u7528\u573a\u666f\u6ce8\u610f\u4e8b\u9879<\/tr>\n<tbody>\n<tr>\n<td>\u5728\u7ebf\u6269\u5bb9<\/td>\n<td>LVM \u6269\u5bb9\u3001XFS\/Ext4 \u6587\u4ef6\u7cfb\u7edf\u6269\u5bb9<\/td>\n<td>\u65e0\u9700\u5378\u8f7d\u5206\u533a&#xff0c;\u4e0d\u5f71\u54cd\u4e1a\u52a1\u8fd0\u884c&#xff0c;\u63a8\u8350\u751f\u4ea7\u73af\u5883\u4f7f\u7528<\/td>\n<\/tr>\n<tr>\n<td>\u79bb\u7ebf\u6269\u5bb9<\/td>\n<td>\u975e LVM \u5206\u533a\u6269\u5bb9\u3001\u6587\u4ef6\u7cfb\u7edf\u7f29\u5bb9<\/td>\n<td>\u9700\u5378\u8f7d\u5206\u533a&#xff0c;\u4f1a\u4e2d\u65ad\u4e1a\u52a1&#xff0c;\u9700\u63d0\u524d\u505c\u673a\u7ef4\u62a4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>2. \u5e38\u89c1\u95ee\u9898\u6392\u67e5<\/h4>\n<table>\n<tr>\u95ee\u9898\u73b0\u8c61\u539f\u56e0\u89e3\u51b3\u65b9\u6848<\/tr>\n<tbody>\n<tr>\n<td>df -h \u663e\u793a\u5bb9\u91cf\u672a\u53d8\u5316<\/td>\n<td>\u4ec5\u6269\u5c55\u4e86 LV&#xff0c;\u672a\u6269\u5c55\u6587\u4ef6\u7cfb\u7edf<\/td>\n<td>\u6267\u884c xfs_growfs\/resize2fs \u547d\u4ee4<\/td>\n<\/tr>\n<tr>\n<td>pvcreate \u63d0\u793a device is busy<\/td>\n<td>\u78c1\u76d8\u5df2\u6302\u8f7d\u6216\u5b58\u5728\u5206\u533a<\/td>\n<td>\u6267\u884c umount \/dev\/vdb \u5378\u8f7d&#xff0c;\u6216 fdisk \u5220\u9664\u5206\u533a<\/td>\n<\/tr>\n<tr>\n<td>lvextend \u63d0\u793a insufficient free space<\/td>\n<td>\u5377\u7ec4\u5269\u4f59\u7a7a\u95f4\u4e0d\u8db3<\/td>\n<td>\u68c0\u67e5 VG \u5269\u4f59\u7a7a\u95f4&#xff0c;\u6216\u65b0\u589e PV \u52a0\u5165 VG<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3. \u91cd\u8981\u6ce8\u610f\u4e8b\u9879<\/h4>\n<li>\u6269\u5bb9\u524d\u5fc5\u5907\u4efd&#xff1a;\u65e0\u8bba\u4f55\u79cd\u573a\u666f&#xff0c;\u6269\u5bb9\u524d\u5fc5\u987b\u5907\u4efd\u6838\u5fc3\u6570\u636e&#xff0c;\u907f\u514d\u5206\u533a\u8868\u635f\u574f\u6216\u547d\u4ee4\u9519\u8bef\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u3002<\/li>\n<li>\u533a\u5206\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b&#xff1a;XFS \u548c Ext4 \u7684\u6269\u5bb9\u547d\u4ee4\u4e0d\u540c&#xff0c;\u9700\u5148\u7528 df -Th \u786e\u8ba4\u7c7b\u578b&#xff0c;\u907f\u514d\u7528\u9519\u547d\u4ee4\u3002<\/li>\n<li>\u907f\u514d\u7f29\u5bb9\u64cd\u4f5c&#xff1a;XFS \u6587\u4ef6\u7cfb\u7edf\u4e0d\u652f\u6301\u7f29\u5bb9&#xff0c;Ext4 \u7f29\u5bb9\u98ce\u9669\u6781\u9ad8&#xff08;\u6613\u5bfc\u81f4\u6570\u636e\u635f\u574f&#xff09;&#xff0c;\u751f\u4ea7\u73af\u5883\u5c3d\u91cf\u4e0d\u6267\u884c\u7f29\u5bb9\u3002<\/li>\n<li>\u8bb0\u5f55\u64cd\u4f5c\u6b65\u9aa4&#xff1a;\u6269\u5bb9\u8fc7\u7a0b\u4e2d\u8bb0\u5f55\u6bcf\u4e00\u6b65\u547d\u4ee4\u548c\u8f93\u51fa&#xff0c;\u4fbf\u4e8e\u51fa\u73b0\u95ee\u9898\u65f6\u56de\u6eda\u6392\u67e5\u3002<\/li>\n<h3>\u56db\u3001\u6269\u5bb9\u540e\u7ef4\u62a4\u5efa\u8bae<\/h3>\n<li>\u5b9a\u671f\u68c0\u67e5\u5b58\u50a8\u72b6\u6001&#xff1a;\u6bcf\u5468\u6267\u884c df -h\u3001vgdisplay \u68c0\u67e5\u78c1\u76d8\u4f7f\u7528\u7387\u548c LVM \u72b6\u6001&#xff0c;\u63d0\u524d\u9884\u8b66\u7a7a\u95f4\u4e0d\u8db3\u3002<\/li>\n<li>\u76d1\u63a7\u544a\u8b66\u914d\u7f6e&#xff1a;\u5728 Zabbix\u3001Prometheus \u7b49\u76d1\u63a7\u5e73\u53f0\u914d\u7f6e\u78c1\u76d8\u4f7f\u7528\u7387\u544a\u8b66&#xff08;\u5982\u4f7f\u7528\u7387\u8d85\u8fc7 80% \u89e6\u53d1\u544a\u8b66&#xff09;\u3002<\/li>\n<li>\u6587\u6863\u5f52\u6863&#xff1a;\u5c06\u672c\u6b21\u6269\u5bb9\u7684\u6b65\u9aa4\u3001\u547d\u4ee4\u3001\u9a8c\u8bc1\u7ed3\u679c\u5f52\u6863&#xff0c;\u4f5c\u4e3a\u540e\u7eed\u6269\u5bb9\u7684\u53c2\u8003\u6a21\u677f\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u624b\u518c\u57fa\u4e8e \u94f6\u6cb3\u9e92\u9e9f&#xff08;ARM64&#xff09;LVM \u73af\u5883\u7f16\u5199&#xff0c;\u6db5\u76d6\u8fd0\u7ef4\u4e2d\u5e38\u89c1\u7684\u5b58\u50a8\u6269\u5bb9\u573a\u666f\u3001\u5b8c\u6574\u64cd\u4f5c\u6b65\u9aa4\u3001\u6587\u4ef6\u7cfb\u7edf\u9002\u914d\u77e5\u8bc6\u53ca\u907f\u5751\u8981\u70b9&#xff0c;\u53ef\u4f5c\u4e3a\u957f\u671f\u5b66\u4e60\u548c\u53c2\u8003\u6307\u5357\u3002\u4e00\u3001\u6269\u5bb9\u6838\u5fc3\u6982\u5ff5\u4e0e\u5206\u7c7b1. \u5b58\u50a8\u6269\u5bb9\u7684\u6838\u5fc3\u76ee\u6807\u89e3\u51b3\u670d\u52a1\u5668\u6839\u76ee\u5f55\u3001\u6570\u636e\u76ee\u5f55\u7b49\u5206\u533a\u7a7a\u95f4\u4e0d\u8db3\u7684\u95ee\u9898&#xff0c;\u5206\u4e3a LVM \u6269\u5bb9&#xff08;\u63a8\u8350&#xff0c;\u7075\u6d3b\u53ef\u6269\u5c55&#xff09;\u548c \u975e LVM \u6269\u5bb9&#xff08;\u76f4\u63a5\u8c03\u6574\u5206\u533a&#xff0c;\u7075\u6d3b\u6027\u5dee&amp;#xff09<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3053,371,43],"topic":[],"class_list":["post-62493","post","type-post","status-publish","format-standard","hentry","category-server","tag-5g","tag-371","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u670d\u52a1\u5668\uff08LVM\uff09\u5b58\u50a8\u6269\u5bb9\u5168\u6d41\u7a0b\u5b66\u4e60\u624b\u518c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/62493.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u670d\u52a1\u5668\uff08LVM\uff09\u5b58\u50a8\u6269\u5bb9\u5168\u6d41\u7a0b\u5b66\u4e60\u624b\u518c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u672c\u624b\u518c\u57fa\u4e8e \u94f6\u6cb3\u9e92\u9e9f&#xff08;ARM64&#xff09;LVM \u73af\u5883\u7f16\u5199&#xff0c;\u6db5\u76d6\u8fd0\u7ef4\u4e2d\u5e38\u89c1\u7684\u5b58\u50a8\u6269\u5bb9\u573a\u666f\u3001\u5b8c\u6574\u64cd\u4f5c\u6b65\u9aa4\u3001\u6587\u4ef6\u7cfb\u7edf\u9002\u914d\u77e5\u8bc6\u53ca\u907f\u5751\u8981\u70b9&#xff0c;\u53ef\u4f5c\u4e3a\u957f\u671f\u5b66\u4e60\u548c\u53c2\u8003\u6307\u5357\u3002\u4e00\u3001\u6269\u5bb9\u6838\u5fc3\u6982\u5ff5\u4e0e\u5206\u7c7b1. \u5b58\u50a8\u6269\u5bb9\u7684\u6838\u5fc3\u76ee\u6807\u89e3\u51b3\u670d\u52a1\u5668\u6839\u76ee\u5f55\u3001\u6570\u636e\u76ee\u5f55\u7b49\u5206\u533a\u7a7a\u95f4\u4e0d\u8db3\u7684\u95ee\u9898&#xff0c;\u5206\u4e3a LVM \u6269\u5bb9&#xff08;\u63a8\u8350&#xff0c;\u7075\u6d3b\u53ef\u6269\u5c55&#xff09;\u548c \u975e LVM \u6269\u5bb9&#xff08;\u76f4\u63a5\u8c03\u6574\u5206\u533a&#xff0c;\u7075\u6d3b\u6027\u5dee&amp;#xff09\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/62493.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-19T17:58:43+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/62493.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/62493.html\",\"name\":\"\u670d\u52a1\u5668\uff08LVM\uff09\u5b58\u50a8\u6269\u5bb9\u5168\u6d41\u7a0b\u5b66\u4e60\u624b\u518c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-19T17:58:43+00:00\",\"dateModified\":\"2026-01-19T17:58:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/62493.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/62493.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/62493.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u670d\u52a1\u5668\uff08LVM\uff09\u5b58\u50a8\u6269\u5bb9\u5168\u6d41\u7a0b\u5b66\u4e60\u624b\u518c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u670d\u52a1\u5668\uff08LVM\uff09\u5b58\u50a8\u6269\u5bb9\u5168\u6d41\u7a0b\u5b66\u4e60\u624b\u518c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/62493.html","og_locale":"zh_CN","og_type":"article","og_title":"\u670d\u52a1\u5668\uff08LVM\uff09\u5b58\u50a8\u6269\u5bb9\u5168\u6d41\u7a0b\u5b66\u4e60\u624b\u518c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u672c\u624b\u518c\u57fa\u4e8e \u94f6\u6cb3\u9e92\u9e9f&#xff08;ARM64&#xff09;LVM \u73af\u5883\u7f16\u5199&#xff0c;\u6db5\u76d6\u8fd0\u7ef4\u4e2d\u5e38\u89c1\u7684\u5b58\u50a8\u6269\u5bb9\u573a\u666f\u3001\u5b8c\u6574\u64cd\u4f5c\u6b65\u9aa4\u3001\u6587\u4ef6\u7cfb\u7edf\u9002\u914d\u77e5\u8bc6\u53ca\u907f\u5751\u8981\u70b9&#xff0c;\u53ef\u4f5c\u4e3a\u957f\u671f\u5b66\u4e60\u548c\u53c2\u8003\u6307\u5357\u3002\u4e00\u3001\u6269\u5bb9\u6838\u5fc3\u6982\u5ff5\u4e0e\u5206\u7c7b1. \u5b58\u50a8\u6269\u5bb9\u7684\u6838\u5fc3\u76ee\u6807\u89e3\u51b3\u670d\u52a1\u5668\u6839\u76ee\u5f55\u3001\u6570\u636e\u76ee\u5f55\u7b49\u5206\u533a\u7a7a\u95f4\u4e0d\u8db3\u7684\u95ee\u9898&#xff0c;\u5206\u4e3a LVM \u6269\u5bb9&#xff08;\u63a8\u8350&#xff0c;\u7075\u6d3b\u53ef\u6269\u5c55&#xff09;\u548c \u975e LVM \u6269\u5bb9&#xff08;\u76f4\u63a5\u8c03\u6574\u5206\u533a&#xff0c;\u7075\u6d3b\u6027\u5dee&amp;#xff09","og_url":"https:\/\/www.wsisp.com\/helps\/62493.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-19T17:58:43+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/62493.html","url":"https:\/\/www.wsisp.com\/helps\/62493.html","name":"\u670d\u52a1\u5668\uff08LVM\uff09\u5b58\u50a8\u6269\u5bb9\u5168\u6d41\u7a0b\u5b66\u4e60\u624b\u518c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-19T17:58:43+00:00","dateModified":"2026-01-19T17:58:43+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/62493.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/62493.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/62493.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u670d\u52a1\u5668\uff08LVM\uff09\u5b58\u50a8\u6269\u5bb9\u5168\u6d41\u7a0b\u5b66\u4e60\u624b\u518c"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/62493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=62493"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/62493\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=62493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=62493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=62493"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=62493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}