{"id":269,"date":"2023-08-18T18:04:54","date_gmt":"2023-08-18T10:04:54","guid":{"rendered":"http:\/\/blog.xjfvps.top\/index.php\/2023\/08\/18\/vmware%e7%bb%99linux%e8%99%9a%e6%8b%9f%e6%9c%ba%e5%a2%9e%e5%8a%a0%e7%a3%81%e7%9b%98%e7%a9%ba%e9%97%b4%e5%9f%ba%e4%ba%8elvm%e5%88%86%e5%8c%ba\/"},"modified":"2023-08-18T21:31:05","modified_gmt":"2023-08-18T13:31:05","slug":"vmware%e7%bb%99linux%e8%99%9a%e6%8b%9f%e6%9c%ba%e5%a2%9e%e5%8a%a0%e7%a3%81%e7%9b%98%e7%a9%ba%e9%97%b4%e5%9f%ba%e4%ba%8elvm%e5%88%86%e5%8c%ba","status":"publish","type":"post","link":"https:\/\/blog.fs.cloudns.biz\/index.php\/2023\/08\/18\/vmware%e7%bb%99linux%e8%99%9a%e6%8b%9f%e6%9c%ba%e5%a2%9e%e5%8a%a0%e7%a3%81%e7%9b%98%e7%a9%ba%e9%97%b4%e5%9f%ba%e4%ba%8elvm%e5%88%86%e5%8c%ba\/","title":{"rendered":"vmware\u7ed9linux\u865a\u62df\u673a\u589e\u52a0\u78c1\u76d8\u7a7a\u95f4(\u57fa\u4e8elvm\u5206\u533a)"},"content":{"rendered":"<div>\n<div>\n1. \u8fdb\u5165 vm &nbsp;setting \uff0c\u5bf9\u8981\u589e\u52a0\u7a7a\u95f4\u7684\u78c1\u76d8 expand\uff0c\u6307\u5b9a\u53d8\u66f4\u7a7a\u95f4\u5927\u5c0f\uff08\u5982\u753120G \u8c03\u6574\u5230 50G)\uff0cvmware\u9700\u8981\u5904\u7406\u4e00\u6bb5\u65f6\u95f4\u3002<\/div>\n<div>&nbsp;<\/div>\n<div>2. \u5f00linux\u865a\u62df\u673a\uff0cfdisk -l \u4f1a\u53d1\u73b0\u78c1\u76d8\u7a7a\u95f4\u5927\u4e86\uff0c\u4f46\u6587\u4ef6\u7cfb\u7edf\u7684\u5206\u533a\u5927\u5c0f\u8fd8\u662f\u539f\u6765size\u3002<\/div>\n<div>\uff08\u4ee5\u4e0b\u5bf9\u9700\u8981\u8c03\u6574\u7a7a\u95f4\u7684\u78c1\u76d8\u5206\u533a\u79f0\u4e3a&ldquo;\u539f\u5206\u533a&rdquo;\uff09<\/div>\n<div>&nbsp;<\/div>\n<div>3. \u5907\u4efd\u539f\u5206\u533a\u8d44\u6599 cp \u6216 mv \u5230\u5176\u4ed6\u786c\u76d8\u5206\u533a\u3002<\/div>\n<div>&nbsp;<\/div>\n<div>4. \u901a\u8fc7fdisk\u5220\u9664\u539f\u5206\u533a\uff0c\u91cd\u5efa\u65b0\u5206\u533a\uff0c\u628a50G\u5927\u5c0f\u5206\u7ed9\u6b64\u5206\u533a\uff0c\u4e5f\u5373\u662f\u8fd9\u4e2a\u786c\u76d8\u53ea\u6709\u4e00\u4e2a\u5206\u533a\u3002\u5f53\u7136\u4e5f\u53ef\u4ee5\u6709\u591a\u4e2a\u5206\u533a\uff0c\u4f46\u672c\u6b21\u53ea\u60f3\u5bf9\u4e00\u4e2a\u5206\u533a\u589e\u52a0\u7a7a\u95f4\u3002<\/div>\n<div>&nbsp; \u6700\u540e\u628a\u6b64\u5206\u533a\u6807\u8bb0\u4e3a8e \u7c7b\u578b(LVM)&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>5.&nbsp;pvcreate \/dev\/sdb1, \u4ee5\u5206\u533a \/dev\/sdb1 \u521b\u5efa\u7269\u7406\u5377\u3002<\/div>\n<div>&nbsp;<\/div>\n<div>6.&nbsp;vgcreate xjf_data \/dev\/sdb1 &nbsp;\u5728\u7269\u7406\u5377\u4e2d\u521b\u5efa\u4e00\u4e2a\u903b\u8f91\u5377\u7ec4\u3002\u540d\u5b57\u81ea\u5df1\u6307\u5b9a\uff08\u6b64\u5904\u547d\u540d\u4e3a xjf_data) &nbsp;\u4e00\u822c\u7cfb\u7edf\u5728\/dev\/ \u4e2d\u521b\u5efa\u3002<\/div>\n<div>&nbsp;<\/div>\n<div>7. lvcreate -L30G -n lv_xjf_data xjf_data &nbsp; \u5728\u903b\u8f91\u5377\u7ec4\u4e2d\u521b\u5efa\u4e00\u4e2a\u903b\u8f91\u5377\uff08&nbsp;lv_xjf_data\uff09\uff0c\u5e76\u6307\u5b9a\u5927\u5c0f\u3002 &nbsp;\u4e00\u822c\u5728 \/dev\/xjf_data\/ &nbsp;\u4e2d\u3002<\/div>\n<div>&nbsp;<\/div>\n<div>8. mkreiserfs \/dev\/xjf_data\/lv_xjf_data &nbsp; &nbsp; &nbsp;\u5728\u8fd9\u903b\u8f91\u5377\u4e2d\u521b\u5efareiserfs\u6587\u4ef6\u7cfb\u7edf\u3002<\/div>\n<div>&nbsp;<\/div>\n<div>9.&nbsp;mount \/dev\/xjf_data\/lv_xjf_data \/data &nbsp; &nbsp;\u6302\u8f7d\u5230\u73b0\u6709\u76ee\u5f55\/data \u4e2d\u3002<\/div>\n<div>&nbsp;<\/div>\n<div>10. \u60f3\u5f00\u673a\u76f4\u63a5\u6302\u8f7d\uff0c\u9700\u8981\u4fee\u6539\/dev\/fstab<\/div>\n<div>&nbsp;<\/div>\n<div><span style=\"color: #ff0000;\">\/dev\/mapper\/xjf_data-lv_xjf_data&nbsp;<\/span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/data&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reiserfs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; defaults&nbsp;&nbsp; 1 2<\/div>\n<div>&nbsp;<\/div>\n<div>\u7b2c\u4e00\u4e2a\u5b57\u6bb5\u540d\u79f0\uff0c\u5728df -h \u4e2d\u53ef\u4ee5\u770b\u5230<\/div>\n<div>&nbsp;<\/div>\n<div><span style=\"color: #ff4635;\">\/dev\/mapper\/xjf_data-lv_xjf_data<\/span>&nbsp;&nbsp; 32G&nbsp;&nbsp; 15G&nbsp;&nbsp; 18G&nbsp;&nbsp; 46% \/data<\/div>\n<div>&nbsp;<\/div>\n<div>\u53c2\u8003\uff1a<a href=\"http:\/\/www.ibm.com\/developerworks\/cn\/linux\/filesystem\/lvm\/lvm-2\/\">http:\/\/www.ibm.com\/developerworks\/cn\/linux\/filesystem\/lvm\/lvm-2\/<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>1. \u8fdb\u5165 vm &nbsp;setting \uff0c\u5bf9\u8981\u589e\u52a0\u7a7a\u95f4\u7684\u78c1\u76d8 expand &hellip; <a href=\"https:\/\/blog.fs.cloudns.biz\/index.php\/2023\/08\/18\/vmware%e7%bb%99linux%e8%99%9a%e6%8b%9f%e6%9c%ba%e5%a2%9e%e5%8a%a0%e7%a3%81%e7%9b%98%e7%a9%ba%e9%97%b4%e5%9f%ba%e4%ba%8elvm%e5%88%86%e5%8c%ba\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,8,1],"tags":[21],"class_list":["post-269","post","type-post","status-publish","format-standard","hentry","category-linux","category-8","category-uncategorized","tag-linux"],"_links":{"self":[{"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts\/269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/comments?post=269"}],"version-history":[{"count":1,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts\/269\/revisions"}],"predecessor-version":[{"id":322,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts\/269\/revisions\/322"}],"wp:attachment":[{"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/media?parent=269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/categories?post=269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/tags?post=269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}