{"id":109462,"date":"2026-09-24T08:08:47","date_gmt":"2026-09-24T00:08:47","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/109462.html"},"modified":"2026-09-24T08:08:47","modified_gmt":"2026-09-24T00:08:47","slug":"lvm%e9%80%bb%e8%be%91%e5%8d%b7%e7%ae%a1%e7%90%86%e5%ae%9e%e6%88%98%ef%bc%9apv%e3%80%81vg%e3%80%81lv%e5%88%9b%e5%bb%ba%e3%80%81%e6%89%a9%e5%ae%b9%e4%b8%8e%e5%bf%ab%e7%85%a7","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/109462.html","title":{"rendered":"LVM\u903b\u8f91\u5377\u7ba1\u7406\u5b9e\u6218\uff1aPV\u3001VG\u3001LV\u521b\u5efa\u3001\u6269\u5bb9\u4e0e\u5feb\u7167"},"content":{"rendered":"<p>\u4f20\u7edf\u5206\u533a\u4e00\u65e6\u5212\u597d&#xff0c;\u60f3\u6269\u5c31\u5f97\u5907\u4efd\u3001\u5220\u5206\u533a\u3001\u91cd\u5212\u3001\u518d\u6062\u590d&#xff0c;\u5168\u7a0b\u8981\u505c\u673a\u3002LVM&#xff08;Logical Volume Manager&#xff09;\u5728\u7269\u7406\u786c\u76d8\u548c\u6587\u4ef6\u7cfb\u7edf\u4e4b\u95f4\u52a0\u4e86\u4e00\u5c42\u62bd\u8c61&#xff1a;\u628a\u591a\u5757\u76d8\u62fc\u6210\u4e00\u4e2a\u5927\u6c60&#xff0c;\u518d\u4ece\u6c60\u91cc\u6309\u9700\u5207\u903b\u8f91\u5377\u3002\u6269\u5bb9\u7f29\u5bb9\u4e0d\u7528\u52a8\u7269\u7406\u76d8&#xff0c;\u5feb\u7167\u505a\u5907\u4efd\u4e5f\u65b9\u4fbf\u3002\u8fd9\u4e00\u7bc7\u4ece\u521b\u5efa\u3001\u5728\u7ebf\u6269\u5bb9\u3001\u7f29\u5bb9\u5230\u5feb\u7167\u5b8c\u6574\u8d70\u4e00\u904d&#xff0c;\u987a\u5e26\u628a\u6700\u5bb9\u6613\u641e\u53cd\u7684\u7f29\u5bb9\u987a\u5e8f\u8bb2\u6e05\u695a\u3002<\/p>\n<h3>\u4e00\u3001\u5148\u7406\u6e05\u4e09\u5c42\u7ed3\u6784<\/h3>\n<table>\n<tr>\u6982\u5ff5\u5168\u79f0\u662f\u4ec0\u4e48<\/tr>\n<tbody>\n<tr>\n<td>PV<\/td>\n<td>Physical Volume \u7269\u7406\u5377<\/td>\n<td>\u4e00\u5757\u76d8\u6216\u4e00\u4e2a\u5206\u533a&#xff0c;pvcreate \u4e4b\u540e\u7684\u72b6\u6001<\/td>\n<\/tr>\n<tr>\n<td>VG<\/td>\n<td>Volume Group \u5377\u7ec4<\/td>\n<td>\u628a\u591a\u4e2a PV \u6346\u5728\u4e00\u8d77\u7684\u5b58\u50a8\u6c60<\/td>\n<\/tr>\n<tr>\n<td>LV<\/td>\n<td>Logical Volume \u903b\u8f91\u5377<\/td>\n<td>\u4ece VG \u91cc\u5207\u51fa\u6765\u3001\u7ed9\u6587\u4ef6\u7cfb\u7edf\u7528\u7684&#034;\u865a\u62df\u5206\u533a&#034;<\/td>\n<\/tr>\n<tr>\n<td>PE<\/td>\n<td>Physical Extent<\/td>\n<td>VG \u7684\u6700\u5c0f\u5206\u914d\u5355\u5143&#xff0c;\u9ed8\u8ba4 4MB<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7406\u89e3\u65b9\u5f0f\u5f88\u7b80\u5355&#xff1a;VG \u662f\u4e00\u5757\u5927\u753b\u5e03&#xff0c;LV \u662f\u4ece\u753b\u5e03\u4e0a\u526a\u4e0b\u6765\u7684\u753b\u7eb8&#xff0c;\u6587\u4ef6\u7cfb\u7edf\u5c31\u753b\u5728\u753b\u7eb8\u4e0a\u3002\u65b0\u76d8\u52a0\u8fdb\u6765\u5c31\u662f\u5f80\u753b\u5e03\u4e0a\u6dfb\u6599&#xff0c;\u6269 LV \u5c31\u662f\u628a\u753b\u7eb8\u62c9\u5927\u2014\u2014\u53ea\u8981\u753b\u5e03\u4e0a\u8fd8\u6709\u7a7a\u4f59&#xff0c;\u6587\u4ef6\u7cfb\u7edf\u8ddf\u7740\u957f\u5c31\u884c\u3002<\/p>\n<h3>\u4e8c\u3001\u5b89\u88c5\u4e0e\u51c6\u5907<\/h3>\n<p>Ubuntu\/Debian \u4e0a\u5148\u88c5&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> lvm2<\/p>\n<p>CentOS\/Rocky \u6700\u5c0f\u5316\u5b89\u88c5\u901a\u5e38\u81ea\u5e26&#xff0c;\u7f3a\u4e86\u5c31 sudo dnf install lvm2\u3002<\/p>\n<p>\u5047\u8bbe\u65b0\u63d2\u4e86\u4e24\u5757\u7a7a\u76d8 \/dev\/sdb\u3001\/dev\/sdc&#xff0c;\u5148 lsblk \u786e\u8ba4\u6ca1\u6302\u7740\u6570\u636e&#xff0c;\u518d\u5efa PV&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> pvcreate \/dev\/sdb \/dev\/sdc<\/p>\n<p>\u9884\u671f\u8f93\u51fa&#xff1a;<\/p>\n<p>  Physical volume &#034;\/dev\/sdb&#034; successfully created.<br \/>\n  Physical volume &#034;\/dev\/sdc&#034; successfully created.<\/p>\n<p>pvcreate \u4f1a\u62b9\u6389\u76d8\u4e0a\u539f\u6709\u5206\u533a\u8868\u548c\u6570\u636e&#xff0c;\u53ea\u5bf9\u786e\u8ba4\u4e0d\u8981\u4e86\u7684\u76d8\u6267\u884c\u3002\u67e5\u770b PV&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> pvs<\/p>\n<p>\u9884\u671f\u8f93\u51fa&#xff1a;<\/p>\n<p>  PV         VG Fmt  Attr PSize   PFree<br \/>\n  \/dev\/sdb      lvm2 &#8212;  200.00g 200.00g<br \/>\n  \/dev\/sdc      lvm2 &#8212;  200.00g 200.00g<\/p>\n<h3>\u4e09\u3001\u521b\u5efa VG \u548c LV<\/h3>\n<h4>\u5efa\u5377\u7ec4<\/h4>\n<p><span class=\"token function\">sudo<\/span> vgcreate vg_data \/dev\/sdb \/dev\/sdc<\/p>\n<p>\u9884\u671f\u8f93\u51fa&#xff1a;<\/p>\n<p>  Volume group &#034;vg_data&#034; successfully created<\/p>\n<p>vg_data \u662f\u81ea\u5df1\u8d77\u7684\u540d\u5b57\u3002\u4e24\u5757\u76d8\u73b0\u5728\u5408\u6210\u4e00\u4e2a 400G \u7684\u6c60\u5b50&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> vgs<\/p>\n<p>\u9884\u671f\u8f93\u51fa&#xff1a;<\/p>\n<p>  VG      #PV #LV #SN Attr   VSize   VFree<br \/>\n  vg_data   2   0   0 wz&#8211;n- 400.99g 400.99g<\/p>\n<p>VFree \u5c31\u662f\u6c60\u5b50\u91cc\u8fd8\u5269\u591a\u5c11\u6ca1\u7528\u3002<\/p>\n<h4>\u5efa\u903b\u8f91\u5377\u5e76\u683c\u5f0f\u5316<\/h4>\n<p>\u5207\u4e00\u4e2a 100G \u7684 LV&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> lvcreate <span class=\"token parameter variable\">-n<\/span> lv_data <span class=\"token parameter variable\">-L<\/span> 100G vg_data<\/p>\n<p>\u9884\u671f\u8f93\u51fa&#xff1a;<\/p>\n<p>  Logical volume &#034;lv_data&#034; created.<\/p>\n<p>\u4e5f\u53ef\u4ee5\u7528\u5360\u6bd4\u65b9\u5f0f&#xff0c;\u628a\u6574\u4e2a\u6c60\u5b50\u4e00\u6b21\u5207\u5b8c&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> lvcreate <span class=\"token parameter variable\">-n<\/span> lv_all <span class=\"token parameter variable\">-l<\/span> <span class=\"token number\">100<\/span>%FREE vg_data<\/p>\n<p>-L \u6309\u5927\u5c0f\u7ed9&#xff08;10G&#xff09;&#xff0c;-l \u6309 PE \u6570\u91cf\u6216\u767e\u5206\u6bd4\u7ed9&#xff08;100%FREE&#xff09;&#xff0c;\u522b\u641e\u6df7\u3002<\/p>\n<p>\u683c\u5f0f\u5316\u5e76\u6302\u8f7d&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> mkfs.ext4 \/dev\/vg_data\/lv_data<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> \/data<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">mount<\/span> \/dev\/vg_data\/lv_data \/data<\/p>\n<p>LV \u7684\u8bbe\u5907\u8282\u70b9\u6709\u4e24\u4e2a\u7b49\u4ef7\u8def\u5f84&#xff1a;\/dev\/vg_data\/lv_data \u548c \/dev\/mapper\/vg_data-lv_data&#xff0c;fstab \u91cc\u5199\u54ea\u4e2a\u90fd\u884c&#xff0c;\u63a8\u8350\u524d\u8005&#xff0c;\u53ef\u8bfb\u6027\u597d\u3002<\/p>\n<h3>\u56db\u3001\u5728\u7ebf\u6269\u5bb9&#xff1a;\u6700\u5e38\u7528\u7684\u64cd\u4f5c<\/h3>\n<p>\u4e1a\u52a1\u6da8\u4e86&#xff0c;\/data \u4e0d\u591f\u7528\u4e86\u3002\u6d41\u7a0b\u662f&#xff1a;\u5148\u52a0\u76d8\u8fdb VG&#xff0c;\u518d\u6269 LV&#xff0c;\u6700\u540e\u6269\u6587\u4ef6\u7cfb\u7edf\u3002<\/p>\n<h4>\u7b2c\u4e00\u6b65&#xff1a;\u65b0\u76d8\u52a0\u5165 VG<\/h4>\n<p>\u5047\u8bbe\u53c8\u63d2\u4e86\u4e00\u5757 \/dev\/sdd&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> pvcreate \/dev\/sdd<br \/>\n<span class=\"token function\">sudo<\/span> vgextend vg_data \/dev\/sdd<\/p>\n<p>vgs \u91cc VFree \u4f1a\u591a\u51fa\u8fd9 200G\u3002<\/p>\n<h4>\u7b2c\u4e8c\u6b65&#xff1a;\u6269 LV \u548c\u6587\u4ef6\u7cfb\u7edf<\/h4>\n<p>ext4 \u53ef\u4ee5\u5728\u7ebf\u6269&#xff08;\u6302\u8f7d\u72b6\u6001\u4e0b\u76f4\u63a5\u957f&#xff09;&#xff0c;\u4e00\u6761\u547d\u4ee4\u8fde LV \u5e26\u6587\u4ef6\u7cfb\u7edf\u4e00\u8d77\u6269&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> lvextend <span class=\"token parameter variable\">-L<\/span> &#043;50G <span class=\"token parameter variable\">-r<\/span> \/dev\/vg_data\/lv_data<\/p>\n<p>\u9884\u671f\u8f93\u51fa&#xff08;\u8282\u9009&#xff09;&#xff1a;<\/p>\n<p>  Size of logical volume vg_data\/lv_data changed from 100.00 GiB to 150.00 GiB.<br \/>\n  Logical volume vg_data\/lv_data successfully resized.<br \/>\nresize2fs 1.46.5 (30-Dec-2021)<br \/>\nFilesystem at \/dev\/mapper\/vg_data-lv_data is mounted on \/data; on-line resizing required<br \/>\n&#8230;<\/p>\n<p>-r \u662f\u5173\u952e&#xff1a;\u5b83\u8ba9 lvextend \u81ea\u52a8\u8c03\u7528 resize2fs&#xff08;ext4&#xff09;\u6216 xfs_growfs&#xff08;XFS&#xff09;&#xff0c;\u4e0d\u7528\u81ea\u5df1\u518d\u8dd1\u4e00\u904d\u3002<\/p>\n<p>\u5982\u679c\u4e0d\u52a0 -r&#xff0c;\u5f97\u624b\u52a8\u5206\u4e24\u6b65&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> lvextend <span class=\"token parameter variable\">-L<\/span> &#043;50G \/dev\/vg_data\/lv_data<br \/>\n<span class=\"token function\">sudo<\/span> resize2fs \/dev\/vg_data\/lv_data     <span class=\"token comment\"># ext4<\/span><\/p>\n<p>XFS \u6ce8\u610f&#xff1a;XFS \u53ea\u80fd\u6269\u4e0d\u80fd\u7f29&#xff0c;\u800c\u4e14 xfs_growfs \u540e\u9762\u8ddf\u7684\u662f\u6302\u8f7d\u70b9&#xff0c;\u4e0d\u662f\u8bbe\u5907&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> lvextend <span class=\"token parameter variable\">-L<\/span> &#043;50G <span class=\"token parameter variable\">-r<\/span> \/dev\/vg_data\/lv_data   <span class=\"token comment\"># -r \u4f1a\u81ea\u52a8\u8c03 xfs_growfs<\/span><br \/>\n<span class=\"token comment\"># \u624b\u52a8\u5199\u6cd5&#xff1a;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> xfs_growfs \/data<\/p>\n<h3>\u4e94\u3001\u7f29\u5bb9&#xff1a;\u987a\u5e8f\u9519\u4e86\u4f1a\u4e22\u6570\u636e<\/h3>\n<p>\u7f29\u5bb9\u6bd4\u6269\u5bb9\u5371\u9669\u5f97\u591a&#xff0c;\u800c\u4e14 XFS \u6839\u672c\u4e0d\u652f\u6301\u7f29&#xff0c;\u4e0b\u9762\u53ea\u8bb2 ext4\u3002\u987a\u5e8f\u5fc5\u987b\u662f&#xff1a;\u5148\u7f29\u6587\u4ef6\u7cfb\u7edf&#xff0c;\u518d\u7f29 LV\u3002\u53cd\u8fc7\u6765\u2014\u2014\u5148\u628a LV \u5207\u5c0f&#xff0c;\u6587\u4ef6\u7cfb\u7edf\u8fd8\u4ee5\u4e3a\u81ea\u5df1\u5360\u7740\u66f4\u5927\u7684\u5730\u76d8&#xff0c;\u76f4\u63a5\u635f\u574f\u3002<\/p>\n<p>\u5b8c\u6574\u6b65\u9aa4&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">umount<\/span> \/data<br \/>\n<span class=\"token function\">sudo<\/span> e2fsck <span class=\"token parameter variable\">-f<\/span> \/dev\/vg_data\/lv_data        <span class=\"token comment\"># \u5fc5\u987b\u5148\u68c0\u67e5<\/span><br \/>\n<span class=\"token function\">sudo<\/span> resize2fs \/dev\/vg_data\/lv_data 80G    <span class=\"token comment\"># \u6587\u4ef6\u7cfb\u7edf\u7f29\u5230 80G<\/span><br \/>\n<span class=\"token function\">sudo<\/span> lvreduce <span class=\"token parameter variable\">-L<\/span> 80G \/dev\/vg_data\/lv_data  <span class=\"token comment\"># LV \u518d\u7f29\u5230 80G<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">mount<\/span> \/data<\/p>\n<p>\u9884\u671f\u8f93\u51fa&#xff08;resize2fs&#xff0c;\u8282\u9009&#xff09;&#xff1a;<\/p>\n<p>Resizing the filesystem on \/dev\/mapper\/vg_data-lv_data to 20971520 (4k) blocks.<br \/>\nThe filesystem on \/dev\/mapper\/vg_data-lv_data is now 20971520 (4k) blocks long.<\/p>\n<p>\u51e0\u4e2a\u786c\u89c4\u77e9&#xff1a;<\/p>\n<ul>\n<li>\u5fc5\u987b\u5148 umount&#xff0c;\u6302\u8f7d\u72b6\u6001\u4e0b\u7f29 ext4 \u4f1a\u51fa\u95ee\u9898\u3002<\/li>\n<li>\u5fc5\u987b\u5148 e2fsck -f&#xff0c;\u6587\u4ef6\u7cfb\u7edf\u4e0d\u5e72\u51c0\u65f6 resize2fs \u62d2\u7edd\u5e72\u6d3b\u3002<\/li>\n<li>\u65b0\u5927\u5c0f\u8981\u7ed9\u6587\u4ef6\u7cfb\u7edf\u7559\u4f59\u91cf&#xff1a;resize2fs \u5199 80G&#xff0c;lvreduce \u4e5f\u5199 80G&#xff0c;\u522b\u8ba9 LV \u6bd4\u6587\u4ef6\u7cfb\u7edf\u8fd8\u5c0f\u3002<\/li>\n<li>\u7f29\u5bb9\u524d\u628a \/data \u91cc\u7684\u91cd\u8981\u6570\u636e\u5907\u4efd\u4e00\u4efd\u3002\u8fd9\u662f\u5c11\u6570&#034;\u64cd\u4f5c\u524d\u5fc5\u987b\u5907\u4efd&#034;\u7684\u573a\u666f\u3002<\/li>\n<\/ul>\n<h3>\u516d\u3001\u5feb\u7167&#xff1a;\u7ed9 LV \u62cd\u4e2a\u7167<\/h3>\n<p>LVM \u5feb\u7167\u5728\u67d0\u4e00\u77ac\u95f4\u51bb\u7ed3 LV \u7684\u89c6\u56fe&#xff0c;\u9002\u5408\u5907\u4efd\u524d\u5148\u6253\u4e2a\u5feb\u7167&#xff0c;\u5728\u5feb\u7167\u4e0a\u8dd1\u5907\u4efd&#xff0c;\u4e0d\u5f71\u54cd\u4e1a\u52a1\u76d8\u3002<\/p>\n<p><span class=\"token function\">sudo<\/span> lvcreate <span class=\"token parameter variable\">-s<\/span> <span class=\"token parameter variable\">-n<\/span> lv_data_snap <span class=\"token parameter variable\">-L<\/span> 2G \/dev\/vg_data\/lv_data<\/p>\n<p>\u9884\u671f\u8f93\u51fa&#xff1a;<\/p>\n<p>  Logical volume &#034;lv_data_snap&#034; created.<\/p>\n<p>\u9884\u671f\u8f93\u51fa\u91cc -L 2G \u662f\u5feb\u7167\u672c\u8eab\u7684\u5bb9\u91cf&#xff0c;\u5b58&#034;\u539f LV \u5728\u5feb\u7167\u671f\u95f4\u88ab\u6539\u52a8\u7684\u6570\u636e\u5757&#034;\u3002\u539f\u76d8\u5199\u5f97\u8d8a\u591a&#xff0c;\u5feb\u7167\u5360\u7528\u8d8a\u5927&#xff0c;\u6491\u6ee1\u4e86\u5feb\u7167\u5c31\u4f5c\u5e9f\u3002\u6570\u636e\u5e93\u7c7b\u573a\u666f\u5feb\u7167\u5927\u5c0f\u6309\u9884\u671f\u53d8\u66f4\u91cf\u4f30\u3002<\/p>\n<p>\u5feb\u7167\u6302\u4e0a\u6765\u770b\u770b&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> \/mnt\/snap<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">mount<\/span> <span class=\"token parameter variable\">-o<\/span> ro \/dev\/vg_data\/lv_data_snap \/mnt\/snap<br \/>\n<span class=\"token function\">ls<\/span> \/mnt\/snap<\/p>\n<p>\u5907\u4efd\u5b8c&#xff0c;\u5220\u6389\u5feb\u7167&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">umount<\/span> \/mnt\/snap<br \/>\n<span class=\"token function\">sudo<\/span> lvremove \/dev\/vg_data\/lv_data_snap<\/p>\n<h3>\u4e03\u3001\u26a0\ufe0f \u5e38\u89c1\u9519\u8bef<\/h3>\n<li>\u7f29\u5bb9\u987a\u5e8f\u641e\u53cd&#xff1a;\u5148 lvreduce \u518d resize2fs&#xff0c;\u6587\u4ef6\u7cfb\u7edf\u76f4\u63a5\u635f\u574f\u3002\u7262\u8bb0&#034;\u6587\u4ef6\u7cfb\u7edf\u5148\u884c&#034;\u3002<\/li>\n<li>XFS \u4e0a\u8dd1 resize2fs&#xff1a;XFS \u4e0d\u8ba4&#xff0c;\u62a5 Bad magic number\u3002XFS \u7528 xfs_growfs&#xff0c;\u800c\u4e14\u4e0d\u80fd\u7f29\u3002<\/li>\n<li>\u5fd8\u4e86 -r \u4ee5\u4e3a\u6269\u5b8c\u4e86&#xff1a;LV \u5927\u4e86&#xff0c;\u6587\u4ef6\u7cfb\u7edf\u6ca1\u957f&#xff0c;df -h \u4e00\u770b\u7a7a\u95f4\u6ca1\u53d8\u3002\u8981\u4e48\u52a0 -r&#xff0c;\u8981\u4e48\u624b\u52a8\u8865\u4e00\u53e5 resize2fs \/ xfs_growfs\u3002<\/li>\n<li>\u5feb\u7167\u957f\u671f\u4e0d\u5220&#xff1a;\u5feb\u7167\u5360\u7684\u662f VG \u7684\u7a7a\u95f4&#xff0c;\u5fd8\u4e86\u5220\u4f1a\u628a\u6c60\u5403\u6ee1\u3002<\/li>\n<li>pvcreate \u7528\u5728\u6709\u6570\u636e\u7684\u76d8&#xff1a;\u5206\u533a\u8868\u76f4\u63a5\u88ab\u62b9\u3002\u6267\u884c\u524d lsblk\u3001blkid \u518d\u786e\u8ba4\u4e00\u904d\u3002<\/li>\n<h3>\u516b\u3001\u77e5\u8bc6\u6269\u5c55&#xff1a;PE \u5927\u5c0f\u9009\u9519\u7684\u4ee3\u4ef7<\/h3>\n<p>\u5efa VG \u65f6\u53ef\u4ee5\u7528 -s \u6307\u5b9a PE&#xff08;\u7269\u7406\u5757&#xff09;\u5927\u5c0f&#xff0c;\u9ed8\u8ba4 4MB&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> vgcreate <span class=\"token parameter variable\">-s<\/span> 16M vg_data \/dev\/sdb \/dev\/sdc<\/p>\n<p>PE \u662f VG \u5206\u914d\u7684\u6700\u5c0f\u9897\u7c92\u3002\u4e00\u4e2a VG \u6700\u591a\u652f\u6301 65534 \u4e2a PE&#xff0c;\u6240\u4ee5 PE \u5927\u5c0f\u76f4\u63a5\u51b3\u5b9a VG \u603b\u5bb9\u91cf\u4e0a\u9650&#xff1a;4MB \u00d7 65534 \u2248 256GB&#xff0c;16MB \u2248 1TB&#xff0c;\u5bf9\u73b0\u4ee3\u52a8\u4e0d\u52a8\u51e0\u5341 T \u7684\u5b58\u50a8\u6c60\u5c31\u4e0d\u591f\u770b\u4e86\u3002\u5927\u5bb9\u91cf\u6c60\u5b50\u4e00\u822c\u5efa VG \u65f6\u5c31\u628a PE \u8bbe\u6210 32MB \u6216 64MB\u3002<\/p>\n<p>\u5efa VG \u65f6\u6ca1\u6307\u5b9a&#xff0c;\u4e4b\u540e\u60f3\u6539 PE \u5927\u5c0f\u53ea\u80fd\u91cd\u5efa VG&#xff0c;\u6240\u4ee5\u89c4\u5212\u9636\u6bb5\u5c31\u7b97\u597d\u3002\u8fd9\u4e5f\u662f\u4e3a\u4ec0\u4e48 LVM \u9002\u5408&#034;\u957f\u671f\u89c4\u5212&#034;\u7684\u5b58\u50a8\u6c60&#xff0c;\u800c\u4e0d\u662f\u4e34\u65f6\u73a9\u73a9\u3002<\/p>\n<p>\u53e6\u4e00\u4e2a\u7701\u4e8b\u547d\u4ee4&#xff1a;vgs\u3001pvs\u3001lvs \u662f\u7b80\u8868&#xff0c;\u5199\u811a\u672c\u7528&#xff1b;vgdisplay\u3001pvdisplay\u3001lvdisplay \u662f\u8be6\u60c5&#xff0c;\u6392\u969c\u65f6\u770b\u5b8c\u6574\u4fe1\u606f\u7528\u3002\u65e5\u5e38\u8bb0 pvs \/ vgs \/ lvs \u4e09\u6761\u5c31\u591f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f20\u7edf\u5206\u533a\u4e00\u65e6\u5212\u597d&#xff0c;\u60f3\u6269\u5c31\u5f97\u5907\u4efd\u3001\u5220\u5206\u533a\u3001\u91cd\u5212\u3001\u518d\u6062\u590d&#xff0c;\u5168\u7a0b\u8981\u505c\u673a\u3002LVM&#xff08;Logical Volume Manager&#xff09;\u5728\u7269\u7406\u786c\u76d8\u548c\u6587\u4ef6\u7cfb\u7edf\u4e4b\u95f4\u52a0\u4e86\u4e00\u5c42\u62bd\u8c61&#xff1a;\u628a\u591a\u5757\u76d8\u62fc\u6210\u4e00\u4e2a\u5927\u6c60&#xff0c;\u518d\u4ece\u6c60\u91cc\u6309\u9700\u5207\u903b\u8f91\u5377\u3002\u6269\u5bb9\u7f29\u5bb9\u4e0d\u7528\u52a8\u7269\u7406\u76d8&#xff0c;\u5feb\u7167\u505a\u5907\u4efd\u4e5f\u65b9\u4fbf\u3002\u8fd9\u4e00\u7bc7\u4ece\u521b\u5efa\u3001\u5728\u7ebf\u6269\u5bb9\u3001\u7f29\u5bb9\u5230\u5feb\u7167\u5b8c\u6574\u8d70\u4e00\u904d&#xff0c;\u987a\u5e26\u628a\u6700\u5bb9\u6613\u641e\u53cd\u7684\u7f29\u5bb9\u987a\u5e8f\u8bb2\u6e05\u695a\u3002<br \/>\n\u4e00\u3001\u5148\u7406\u6e05\u4e09\u5c42\u7ed3\u6784\u6982\u5ff5\u5168\u79f0\u662f\u4ec0\u4e48PVPhys<\/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":[11653,58,43,44],"topic":[],"class_list":["post-109462","post","type-post","status-publish","format-standard","hentry","category-server","tag-11653","tag-linux","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>LVM\u903b\u8f91\u5377\u7ba1\u7406\u5b9e\u6218\uff1aPV\u3001VG\u3001LV\u521b\u5efa\u3001\u6269\u5bb9\u4e0e\u5feb\u7167 - \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\/109462.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LVM\u903b\u8f91\u5377\u7ba1\u7406\u5b9e\u6218\uff1aPV\u3001VG\u3001LV\u521b\u5efa\u3001\u6269\u5bb9\u4e0e\u5feb\u7167 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4f20\u7edf\u5206\u533a\u4e00\u65e6\u5212\u597d&#xff0c;\u60f3\u6269\u5c31\u5f97\u5907\u4efd\u3001\u5220\u5206\u533a\u3001\u91cd\u5212\u3001\u518d\u6062\u590d&#xff0c;\u5168\u7a0b\u8981\u505c\u673a\u3002LVM&#xff08;Logical Volume Manager&#xff09;\u5728\u7269\u7406\u786c\u76d8\u548c\u6587\u4ef6\u7cfb\u7edf\u4e4b\u95f4\u52a0\u4e86\u4e00\u5c42\u62bd\u8c61&#xff1a;\u628a\u591a\u5757\u76d8\u62fc\u6210\u4e00\u4e2a\u5927\u6c60&#xff0c;\u518d\u4ece\u6c60\u91cc\u6309\u9700\u5207\u903b\u8f91\u5377\u3002\u6269\u5bb9\u7f29\u5bb9\u4e0d\u7528\u52a8\u7269\u7406\u76d8&#xff0c;\u5feb\u7167\u505a\u5907\u4efd\u4e5f\u65b9\u4fbf\u3002\u8fd9\u4e00\u7bc7\u4ece\u521b\u5efa\u3001\u5728\u7ebf\u6269\u5bb9\u3001\u7f29\u5bb9\u5230\u5feb\u7167\u5b8c\u6574\u8d70\u4e00\u904d&#xff0c;\u987a\u5e26\u628a\u6700\u5bb9\u6613\u641e\u53cd\u7684\u7f29\u5bb9\u987a\u5e8f\u8bb2\u6e05\u695a\u3002 \u4e00\u3001\u5148\u7406\u6e05\u4e09\u5c42\u7ed3\u6784\u6982\u5ff5\u5168\u79f0\u662f\u4ec0\u4e48PVPhys\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/109462.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-24T00:08:47+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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/109462.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/109462.html\",\"name\":\"LVM\u903b\u8f91\u5377\u7ba1\u7406\u5b9e\u6218\uff1aPV\u3001VG\u3001LV\u521b\u5efa\u3001\u6269\u5bb9\u4e0e\u5feb\u7167 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-24T00:08:47+00:00\",\"dateModified\":\"2026-09-24T00:08:47+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/109462.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/109462.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/109462.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LVM\u903b\u8f91\u5377\u7ba1\u7406\u5b9e\u6218\uff1aPV\u3001VG\u3001LV\u521b\u5efa\u3001\u6269\u5bb9\u4e0e\u5feb\u7167\"}]},{\"@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":"LVM\u903b\u8f91\u5377\u7ba1\u7406\u5b9e\u6218\uff1aPV\u3001VG\u3001LV\u521b\u5efa\u3001\u6269\u5bb9\u4e0e\u5feb\u7167 - \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\/109462.html","og_locale":"zh_CN","og_type":"article","og_title":"LVM\u903b\u8f91\u5377\u7ba1\u7406\u5b9e\u6218\uff1aPV\u3001VG\u3001LV\u521b\u5efa\u3001\u6269\u5bb9\u4e0e\u5feb\u7167 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4f20\u7edf\u5206\u533a\u4e00\u65e6\u5212\u597d&#xff0c;\u60f3\u6269\u5c31\u5f97\u5907\u4efd\u3001\u5220\u5206\u533a\u3001\u91cd\u5212\u3001\u518d\u6062\u590d&#xff0c;\u5168\u7a0b\u8981\u505c\u673a\u3002LVM&#xff08;Logical Volume Manager&#xff09;\u5728\u7269\u7406\u786c\u76d8\u548c\u6587\u4ef6\u7cfb\u7edf\u4e4b\u95f4\u52a0\u4e86\u4e00\u5c42\u62bd\u8c61&#xff1a;\u628a\u591a\u5757\u76d8\u62fc\u6210\u4e00\u4e2a\u5927\u6c60&#xff0c;\u518d\u4ece\u6c60\u91cc\u6309\u9700\u5207\u903b\u8f91\u5377\u3002\u6269\u5bb9\u7f29\u5bb9\u4e0d\u7528\u52a8\u7269\u7406\u76d8&#xff0c;\u5feb\u7167\u505a\u5907\u4efd\u4e5f\u65b9\u4fbf\u3002\u8fd9\u4e00\u7bc7\u4ece\u521b\u5efa\u3001\u5728\u7ebf\u6269\u5bb9\u3001\u7f29\u5bb9\u5230\u5feb\u7167\u5b8c\u6574\u8d70\u4e00\u904d&#xff0c;\u987a\u5e26\u628a\u6700\u5bb9\u6613\u641e\u53cd\u7684\u7f29\u5bb9\u987a\u5e8f\u8bb2\u6e05\u695a\u3002 \u4e00\u3001\u5148\u7406\u6e05\u4e09\u5c42\u7ed3\u6784\u6982\u5ff5\u5168\u79f0\u662f\u4ec0\u4e48PVPhys","og_url":"https:\/\/www.wsisp.com\/helps\/109462.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-24T00:08:47+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/109462.html","url":"https:\/\/www.wsisp.com\/helps\/109462.html","name":"LVM\u903b\u8f91\u5377\u7ba1\u7406\u5b9e\u6218\uff1aPV\u3001VG\u3001LV\u521b\u5efa\u3001\u6269\u5bb9\u4e0e\u5feb\u7167 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-24T00:08:47+00:00","dateModified":"2026-09-24T00:08:47+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/109462.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/109462.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/109462.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"LVM\u903b\u8f91\u5377\u7ba1\u7406\u5b9e\u6218\uff1aPV\u3001VG\u3001LV\u521b\u5efa\u3001\u6269\u5bb9\u4e0e\u5feb\u7167"}]},{"@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\/109462","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=109462"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/109462\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=109462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=109462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=109462"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=109462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}