{"id":2429,"date":"2023-06-29T10:40:25","date_gmt":"2023-06-29T02:40:25","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=2429"},"modified":"2023-06-29T10:40:25","modified_gmt":"2023-06-29T02:40:25","slug":"lvm%e7%a3%81%e7%9b%98%e6%8c%82%e8%bd%bd","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/uncategorized\/lvm%e7%a3%81%e7%9b%98%e6%8c%82%e8%bd%bd\/","title":{"rendered":"\u200blvm\u78c1\u76d8\u6302\u8f7d"},"content":{"rendered":"<div class='wxsyncmain'>\n<section style=\"margin-bottom: 0px;\"><span style=\"font-size: 16px;\"><strong style=\"letter-spacing: 0.034em;\">1.\u67e5\u770b\u78c1\u76d8\u7ed3\u6784\uff1alsblk<\/strong><\/span><\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\"><code><span class=\"code-snippet_outer\">lsblk<\/span><\/code><\/pre>\n<\/section>\n<section style=\"margin-bottom: 0px;\"><span style=\"font-size: 16px;\"><strong style=\"letter-spacing: 0.034em;\"><\/strong><\/span><\/section>\n<section style=\"margin-bottom: 0px;\"><span style=\"font-size: 16px;\"><strong style=\"letter-spacing: 0.034em;\">2.\u4fee\u6539\u7cfb\u7edf\u6807\u8bc6\u7b26\uff1a<\/strong><\/span><span style=\"font-size: 16px;\"><strong style=\"letter-spacing: 0.034em;\">fdisk \/dev\/sdb<\/strong><\/span><\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attribute\">fdisk<\/span> \/dev\/sdb<\/span><\/code><code><span class=\"code-snippet_outer\">\u6b22\u8fce\u4f7f\u7528&nbsp;fdisk&nbsp;(util-linux&nbsp;<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">23<\/span>.<span class=\"code-snippet__number\">2<\/span>)\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u66f4\u6539\u5c06\u505c\u7559\u5728\u5185\u5b58\u4e2d\uff0c\u76f4\u5230\u60a8\u51b3\u5b9a\u5c06\u66f4\u6539\u5199\u5165\u78c1\u76d8\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u4f7f\u7528\u5199\u5165\u547d\u4ee4\u524d\u8bf7\u4e09\u601d\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u547d\u4ee4(\u8f93\u5165 m \u83b7\u53d6\u5e2e\u52a9)\uff1am<\/span><\/code><code><span class=\"code-snippet_outer\">n\uff08\u65b0\u5efa\uff09<\/span><\/code><code><span class=\"code-snippet_outer\">d\uff08\u5220\u9664\uff09<\/span><\/code><code><span class=\"code-snippet_outer\">p\uff08\u6253\u5370\uff09<\/span><\/code><code><span class=\"code-snippet_outer\">q\uff08\u9000\u51fa\uff09<\/span><\/code><code><span class=\"code-snippet_outer\">t\uff08\u4fee\u6539\u7cfb\u7edf\u6807\u8bc6\u7b26\uff09<\/span><\/code><code><span class=\"code-snippet_outer\">w\uff08\u5199\u5165\u5e76\u9000\u51fa\uff09<\/span><\/code><\/pre>\n<\/section>\n<section style=\"margin-bottom: 0px;\"><span style=\"font-size: 16px;\"><strong style=\"letter-spacing: 0.034em;\"><\/strong><\/span><\/section>\n<p style=\"margin-bottom: 0px;\"><span style=\"font-size: 16px;\"><strong style=\"letter-spacing: 0.034em;\">3.\u521b\u5efa\u7269\u7406\u5377\uff1apv<\/strong><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">\u67e5\u770b\uff1a<span class=\"code-snippet__attribute\">pvscan<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\u65b0\u5efa\uff1apvcreate \/dev\/sdb2<\/span><\/code><code><span class=\"code-snippet_outer\">\u8be6\u60c5\u5c55\u793a\uff1apvdisplay<\/span><\/code><code><span class=\"code-snippet_outer\">\u5220\u9664\uff1apvremove \/dev\/sdb2<\/span><\/code><\/pre>\n<\/section>\n<section style=\"margin-bottom: 0px;\"><span style=\"font-size: 16px;\"><strong style=\"letter-spacing: 0.034em;\">4.\u521b\u5efa\u5377\u7ec4\uff1aVG<\/strong><\/span><span style=\"white-space:pre-wrap;font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 14px;text-align: left;background-color: rgb(250, 250, 250);color: rgb(51, 51, 51);letter-spacing: 0.034em;\"><\/span><\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">\u67e5\u770b\uff1b<span class=\"code-snippet__attribute\">vgscan<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\u65b0\u5efa\uff1avgcreate centos1 \/dev\/sdb2<\/span><\/code><code><span class=\"code-snippet_outer\">\u8be6\u60c5\u5c55\u793a\uff1avgdisplay<\/span><\/code><code><span class=\"code-snippet_outer\">\u5220\u9664\uff1avgremove centos1<\/span><\/code><\/pre>\n<\/section>\n<section style=\"margin-bottom: 0px;\"><span style=\"font-size: 16px;\"><strong style=\"letter-spacing: 0.034em;\">5.\u521b\u5efa\u903b\u8f91\u5377\uff1aLV<\/strong><\/span><br  \/><\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">\u67e5\u770b\uff1a<span class=\"code-snippet__attribute\">lvscan<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\u65b0\u5efa\uff1a<span class=\"code-snippet__attribute\">lvcreate<\/span> -l 76543 -n egova centos1<\/span><\/code><code><span class=\"code-snippet_outer\">\u8be6\u60c5\u5c55\u793a\uff1b<span class=\"code-snippet__attribute\">lvdisplay<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\u5220\u9664\uff1a<span class=\"code-snippet__attribute\">lvremove<\/span>&nbsp;\/dev\/centos1\/egova<\/span><\/code><\/pre>\n<\/section>\n<section style=\"margin-bottom: 0px;\"><span style=\"font-size: 16px;\"><strong style=\"letter-spacing: 0.034em;\">6.\u683c\u5f0f\u5316\u6587\u4ef6\u683c\u5f0f<\/strong><\/span><br  \/><\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\"><code><span class=\"code-snippet_outer\">mkfs.xfs&nbsp;&nbsp;\/dev\/centos1\/egova<\/span><\/code><\/pre>\n<\/section>\n<section style=\"margin-bottom: 0px;\"><span style=\"font-size: 16px;\"><strong style=\"letter-spacing: 0.034em;\">7.\u521b\u5efa\u76ee\u5f55<\/strong><\/span><\/section>\n<section style=\"margin-bottom: 0px;\"><span class=\"code-snippet__attribute\" style=\"white-space:pre-wrap;max-width: 1000%;font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 14px;letter-spacing: 0.578px;text-align: left;background-color: rgb(250, 250, 250);\"><\/span><\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attribute\">mkdir<\/span> egova<\/span><\/code><\/pre>\n<\/section>\n<section style=\"margin-bottom: 0px;\"><span style=\"white-space:pre-wrap;color: rgb(51, 51, 51);font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 14px;letter-spacing: 0.578px;text-align: left;background-color: rgb(250, 250, 250);\"><\/span><\/section>\n<section style=\"margin-bottom: 0px;\"><span style=\"font-size: 16px;\"><strong style=\"letter-spacing: 0.034em;\">8.\u76ee\u5f55\u6302\u8f7d\uff1a<\/strong><\/span><\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attribute\">mount<\/span> \/dev\/centos1\/egova \/egova<\/span><\/code><\/pre>\n<\/section>\n<section style=\"margin-bottom: 0px;\"><span style=\"font-size: 16px;\"><strong style=\"letter-spacing: 0.034em;\">9.\u6302\u8f7d\u6301\u4e45\u5316\uff1a\u907f\u514d\u670d\u52a1\u5668\u91cd\u542f\u6302\u8f7d\u4e22\u5931<\/strong><\/span><\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#&nbsp;\u5c06\u4e0b\u8ff0\u5199\u5165\u5f00\u673a\u6302\u8f7d\uff0c\u7f51\u683creboot\u6302\u8f7d\u4e22\u5931\uff1a\/etc\/fstab<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\/<span class=\"code-snippet__attribute\">dev<\/span>\/mapper\/centos1-egova \/  xfs     defaults        0 0<\/span><\/code><\/pre>\n<\/section>\n<section style=\"margin-bottom: 8px;\"><span style=\"font-size: 16px;\"><strong style=\"letter-spacing: 0.034em;\">10.\u67e5\u770b\u9632\u706b\u5899<\/strong><\/span><span style=\"letter-spacing: 0.034em;\"><\/span><\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">\u67e5\u770b\u9632\u706b\u5899\u670d\u52a1\uff1a<span class=\"code-snippet__attribute\">systemctl<\/span> status firewalld.service<\/span><\/code><code><span class=\"code-snippet_outer\">\u5173\u95ed\u9632\u706b\u5899\u670d\u52a1\uff1a<span class=\"code-snippet__attribute\">systemctl<\/span> stop firewalld.service<\/span><\/code><code><span class=\"code-snippet_outer\">\u6c38\u4e45\u5173\u95ed\u9632\u706b\u5899\uff1a<span class=\"code-snippet__attribute\">systemctl<\/span>&nbsp;disable&nbsp;firewalld.service<\/span><\/code><\/pre>\n<\/section>\n<section style=\"margin-bottom: 8px;\"><span style=\"font-size: 16px;\"><strong style=\"letter-spacing: 0.034em;\">11.\u91cd\u542f\u670d\u52a1\u5668\u9a8c\u8bc1\u6302\u8f7d\uff1areboot<\/strong><\/span><br  \/><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-backh=\"448\" data-backw=\"578\" data-galleryid=\"\" data-ratio=\"0.775\" data-s=\"300,640\"  data-type=\"png\" data-w=\"760\" style=\"letter-spacing: 0.034em;width: 100%;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627154843878.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-backh=\"448\" data-backw=\"578\" data-galleryid=\"\" data-ratio=\"0.775\" data-s=\"300,640\"  data-type=\"png\" data-w=\"760\" style=\"letter-spacing: 0.034em;width: 100%;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627154843878.png\"  \/><\/noscript><br  \/><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-ratio=\"0.3671274961597542\" data-s=\"300,640\"  data-type=\"png\" data-w=\"651\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627154844356.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.3671274961597542\" data-s=\"300,640\"  data-type=\"png\" data-w=\"651\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627154844356.png\"  \/><\/noscript><\/p>\n<section style=\"text-align: justify;text-indent: 0em;\"><span style=\"letter-spacing: 0.034em;text-align: justify;\"><\/span><span style=\"font-size: 16px;\"><strong style=\"letter-spacing: 0.034em;\">lvm\u65b9\u5f0f\u6302\u8f7d\u78c1\u76d8\u4f18\u7f3a\u70b9\uff1a<\/strong><\/span><br  \/><\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\"><code><span class=\"code-snippet_outer\">\u4f18\u70b9\uff1a<\/span><\/code><code><span class=\"code-snippet_outer\">    1.\u52a8\u6001\u6269\u5bb9\uff1a\u53ef\u4ee5\u5728\u7cfb\u7edf\u8fd0\u884c\u7684\u72b6\u6001\u4e0b\u52a8\u6001\u7684\u6269\u5c55\u6587\u4ef6\u7cfb\u7edf\u7684\u5927\u5c0f\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">    2.\u53ef\u4ee5\u65b9\u4fbf\u7684\u5bfc\u51fa\u6574\u4e2a\u5377\u7ec4\u5230\u53e6\u5916\u4e00\u53f0\u673a\u5668\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u7f3a\u70b9\uff1a<\/span><\/code><code><span class=\"code-snippet_outer\">    1.\u5728\u4ece\u5377\u7ec4\u4e2d\u79fb\u9664\u4e00\u4e2a\u78c1\u76d8\u7684\u65f6\u5019\u5fc5\u987b\u4f7f\u7528reducevg\u547d\u4ee4\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">    2.\u5f53\u5377\u7ec4\u4e2d\u7684\u4e00\u4e2a\u78c1\u76d8\u635f\u574f\u65f6\uff0c\u6574\u4e2a\u5377\u7ec4\u90fd\u4f1a\u53d7\u5230\u5f71\u54cd\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">    3.\u56e0\u4e3a\u52a0\u5165\u4e86\u989d\u5916\u7684\u64cd\u4f5c\uff0c\u5b58\u8d2e\u6027\u80fd\u53d7\u5230\u5f71\u54cd\u3002<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: justify;text-indent: 0em;\"><br  \/><\/section>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 \u6570\u636e\u4e0e\u5171\u4eab              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>1.\u67e5\u770b\u78c1\u76d8\u7ed3\u6784\uff1alsblk lsblk 2.\u4fee\u6539\u7cfb\u7edf\u6807\u8bc6\u7b26\uff1afdisk \/dev\/sdb fdisk \/dev\/sdb\u6b22\u8fce\u4f7f\u7528&#038; &#8230;<\/p>\n","protected":false},"author":1,"featured_media":2426,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-2429","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627154842954-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627154843878.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627154842954-300x300.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627154842954.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627154843878.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627154842954-300x300.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627154842954.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627154842954.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627154843878.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627154843878.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627154844356.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627154844356.png","id":"image3"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"\u672a\u5206\u7c7b","post_date":"2023-06-29","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":262,"next_post_id":2431,"next_post_title":"\u75c5\u6bd2\u7684\u67e5\u6740\u6b65\u9aa4","previous_post_id":2045,"previous_post_title":"Hadoop \u96c6\u7fa4\u642d\u5efa","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/2429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2429"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/2429\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/2426"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}