{"id":72755,"date":"2026-02-06T14:05:56","date_gmt":"2026-02-06T06:05:56","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/72755.html"},"modified":"2026-02-06T14:05:56","modified_gmt":"2026-02-06T06:05:56","slug":"lvm%e5%88%86%e5%8c%ba%e5%88%9b%e5%bb%ba%e3%80%81%e6%95%b0%e6%8d%ae%e8%bf%81%e7%a7%bb%e4%b8%8e%e9%87%8d%e6%96%b0%e6%8c%82%e8%bd%bd%e6%93%8d%e4%bd%9c%e6%96%87%e6%a1%a3","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/72755.html","title":{"rendered":"LVM\u5206\u533a\u521b\u5efa\u3001\u6570\u636e\u8fc1\u79fb\u4e0e\u91cd\u65b0\u6302\u8f7d\u64cd\u4f5c\u6587\u6863"},"content":{"rendered":"<h2>LVM\u5206\u533a\u521b\u5efa\u3001\u6570\u636e\u8fc1\u79fb\u4e0e\u91cd\u65b0\u6302\u8f7d\u64cd\u4f5c\u6587\u6863<\/h2>\n<h3>\u6587\u6863\u8bf4\u660e<\/h3>\n<li>\u64cd\u4f5c\u573a\u666f&#xff1a;\u5c06\u539f\u6709\u6570\u636e\u76ee\u5f55&#xff08;\/opt\/data&#xff09;\u8fc1\u79fb\u81f3\u65b0\u5efaLVM\u903b\u8f91\u5377&#xff0c;\u63d0\u5347\u78c1\u76d8\u5b58\u50a8\u7684\u7075\u6d3b\u6027&#xff08;\u6269\u5bb9\u3001\u7f29\u5bb9\u7b49&#xff09;&#xff0c;\u53ef\u5728\u865a\u62df\u673a\u4e0a\u5148\u64cd\u4f5c<\/li>\n<li>\u64cd\u4f5c\u5bf9\u8c61&#xff1a;Linux\u670d\u52a1\u5668&#xff08;\u4ee5CentOS 7\/8\u4e3a\u4f8b&#xff09;<\/li>\n<li>\u524d\u7f6e\u6761\u4ef6&#xff1a;\n<ul>\n<li>\u62e5\u6709\u670d\u52a1\u5668root\u6743\u9650&#xff08;\u907f\u514d\u6743\u9650\u4e0d\u8db3\u5bfc\u81f4\u64cd\u4f5c\u5931\u8d25&#xff09;<\/li>\n<li>\u786e\u8ba4\u5f85\u4f7f\u7528\u78c1\u76d8&#xff08;\u5982\/dev\/vdb&#xff09;\u6709\u672a\u5206\u533a\u7a7a\u95f2\u7a7a\u95f4<\/li>\n<li>\u5907\u4efd\/opt\/data\u4e0b\u91cd\u8981\u6570\u636e&#xff08;\u907f\u514d\u64cd\u4f5c\u5931\u8bef\u5bfc\u81f4\u6570\u636e\u4e22\u5931&#xff0c;\u53cc\u91cd\u4fdd\u969c&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>\u6838\u5fc3\u5de5\u5177&#xff1a;fdisk&#xff08;\u5206\u533a&#xff09;\u3001pvcreate\/vgcreate\/lvcreate&#xff08;LVM\u521b\u5efa&#xff09;\u3001mkfs&#xff08;\u683c\u5f0f\u5316&#xff09;\u3001mount\/umount&#xff08;\u6302\u8f7d\/\u5378\u8f7d&#xff09;\u3001rsync&#xff08;\u6570\u636e\u8fc1\u79fb&#xff0c;\u6bd4cp\u66f4\u7a33\u5b9a&#xff09;<\/li>\n<hr \/>\n<h3>\u4e00\u3001\u524d\u7f6e\u51c6\u5907\u5de5\u4f5c<\/h3>\n<h4>1. \u5b89\u88c5LVM\u76f8\u5173\u5de5\u5177&#xff08;\u82e5\u672a\u5b89\u88c5&#xff09;<\/h4>\n<p><span class=\"token comment\"># CentOS\/RHEL \u7cfb\u5217<\/span><br \/>\nyum <span class=\"token function\">install<\/span> lvm2 -y<\/p>\n<p><span class=\"token comment\"># Ubuntu\/Debian \u7cfb\u5217<\/span><br \/>\n<span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> lvm2 -y<\/p>\n<h4>2. \u67e5\u770b\u78c1\u76d8\u4e0e\u5206\u533a\u72b6\u6001&#xff08;\u786e\u8ba4\u7a7a\u95f2\u78c1\u76d8&#xff09;<\/h4>\n<p><span class=\"token comment\"># \u67e5\u770b\u6240\u6709\u78c1\u76d8\u53ca\u5206\u533a\u4fe1\u606f&#xff0c;\u786e\u8ba4\u76ee\u6807\u78c1\u76d8&#xff08;\u5982\/dev\/vdb&#xff09;<\/span><br \/>\n<span class=\"token function\">fdisk<\/span> -l<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u5f53\u524d\u6302\u8f7d\u72b6\u6001&#xff0c;\u8bb0\u5f55\/opt\/data\u7684\u539f\u6709\u6302\u8f7d\u4fe1\u606f&#xff08;\u5982\u539f\u6709\u5206\u533a\/dev\/vdb1&#xff09;<\/span><br \/>\n<span class=\"token function\">df<\/span> -hT<\/p>\n<h4>3. \u786e\u8ba4\u76ee\u6807\u670d\u52a1\u540d\u79f0&#xff08;\u540e\u7eed\u5173\u95ed\/\u542f\u52a8\u670d\u52a1&#xff09;<\/h4>\n<p><span class=\"token comment\"># \u793a\u4f8b&#xff1a;\u5047\u8bbe\u670d\u52a1\u540d\u79f0\u4e3adata-service&#xff08;\u8bf7\u66ff\u6362\u4e3a\u5b9e\u9645\u670d\u52a1\u540d&#xff09;<\/span><br \/>\n<span class=\"token comment\"># \u67e5\u770b\u670d\u52a1\u72b6\u6001<\/span><br \/>\nsystemctl status data-service<\/p>\n<p><span class=\"token comment\"># \u8bb0\u5f55\u670d\u52a1\u542f\u52a8\/\u505c\u6b62\u547d\u4ee4&#xff08;\u540e\u7eed\u590d\u7528&#xff09;<\/span><br \/>\n<span class=\"token comment\"># \u542f\u52a8&#xff1a;systemctl start data-service<\/span><br \/>\n<span class=\"token comment\"># \u505c\u6b62&#xff1a;systemctl stop data-service<\/span><\/p>\n<hr \/>\n<h3>\u4e8c\u3001\u8be6\u7ec6\u64cd\u4f5c\u6b65\u9aa4<\/h3>\n<h4>\u6b65\u9aa41&#xff1a;\u521b\u5efaLVM\u5206\u533a&#xff08;\u5b8c\u6574\u6d41\u7a0b&#xff1a;\u5206\u533a\u2192\u7269\u7406\u5377\u2192\u5377\u7ec4\u2192\u903b\u8f91\u5377\u2192\u683c\u5f0f\u5316&#xff09;<\/h4>\n<h5>1.1 \u78c1\u76d8\u5206\u533a&#xff08;\u8bbe\u7f6eLVM\u4e13\u7528\u5206\u533a\u7c7b\u578b8e&#xff09;<\/h5>\n<p>\u4ee5\u76ee\u6807\u78c1\u76d8\/dev\/vdb\u4e3a\u4f8b&#xff0c;\u521b\u5efa\u4e00\u4e2a\u65b0\u5206\u533a\/dev\/vdb2&#xff08;\u907f\u514d\u8986\u76d6\u539f\u6709\u5206\u533a\/dev\/vdb1&#xff09;<\/p>\n<p><span class=\"token comment\"># \u8fdb\u5165fdisk\u5206\u533a\u5de5\u5177&#xff0c;\u64cd\u4f5c\/dev\/vdb\u78c1\u76d8<\/span><br \/>\n<span class=\"token function\">fdisk<\/span> \/dev\/vdb<\/p>\n<p><span class=\"token comment\"># \u540e\u7eed\u4ea4\u4e92\u547d\u4ee4&#xff08;\u6309\u987a\u5e8f\u8f93\u5165&#xff09;&#xff1a;<\/span><br \/>\nn  <span class=\"token comment\"># \u65b0\u5efa\u5206\u533a<\/span><br \/>\np  <span class=\"token comment\"># \u9009\u62e9\u4e3b\u5206\u533a&#xff08;\u65b0\u624b\u4f18\u5148\u9009\u62e9\u4e3b\u5206\u533a&#xff0c;\u7b80\u5355\u6613\u7ba1\u7406&#xff09;<\/span><br \/>\n<span class=\"token operator\">&lt;<\/span>\u56de\u8f66<span class=\"token operator\">&gt;<\/span>  <span class=\"token comment\"># \u5206\u533a\u53f7&#xff0c;\u9ed8\u8ba4\u5373\u53ef&#xff08;\u59822&#xff09;<\/span><br \/>\n<span class=\"token operator\">&lt;<\/span>\u56de\u8f66<span class=\"token operator\">&gt;<\/span>  <span class=\"token comment\"># \u8d77\u59cb\u6247\u533a&#xff0c;\u9ed8\u8ba4\u5373\u53ef&#xff08;\u4f7f\u7528\u7a7a\u95f2\u78c1\u76d8\u8d77\u59cb\u4f4d\u7f6e&#xff09;<\/span><br \/>\n<span class=\"token operator\">&lt;<\/span>\u56de\u8f66<span class=\"token operator\">&gt;<\/span>  <span class=\"token comment\"># \u7ed3\u675f\u6247\u533a&#xff0c;\u9ed8\u8ba4\u5373\u53ef&#xff08;\u4f7f\u7528\u5168\u90e8\u7a7a\u95f2\u7a7a\u95f4&#xff0c;\u6216\u6307\u5b9a\u5927\u5c0f\u5982&#043;100G&#xff09;<\/span><br \/>\nt  <span class=\"token comment\"># \u4fee\u6539\u5206\u533a\u7c7b\u578b<\/span><br \/>\n<span class=\"token operator\">&lt;<\/span>\u56de\u8f66<span class=\"token operator\">&gt;<\/span>  <span class=\"token comment\"># \u9009\u62e9\u521a\u521b\u5efa\u7684\u5206\u533a&#xff08;\u59822&#xff09;<\/span><br \/>\n8e  <span class=\"token comment\"># \u6539\u4e3aLVM\u4e13\u7528\u5206\u533a\u7c7b\u578b&#xff08;8e\u5bf9\u5e94LVM&#xff09;<\/span><br \/>\nw  <span class=\"token comment\"># \u4fdd\u5b58\u5206\u533a\u8868\u5e76\u9000\u51fafdisk<\/span><\/p>\n<h5>1.2 \u5237\u65b0\u78c1\u76d8\u5206\u533a\u8868&#xff08;\u8ba9\u7cfb\u7edf\u8bc6\u522b\u65b0\u5206\u533a&#xff09;<\/h5>\n<p>partprobe \/dev\/vdb<\/p>\n<h5>1.3 \u521b\u5efaLVM\u7269\u7406\u5377&#xff08;PV&#xff09;<\/h5>\n<p><span class=\"token comment\"># \u57fa\u4e8e\u521a\u521b\u5efa\u7684\u5206\u533a\/dev\/vdb2\u521b\u5efa\u7269\u7406\u5377<\/span><br \/>\npvcreate \/dev\/vdb2<\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1\u7269\u7406\u5377\u521b\u5efa\u7ed3\u679c&#xff08;\u67e5\u770bPV\u72b6\u6001\u3001\u5bb9\u91cf&#xff09;<\/span><br \/>\npvdisplay<\/p>\n<h5>1.4 \u521b\u5efaLVM\u5377\u7ec4&#xff08;VG&#xff09;<\/h5>\n<p>\u5377\u7ec4\u540d\u79f0\u81ea\u5b9a\u4e49&#xff08;\u793a\u4f8b&#xff1a;data-vg&#xff09;&#xff0c;\u540e\u7eed\u53ef\u5411\u8be5\u5377\u7ec4\u6dfb\u52a0\u66f4\u591a\u7269\u7406\u5377\u6269\u5bb9<\/p>\n<p><span class=\"token comment\"># \u57fa\u4e8e\u7269\u7406\u5377\/dev\/vdb2\u521b\u5efa\u5377\u7ec4data-vg<\/span><br \/>\nvgcreate data-vg \/dev\/vdb2<\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1\u5377\u7ec4\u521b\u5efa\u7ed3\u679c&#xff08;\u67e5\u770bVG\u540d\u79f0\u3001\u5bb9\u91cf\u3001\u5305\u542b\u7684PV&#xff09;<\/span><br \/>\nvgdisplay<\/p>\n<h5>1.5 \u521b\u5efaLVM\u903b\u8f91\u5377&#xff08;LV&#xff09;<\/h5>\n<p>\u903b\u8f91\u5377\u540d\u79f0\u81ea\u5b9a\u4e49&#xff08;\u793a\u4f8b&#xff1a;data-lv&#xff09;&#xff0c;\u6307\u5b9a\u5bb9\u91cf&#xff08;\u793a\u4f8b&#xff1a;\u4f7f\u7528\u5377\u7ec4\u5168\u90e8\u5bb9\u91cf-l 100%VG&#xff0c;\u6216\u6307\u5b9a\u5927\u5c0f-L 100G&#xff09;<\/p>\n<p><span class=\"token comment\"># \u57fa\u4e8e\u5377\u7ec4data-vg\u521b\u5efa\u903b\u8f91\u5377data-lv&#xff0c;\u4f7f\u7528\u5168\u90e8\u5377\u7ec4\u5bb9\u91cf<\/span><br \/>\nlvcreate -l <span class=\"token number\">100<\/span>%VG -n data-lv data-vg<\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1\u903b\u8f91\u5377\u521b\u5efa\u7ed3\u679c&#xff08;\u67e5\u770bLV\u8def\u5f84\u3001\u5bb9\u91cf\u3001\u6240\u5c5eVG&#xff09;<\/span><br \/>\n<span class=\"token comment\"># \u6838\u5fc3\u8def\u5f84&#xff1a;\/dev\/mapper\/data&#8211;vg-data&#8211;lv&#xff08;\u6216\u7b80\u5316\u8def\u5f84\/dev\/data-vg\/data-lv&#xff09;<\/span><br \/>\nlvdisplay<\/p>\n<h5>1.6 \u683c\u5f0f\u5316\u903b\u8f91\u5377&#xff08;\u5fc5\u987b\u6b65\u9aa4&#xff0c;\u5426\u5219\u65e0\u6cd5\u6302\u8f7d&#xff09;<\/h5>\n<p>\u9009\u62e9\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b&#xff08;\u63a8\u8350xfs\u6216ext4&#xff0c;CentOS 7\u9ed8\u8ba4xfs&#xff09;<\/p>\n<p><span class=\"token comment\"># \u683c\u5f0f\u5316\u903b\u8f91\u5377&#xff08;xfs\u683c\u5f0f&#xff0c;\u793a\u4f8b\u8def\u5f84&#xff09;<\/span><br \/>\nmkfs.xfs \/dev\/mapper\/data&#8211;vg-data&#8211;lv<\/p>\n<p><span class=\"token comment\"># \u82e5\u9700ext4\u683c\u5f0f&#xff0c;\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4<\/span><br \/>\n<span class=\"token comment\"># mkfs.ext4 \/dev\/mapper\/data&#8211;vg-data&#8211;lv<\/span><\/p>\n<h5>1.7 \u4e34\u65f6\u6302\u8f7d\u903b\u8f91\u5377&#xff08;\u9a8c\u8bc1\u53ef\u7528\u6027&#xff0c;\u540e\u7eed\u5c06\u66ff\u6362\u4e3a\u539f\u76ee\u5f55&#xff09;<\/h5>\n<p><span class=\"token comment\"># \u5148\u521b\u5efa\u4e34\u65f6\u6302\u8f7d\u76ee\u5f55&#xff08;\u53ef\u9009&#xff0c;\u4ec5\u7528\u4e8e\u9a8c\u8bc1&#xff09;<\/span><br \/>\n<span class=\"token function\">mkdir<\/span> -p \/opt\/data_temp<\/p>\n<p><span class=\"token comment\"># \u6302\u8f7d\u903b\u8f91\u5377\u5230\u4e34\u65f6\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">mount<\/span> \/dev\/mapper\/data&#8211;vg-data&#8211;lv \/opt\/data_temp<\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1\u6302\u8f7d\u7ed3\u679c&#xff08;\u67e5\u770b\u662f\u5426\u6302\u8f7d\u6210\u529f\u3001\u78c1\u76d8\u5bb9\u91cf&#xff09;<\/span><br \/>\n<span class=\"token function\">df<\/span> -hT <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> data-lv<\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1\u5b8c\u6210\u540e&#xff0c;\u5378\u8f7d\u4e34\u65f6\u76ee\u5f55&#xff08;\u51c6\u5907\u540e\u7eed\u6b63\u5f0f\u6302\u8f7d&#xff09;<\/span><br \/>\n<span class=\"token function\">umount<\/span> \/opt\/data_temp<br \/>\n<span class=\"token function\">rm<\/span> -rf \/opt\/data_temp<\/p>\n<h4>\u6b65\u9aa42&#xff1a;\u505c\u6b62\u76f8\u5173\u670d\u52a1&#xff0c;\u8fc1\u79fb\u539f\u6709\u6570\u636e<\/h4>\n<h5>2.1 \u505c\u6b62\u76ee\u6807\u670d\u52a1&#xff08;\u907f\u514d\u6570\u636e\u8bfb\u5199\u51b2\u7a81&#xff0c;\u4fdd\u8bc1\u6570\u636e\u4e00\u81f4\u6027&#xff09;<\/h5>\n<p><span class=\"token comment\"># \u66ff\u6362\u4e3a\u5b9e\u9645\u670d\u52a1\u540d\u79f0&#xff08;\u793a\u4f8b&#xff1a;data-service&#xff09;<\/span><br \/>\nsystemctl stop data-service<\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1\u670d\u52a1\u662f\u5426\u505c\u6b62&#xff08;\u786e\u4fdd\u72b6\u6001\u4e3ainactive (dead)&#xff09;<\/span><br \/>\nsystemctl status data-service<\/p>\n<h5>2.2 \u8fc1\u79fb\/opt\/data\u6570\u636e\u81f3\u4e34\u65f6\u76ee\u5f55&#xff08;\u6216\u76f4\u63a5\u8fc1\u79fb&#xff0c;\u63a8\u8350rsync\u66f4\u7a33\u5b9a&#xff09;<\/h5>\n<p>rsync\u76f8\u6bd4cp -r&#xff0c;\u652f\u6301\u65ad\u70b9\u7eed\u4f20\u3001\u4fdd\u7559\u6587\u4ef6\u6743\u9650\/\u5c5e\u6027&#xff0c;\u66f4\u9002\u5408\u751f\u4ea7\u73af\u5883\u6570\u636e\u8fc1\u79fb<\/p>\n<p><span class=\"token comment\"># \u65b9\u6cd51&#xff1a;\u4f7f\u7528rsync\u8fc1\u79fb&#xff08;\u63a8\u8350&#xff0c;\u4fdd\u7559\u6587\u4ef6\u6240\u6709\u5c5e\u6027&#xff0c;\u663e\u793a\u8fc1\u79fb\u8fdb\u5ea6&#xff09;<\/span><br \/>\n<span class=\"token function\">rsync<\/span> -avz \/opt\/data\/ \/opt\/new\/<\/p>\n<p><span class=\"token comment\"># \u65b9\u6cd52&#xff1a;\u4f7f\u7528cp -r\u8fc1\u79fb&#xff08;\u4f60\u7684\u539f\u59cb\u547d\u4ee4&#xff0c;\u5907\u7528&#xff09;<\/span><br \/>\n<span class=\"token comment\"># cp -rp \/opt\/data \/opt\/new &#xff08;\u6dfb\u52a0-p\u53c2\u6570\u4fdd\u7559\u6587\u4ef6\u6743\u9650&#xff09;<\/span><\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1\u6570\u636e\u8fc1\u79fb\u7ed3\u679c&#xff08;\u5bf9\u6bd4\u6e90\u76ee\u5f55\u548c\u76ee\u6807\u76ee\u5f55\u7684\u6587\u4ef6\u6570\u91cf\u3001\u5927\u5c0f&#xff0c;\u786e\u4fdd\u65e0\u4e22\u5931&#xff09;<\/span><br \/>\n<span class=\"token function\">diff<\/span> -r \/opt\/data \/opt\/new  <span class=\"token comment\"># \u65e0\u8f93\u51fa\u5219\u8868\u793a\u6570\u636e\u4e00\u81f4<\/span><br \/>\n<span class=\"token function\">du<\/span> -sh \/opt\/data  <span class=\"token comment\"># \u67e5\u770b\u6e90\u76ee\u5f55\u5927\u5c0f<\/span><br \/>\n<span class=\"token function\">du<\/span> -sh \/opt\/new   <span class=\"token comment\"># \u67e5\u770b\u76ee\u6807\u76ee\u5f55\u5927\u5c0f&#xff0c;\u5e94\u4e0e\u6e90\u76ee\u5f55\u4e00\u81f4<\/span><\/p>\n<h4>\u6b65\u9aa43&#xff1a;\u5378\u8f7d\u539f\u6709\u5206\u533a&#xff08;\u89e3\u9664\u539f\u76ee\u5f55\u4e0e\u65e7\u5206\u533a\u7684\u5173\u8054&#xff09;<\/h4>\n<h5>3.1 \u5148\u786e\u8ba4\u539f\u6709\u5206\u533a\u662f\u5426\u88ab\u5360\u7528&#xff08;\u907f\u514d\u5378\u8f7d\u5931\u8d25&#xff09;<\/h5>\n<p><span class=\"token comment\"># \u65b9\u6cd51&#xff1a;\u67e5\u770b\/opt\/data\u7684\u5360\u7528\u8fdb\u7a0b<\/span><br \/>\n<span class=\"token function\">fuser<\/span> -mv \/opt\/data<\/p>\n<p><span class=\"token comment\"># \u65b9\u6cd52&#xff1a;\u67e5\u770b\/opt\/data\u7684\u6253\u5f00\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">lsof<\/span> \/opt\/data<\/p>\n<h5>3.2 \u82e5\u6709\u5360\u7528\u8fdb\u7a0b&#xff0c;\u5148\u7ec8\u6b62\u8fdb\u7a0b&#xff08;\u6216\u518d\u6b21\u786e\u8ba4\u670d\u52a1\u5df2\u505c\u6b62&#xff09;<\/h5>\n<p><span class=\"token comment\"># \u7ec8\u6b62\u5360\u7528\u8fdb\u7a0b&#xff08;\u66ff\u6362\u4e3a\u5b9e\u9645\u8fdb\u7a0bID&#xff0c;\u793a\u4f8b&#xff1a;12345&#xff09;<\/span><br \/>\n<span class=\"token function\">kill<\/span> -9 <span class=\"token number\">12345<\/span><\/p>\n<h5>3.3 \u5378\u8f7d\u539f\u6709\u5206\u533a&#xff08;\u4e24\u79cd\u65b9\u5f0f\u4e8c\u9009\u4e00&#xff0c;\u4f18\u5148\u9009\u62e9\u6302\u8f7d\u70b9\u5378\u8f7d&#xff09;<\/h5>\n<p><span class=\"token comment\"># \u65b9\u5f0f1&#xff1a;\u901a\u8fc7\u6302\u8f7d\u70b9\u5378\u8f7d&#xff08;\u63a8\u8350&#xff0c;\u66f4\u7a33\u59a5&#xff09;<\/span><br \/>\n<span class=\"token function\">umount<\/span> \/opt\/data<\/p>\n<p><span class=\"token comment\"># \u65b9\u5f0f2&#xff1a;\u901a\u8fc7\u8bbe\u5907\u540d\u5378\u8f7d&#xff08;\u5907\u7528&#xff0c;\u82e5\u65b9\u5f0f1\u5931\u8d25&#xff09;<\/span><br \/>\n<span class=\"token comment\"># umount \/dev\/vdb1<\/span><\/p>\n<h5>3.4 \u9a8c\u8bc1\u5378\u8f7d\u7ed3\u679c&#xff08;\/opt\/data\u4e0d\u518d\u5173\u8054\u4efb\u4f55\u8bbe\u5907&#xff09;<\/h5>\n<p><span class=\"token function\">df<\/span> -hT <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> \/opt\/data  <span class=\"token comment\"># \u65e0\u8f93\u51fa\u5219\u8868\u793a\u5378\u8f7d\u6210\u529f<\/span><\/p>\n<h4>\u6b65\u9aa44&#xff1a;\u6302\u8f7dLVM\u903b\u8f91\u5377\u81f3\u539f\u76ee\u5f55\/opt\/data<\/h4>\n<h5>4.1 \u6302\u8f7d\u903b\u8f91\u5377\u5230\/opt\/data<\/h5>\n<p><span class=\"token comment\"># \u6302\u8f7dLVM\u903b\u8f91\u5377\u5230\u539f\u76ee\u5f55&#xff08;\u6838\u5fc3\u547d\u4ee4&#xff0c;\u8def\u5f84\u4e0e\u6b65\u9aa41.5\u7684LV\u8def\u5f84\u4e00\u81f4&#xff09;<\/span><br \/>\n<span class=\"token function\">mount<\/span> \/dev\/mapper\/data&#8211;vg-data&#8211;lv \/opt\/data<\/p>\n<h5>4.2 \u9a8c\u8bc1\u6302\u8f7d\u7ed3\u679c&#xff08;\u786e\u8ba4\u903b\u8f91\u5377\u5df2\u6210\u529f\u6302\u8f7d\u5230\/opt\/data&#xff09;<\/h5>\n<p><span class=\"token function\">df<\/span> -hT <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> \/opt\/data<br \/>\n<span class=\"token comment\"># \u8f93\u51fa\u5e94\u5305\u542b&#xff1a;\/dev\/mapper\/data&#8211;vg-data&#8211;lv  xfs\/ext4  \u5bb9\u91cf  \u5df2\u7528  \u53ef\u7528  \u4f7f\u7528\u7387  \/opt\/data<\/span><\/p>\n<h5>4.3 \u6062\u590d\u539f\u6709\u6570\u636e&#xff08;\u5c06\u8fc1\u79fb\u81f3\/opt\/new\u7684\u6570\u636e\u590d\u5236\u56de\/opt\/data&#xff09;<\/h5>\n<p><span class=\"token comment\"># \u7528rsync\u6062\u590d\u6570\u636e&#xff08;\u4fdd\u7559\u5c5e\u6027&#xff0c;\u8986\u76d6\u7a7a\u76ee\u5f55\/opt\/data&#xff09;<\/span><br \/>\n<span class=\"token function\">rsync<\/span> -avz \/opt\/new\/ \/opt\/data\/<\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1\u6570\u636e\u6062\u590d\u7ed3\u679c&#xff08;\u786e\u4fdd\u6570\u636e\u5b8c\u6574&#xff09;<\/span><br \/>\n<span class=\"token function\">diff<\/span> -r \/opt\/new \/opt\/data<br \/>\n<span class=\"token function\">du<\/span> -sh \/opt\/data<\/p>\n<h5>4.4 \u914d\u7f6e\u5f00\u673a\u81ea\u52a8\u6302\u8f7d&#xff08;\u907f\u514d\u670d\u52a1\u5668\u91cd\u542f\u540e\u6302\u8f7d\u5931\u6548&#xff0c;\u6838\u5fc3\u4f18\u5316\u6b65\u9aa4&#xff09;<\/h5>\n<p>\u82e5\u4e0d\u914d\u7f6e&#xff0c;\u91cd\u542f\u670d\u52a1\u5668\u540e\u903b\u8f91\u5377\u5c06\u65e0\u6cd5\u81ea\u52a8\u6302\u8f7d&#xff0c;\u5bfc\u81f4\u670d\u52a1\u5f02\u5e38<\/p>\n<p><span class=\"token comment\"># \u6b65\u9aa41&#xff1a;\u67e5\u770bLVM\u903b\u8f91\u5377\u7684UUID&#xff08;\u552f\u4e00\u6807\u8bc6&#xff0c;\u907f\u514d\u8bbe\u5907\u540d\u53d8\u66f4\u5bfc\u81f4\u6302\u8f7d\u5931\u8d25&#xff09;<\/span><br \/>\nblkid \/dev\/mapper\/data&#8211;vg-data&#8211;lv<\/p>\n<p><span class=\"token comment\"># \u793a\u4f8b\u8f93\u51fa&#xff1a;\/dev\/mapper\/data&#8211;vg-data&#8211;lv: UUID&#061;&#034;xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&#034; TYPE&#061;&#034;xfs&#034;<\/span><\/p>\n<p><span class=\"token comment\"># \u6b65\u9aa42&#xff1a;\u7f16\u8f91\/etc\/fstab\u6587\u4ef6&#xff0c;\u6dfb\u52a0\u81ea\u52a8\u6302\u8f7d\u914d\u7f6e<\/span><br \/>\n<span class=\"token function\">vi<\/span> \/etc\/fstab<\/p>\n<p><span class=\"token comment\"># \u6b65\u9aa43&#xff1a;\u5728\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9&#xff08;\u590d\u5236\u4e0a\u8ff0UUID&#xff0c;\u66ff\u6362\u5bf9\u5e94\u5b57\u6bb5&#xff09;<\/span><br \/>\n<span class=\"token assign-left variable\">UUID<\/span><span class=\"token operator\">&#061;<\/span>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx  \/opt\/data  xfs  defaults  <span class=\"token number\">0<\/span>  <span class=\"token number\">0<\/span><br \/>\n<span class=\"token comment\"># \u5b57\u6bb5\u8bf4\u660e&#xff1a;UUID \u2192 \u903b\u8f91\u5377\u552f\u4e00\u6807\u8bc6&#xff1b;\/opt\/data \u2192 \u6302\u8f7d\u70b9&#xff1b;xfs \u2192 \u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b&#xff1b;defaults \u2192 \u6302\u8f7d\u9009\u9879&#xff1b;0 0 \u2192 \u5907\u4efd\u4e0e\u68c0\u67e5\u53c2\u6570<\/span><\/p>\n<p><span class=\"token comment\"># \u6b65\u9aa44&#xff1a;\u9a8c\u8bc1\/etc\/fstab\u914d\u7f6e\u662f\u5426\u6b63\u786e&#xff08;\u65e0\u62a5\u9519\u5219\u8868\u793a\u914d\u7f6e\u6b63\u5e38&#xff09;<\/span><br \/>\n<span class=\"token function\">mount<\/span> -a<\/p>\n<p><span class=\"token comment\"># \u6b65\u9aa45&#xff1a;\u518d\u6b21\u9a8c\u8bc1\u6302\u8f7d\u72b6\u6001&#xff08;\u786e\u4fdd\u5f00\u673a\u81ea\u52a8\u6302\u8f7d\u914d\u7f6e\u751f\u6548&#xff09;<\/span><br \/>\n<span class=\"token function\">df<\/span> -hT <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> \/opt\/data<\/p>\n<h4>\u6b65\u9aa45&#xff1a;\u542f\u52a8\u670d\u52a1&#xff0c;\u9a8c\u8bc1\u4e1a\u52a1\u53ef\u7528\u6027<\/h4>\n<h5>5.1 \u542f\u52a8\u76ee\u6807\u670d\u52a1<\/h5>\n<p><span class=\"token comment\"># \u66ff\u6362\u4e3a\u5b9e\u9645\u670d\u52a1\u540d\u79f0&#xff08;\u793a\u4f8b&#xff1a;data-service&#xff09;<\/span><br \/>\nsystemctl start data-service<\/p>\n<h5>5.2 \u9a8c\u8bc1\u670d\u52a1\u8fd0\u884c\u72b6\u6001<\/h5>\n<p><span class=\"token comment\"># \u786e\u4fdd\u670d\u52a1\u72b6\u6001\u4e3aactive (running)<\/span><br \/>\nsystemctl status data-service<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u670d\u52a1\u65e5\u5fd7&#xff0c;\u786e\u8ba4\u65e0\u62a5\u9519&#xff08;\u793a\u4f8b\u65e5\u5fd7\u8def\u5f84&#xff0c;\u66ff\u6362\u4e3a\u5b9e\u9645\u8def\u5f84&#xff09;<\/span><br \/>\n<span class=\"token function\">tail<\/span> -f \/var\/log\/data-service.log<\/p>\n<h5>5.3 \u9a8c\u8bc1\u4e1a\u52a1\u6700\u7ec8\u53ef\u7528\u6027&#xff08;\u5173\u952e\u6b65\u9aa4&#xff09;<\/h5>\n<ul>\n<li>\u8bbf\u95ee\u8be5\u670d\u52a1\u5bf9\u5e94\u7684\u4e1a\u52a1\u529f\u80fd&#xff08;\u5982\u63a5\u53e3\u8c03\u7528\u3001\u9875\u9762\u8bbf\u95ee\u7b49&#xff09;<\/li>\n<li>\u67e5\u770b\/opt\/data\u76ee\u5f55\u4e0b\u662f\u5426\u6709\u65b0\u7684\u4e1a\u52a1\u6570\u636e\u751f\u6210&#xff08;\u786e\u8ba4\u8bfb\u5199\u6b63\u5e38&#xff09;<\/li>\n<li>\u518d\u6b21\u9a8c\u8bc1\u6302\u8f7d\u72b6\u6001&#xff08;\u786e\u4fdd\u670d\u52a1\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u6302\u8f7d\u672a\u5931\u6548&#xff09;<\/li>\n<\/ul>\n<p><span class=\"token function\">df<\/span> -hT <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> \/opt\/data<\/p>\n<h4>\u6b65\u9aa46&#xff1a;\u6e05\u7406\u4e34\u65f6\u6587\u4ef6&#xff08;\u53ef\u9009&#xff0c;\u751f\u4ea7\u73af\u5883\u5efa\u8bae\u4fdd\u7559\u5907\u4efd\u4e00\u6bb5\u65f6\u95f4\u540e\u518d\u6e05\u7406&#xff09;<\/h4>\n<p><span class=\"token comment\"># \u786e\u8ba4\u6570\u636e\u5b8c\u6574\u3001\u4e1a\u52a1\u6b63\u5e38\u540e&#xff0c;\u5220\u9664\u4e34\u65f6\u76ee\u5f55\/opt\/new<\/span><br \/>\n<span class=\"token comment\"># rm -rf \/opt\/new<\/span><\/p>\n<hr \/>\n<h3>\u4e09\u3001\u5e38\u89c1\u5f02\u5e38\u5904\u7406<\/h3>\n<li>\u5378\u8f7d\u5931\u8d25&#xff1a;umount: \/opt\/data: target is busy.\n<ul>\n<li>\u539f\u56e0&#xff1a;\u76ee\u5f55\u88ab\u8fdb\u7a0b\u5360\u7528&#xff0c;\u6216\u670d\u52a1\u672a\u5b8c\u5168\u505c\u6b62<\/li>\n<li>\u89e3\u51b3&#xff1a;\u4f7f\u7528fuser -mv \/opt\/data\u67e5\u770b\u5360\u7528\u8fdb\u7a0b&#xff0c;kill -9\u7ec8\u6b62\u8fdb\u7a0b&#xff0c;\u6216\u91cd\u542f\u670d\u52a1\u5668\u540e\u518d\u5c1d\u8bd5\u5378\u8f7d&#xff08;\u9700\u5148\u505c\u6b62\u670d\u52a1&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>\u6302\u8f7d\u5931\u8d25&#xff1a;mount: \/opt\/data: wrong fs type, bad option, bad superblock&#8230;\n<ul>\n<li>\u539f\u56e0&#xff1a;\u903b\u8f91\u5377\u672a\u683c\u5f0f\u5316&#xff0c;\u6216\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u4e0d\u5339\u914d&#xff0c;\u6216\/etc\/fstab\u914d\u7f6e\u9519\u8bef<\/li>\n<li>\u89e3\u51b3&#xff1a;\u91cd\u65b0\u683c\u5f0f\u5316\u903b\u8f91\u5377&#xff08;mkfs.xfs&#xff09;&#xff0c;\u68c0\u67e5\/etc\/fstab\u4e2d\u7684\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u4e0e\u5b9e\u9645\u4e00\u81f4<\/li>\n<\/ul>\n<\/li>\n<li>\u5f00\u673a\u81ea\u52a8\u6302\u8f7d\u5931\u6548&#xff1a;\u91cd\u542f\u540e\/opt\/data\u672a\u6302\u8f7d\n<ul>\n<li>\u539f\u56e0&#xff1a;\/etc\/fstab\u914d\u7f6e\u9519\u8bef&#xff08;UUID\u9519\u8bef\u3001\u6302\u8f7d\u70b9\u9519\u8bef\u3001\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u9519\u8bef&#xff09;<\/li>\n<li>\u89e3\u51b3&#xff1a;\u7f16\u8f91\/etc\/fstab\u4fee\u6b63\u9519\u8bef&#xff0c;\u6267\u884cmount -a\u9a8c\u8bc1&#xff0c;\u91cd\u542f\u670d\u52a1\u5668\u540e\u518d\u6b21\u68c0\u67e5<\/li>\n<\/ul>\n<\/li>\n<hr \/>\n<h3>\u56db\u3001\u540e\u7eed\u4f18\u5316\u5efa\u8bae<\/h3>\n<li>\u5b9a\u671f\u5907\u4efd\/etc\/fstab\u6587\u4ef6&#xff08;\u907f\u514d\u6302\u8f7d\u914d\u7f6e\u4e22\u5931&#xff09;<\/li>\n<li>\u82e5\u540e\u7eed\u9700\u8981\u6269\u5bb9LVM&#xff0c;\u53ef\u6267\u884c&#xff1a;vgextend&#xff08;\u6269\u5c55\u5377\u7ec4&#xff09;\u2192 lvextend&#xff08;\u6269\u5c55\u903b\u8f91\u5377&#xff09;\u2192 xfs_growfs\/resize2fs&#xff08;\u6269\u5c55\u6587\u4ef6\u7cfb\u7edf&#xff09;<\/li>\n<li>\u76d1\u63a7\/opt\/data\u76ee\u5f55\u7684\u78c1\u76d8\u4f7f\u7528\u7387&#xff0c;\u907f\u514d\u78c1\u76d8\u6ee1\u5bfc\u81f4\u4e1a\u52a1\u5f02\u5e38<\/li>\n<h4>\u603b\u7ed3<\/h4>\n<li>\u6574\u4e2a\u64cd\u4f5c\u7684\u6838\u5fc3\u662f\u4fdd\u8bc1\u6570\u636e\u4e00\u81f4\u6027&#xff08;\u505c\u6b62\u670d\u52a1\u3001\u53ef\u9760\u8fc1\u79fb\u3001\u9a8c\u8bc1\u6570\u636e&#xff09;\u548c\u6302\u8f7d\u6709\u6548\u6027&#xff08;\u683c\u5f0f\u5316\u3001\u914d\u7f6e\/etc\/fstab&#xff09;\u3002<\/li>\n<li>LVM\u521b\u5efa\u7684\u5b8c\u6574\u6d41\u7a0b\u662f\u300c\u78c1\u76d8\u5206\u533a&#xff08;8e\u7c7b\u578b&#xff09;\u2192 PV \u2192 VG \u2192 LV \u2192 \u683c\u5f0f\u5316 \u2192 \u6302\u8f7d\u300d&#xff0c;\u7f3a\u4e00\u4e0d\u53ef\u3002<\/li>\n<li>\u64cd\u4f5c\u5b8c\u6210\u540e\u5fc5\u987b\u9a8c\u8bc1\u300c\u670d\u52a1\u8fd0\u884c\u72b6\u6001\u300d\u548c\u300c\u4e1a\u52a1\u53ef\u7528\u6027\u300d&#xff0c;\u786e\u4fdd\u751f\u4ea7\u73af\u5883\u65e0\u5f71\u54cd\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>LVM\u5206\u533a\u521b\u5efa\u3001\u6570\u636e\u8fc1\u79fb\u4e0e\u91cd\u65b0\u6302\u8f7d\u64cd\u4f5c\u6587\u6863<br \/>\n\u6587\u6863\u8bf4\u660e<br \/>\n\u64cd\u4f5c\u573a\u666f&#xff1a;\u5c06\u539f\u6709\u6570\u636e\u76ee\u5f55&#xff08;\/opt\/data&#xff09;\u8fc1\u79fb\u81f3\u65b0\u5efaLVM\u903b\u8f91\u5377&#xff0c;\u63d0\u5347\u78c1\u76d8\u5b58\u50a8\u7684\u7075\u6d3b\u6027&#xff08;\u6269\u5bb9\u3001\u7f29\u5bb9\u7b49&#xff09;&#xff0c;\u53ef\u5728\u865a\u62df\u673a\u4e0a\u5148\u64cd\u4f5c\u64cd\u4f5c\u5bf9\u8c61&#xff1a;Linux\u670d\u52a1\u5668&#xff08;\u4ee5CentOS 7\/8\u4e3a\u4f8b&#xff09;\u524d\u7f6e\u6761\u4ef6&#xff1a;<br \/>\n\u62e5\u6709\u670d\u52a1\u5668root\u6743\u9650&#xff08;\u907f\u514d\u6743\u9650\u4e0d\u8db3\u5bfc\u81f4\u64cd\u4f5c\u5931\u8d25&#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":[58,292,44],"topic":[],"class_list":["post-72755","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-292","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>LVM\u5206\u533a\u521b\u5efa\u3001\u6570\u636e\u8fc1\u79fb\u4e0e\u91cd\u65b0\u6302\u8f7d\u64cd\u4f5c\u6587\u6863 - \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\/72755.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LVM\u5206\u533a\u521b\u5efa\u3001\u6570\u636e\u8fc1\u79fb\u4e0e\u91cd\u65b0\u6302\u8f7d\u64cd\u4f5c\u6587\u6863 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"LVM\u5206\u533a\u521b\u5efa\u3001\u6570\u636e\u8fc1\u79fb\u4e0e\u91cd\u65b0\u6302\u8f7d\u64cd\u4f5c\u6587\u6863 \u6587\u6863\u8bf4\u660e \u64cd\u4f5c\u573a\u666f&#xff1a;\u5c06\u539f\u6709\u6570\u636e\u76ee\u5f55&#xff08;\/opt\/data&#xff09;\u8fc1\u79fb\u81f3\u65b0\u5efaLVM\u903b\u8f91\u5377&#xff0c;\u63d0\u5347\u78c1\u76d8\u5b58\u50a8\u7684\u7075\u6d3b\u6027&#xff08;\u6269\u5bb9\u3001\u7f29\u5bb9\u7b49&#xff09;&#xff0c;\u53ef\u5728\u865a\u62df\u673a\u4e0a\u5148\u64cd\u4f5c\u64cd\u4f5c\u5bf9\u8c61&#xff1a;Linux\u670d\u52a1\u5668&#xff08;\u4ee5CentOS 7\/8\u4e3a\u4f8b&#xff09;\u524d\u7f6e\u6761\u4ef6&#xff1a; \u62e5\u6709\u670d\u52a1\u5668root\u6743\u9650&#xff08;\u907f\u514d\u6743\u9650\u4e0d\u8db3\u5bfc\u81f4\u64cd\u4f5c\u5931\u8d25&#xff09;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/72755.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-06T06:05:56+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\/72755.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/72755.html\",\"name\":\"LVM\u5206\u533a\u521b\u5efa\u3001\u6570\u636e\u8fc1\u79fb\u4e0e\u91cd\u65b0\u6302\u8f7d\u64cd\u4f5c\u6587\u6863 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-06T06:05:56+00:00\",\"dateModified\":\"2026-02-06T06:05:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/72755.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/72755.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/72755.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LVM\u5206\u533a\u521b\u5efa\u3001\u6570\u636e\u8fc1\u79fb\u4e0e\u91cd\u65b0\u6302\u8f7d\u64cd\u4f5c\u6587\u6863\"}]},{\"@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\u5206\u533a\u521b\u5efa\u3001\u6570\u636e\u8fc1\u79fb\u4e0e\u91cd\u65b0\u6302\u8f7d\u64cd\u4f5c\u6587\u6863 - \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\/72755.html","og_locale":"zh_CN","og_type":"article","og_title":"LVM\u5206\u533a\u521b\u5efa\u3001\u6570\u636e\u8fc1\u79fb\u4e0e\u91cd\u65b0\u6302\u8f7d\u64cd\u4f5c\u6587\u6863 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"LVM\u5206\u533a\u521b\u5efa\u3001\u6570\u636e\u8fc1\u79fb\u4e0e\u91cd\u65b0\u6302\u8f7d\u64cd\u4f5c\u6587\u6863 \u6587\u6863\u8bf4\u660e \u64cd\u4f5c\u573a\u666f&#xff1a;\u5c06\u539f\u6709\u6570\u636e\u76ee\u5f55&#xff08;\/opt\/data&#xff09;\u8fc1\u79fb\u81f3\u65b0\u5efaLVM\u903b\u8f91\u5377&#xff0c;\u63d0\u5347\u78c1\u76d8\u5b58\u50a8\u7684\u7075\u6d3b\u6027&#xff08;\u6269\u5bb9\u3001\u7f29\u5bb9\u7b49&#xff09;&#xff0c;\u53ef\u5728\u865a\u62df\u673a\u4e0a\u5148\u64cd\u4f5c\u64cd\u4f5c\u5bf9\u8c61&#xff1a;Linux\u670d\u52a1\u5668&#xff08;\u4ee5CentOS 7\/8\u4e3a\u4f8b&#xff09;\u524d\u7f6e\u6761\u4ef6&#xff1a; \u62e5\u6709\u670d\u52a1\u5668root\u6743\u9650&#xff08;\u907f\u514d\u6743\u9650\u4e0d\u8db3\u5bfc\u81f4\u64cd\u4f5c\u5931\u8d25&#xff09;","og_url":"https:\/\/www.wsisp.com\/helps\/72755.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-06T06:05:56+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\/72755.html","url":"https:\/\/www.wsisp.com\/helps\/72755.html","name":"LVM\u5206\u533a\u521b\u5efa\u3001\u6570\u636e\u8fc1\u79fb\u4e0e\u91cd\u65b0\u6302\u8f7d\u64cd\u4f5c\u6587\u6863 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-06T06:05:56+00:00","dateModified":"2026-02-06T06:05:56+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/72755.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/72755.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/72755.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"LVM\u5206\u533a\u521b\u5efa\u3001\u6570\u636e\u8fc1\u79fb\u4e0e\u91cd\u65b0\u6302\u8f7d\u64cd\u4f5c\u6587\u6863"}]},{"@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\/72755","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=72755"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/72755\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=72755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=72755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=72755"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=72755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}