{"id":5138,"date":"2019-10-13T19:09:01","date_gmt":"2019-10-13T11:09:01","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5138"},"modified":"2024-01-04T23:48:05","modified_gmt":"2024-01-04T15:48:05","slug":"lvcreate","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lvcreate","title":{"rendered":"lvcreate\u547d\u4ee4 &#8211; \u521b\u5efa\u903b\u8f91\u5377\u8bbe\u5907"},"content":{"rendered":"\n<p>lvcreate\u547d\u4ee4\u7684\u529f\u80fd\u662f\u521b\u5efa\u903b\u8f91\u5377\u8bbe\u5907\u3002LVM\uff08\u903b\u8f91\u5377\u7ba1\u7406\u5668\uff09\u7531\u7269\u7406\u5377\u3001\u5377\u7ec4\u548c\u903b\u8f91\u5377\u7ec4\u6210\uff0c\u5176\u4e2dlvcreate\u547d\u4ee4\u5c5e\u4e8eLVM\u521b\u5efa\u5de5\u4f5c\u7684\u6700\u540e\u4e00\u4e2a\u73af\u8282\u2014\u2014\u521b\u5efa\u903b\u8f91\u5377\u8bbe\u5907\u3002 <\/p>\n\n\n\n<p>\u5728\u8bbe\u5b9a\u903b\u8f91\u5377\u5bb9\u91cf\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528-L\u53c2\u6570\u76f4\u63a5\u5199\u5177\u4f53\u503c\uff0c\u4ea6\u53ef\u4ee5\u4f7f\u7528-l\u53c2\u6570\u6307\u5b9aPE\uff08\u7269\u7406\u6269\u5c55\u5757\uff09\u4e2a\u6570\uff0c\u6bcf\u4e2aPE\u5927\u5c0f\u9ed8\u8ba4\u4e3a4MB\uff0c\u56e0\u6b64-L 400M\u548c-l 100\u7684\u6548\u529b\u662f\u7b49\u4ef7\u7684\u3002<\/p>\n\n\n\n<p><strong>\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>lvcreate \u53c2\u6570 \u903b\u8f91\u5377<\/p>\n\n\n\n<p><strong>\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>-A<\/td><td>\u8bbe\u7f6e\u903b\u8f91\u5377\u7684\u53ef\u7528\u6027<\/td><td rowspan=\"6\">&nbsp;<\/td><td>-m<\/td><td>\u521b\u5efa\u4e00\u4e2a\u955c\u50cf\u903b\u8f91\u5377<\/td><\/tr><tr><td>-c<\/td><td>\u8bbe\u7f6e\u5feb\u7167\u903b\u8f91\u5377\u7684\u5757\u5927\u5c0f<\/td><td>-n<\/td><td>\u8bbe\u7f6e\u65b0\u7684\u903b\u8f91\u5377\u540d<\/td><\/tr><tr><td>-C<\/td><td>\u8bbe\u7f6e\u903b\u8f91\u5377\u7684\u8fde\u7eed\u5206\u914d\u7b56\u7565<\/td><td>-p<\/td><td>\u8bbe\u7f6e\u903b\u8f91\u5377\u7684\u8bbf\u95ee\u6743\u9650<\/td><\/tr><tr><td>-i<\/td><td>\u8bbe\u7f6e\u6761\u5e26\u6570\u91cf<\/td><td>-r<\/td><td>\u8bbe\u7f6e\u903b\u8f91\u5377\u7684\u8d85\u524d\u8bfb\u53d6\u6247\u533a\u6570<\/td><\/tr><tr><td>-l<\/td><td>\u8bbe\u7f6e\u903b\u8f91\u5377\u7684\u5927\u5c0f\uff08PE\u4e2a\u6570\uff09<\/td><td>-s<\/td><td>\u4e3a\u6307\u5b9a\u7684\u903b\u8f91\u5377\u521b\u5efa\u5feb\u7167\u5377<\/td><\/tr><tr><td>-L<\/td><td>\u8bbe\u7f6e\u903b\u8f91\u5377\u7684\u5927\u5c0f\uff08\u5bb9\u91cf\u503c\uff09<\/td><td>-T<\/td><td>\u521b\u5efa\u7cbe\u7b80\u903b\u8f91\u5377<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u53c2\u8003\u793a\u4f8b<\/strong><\/p>\n\n\n\n<p>\u5728\u5df2\u6709\u7684\u5377\u7ec4\u4e2d\uff08VG01\uff09\u521b\u5efa\u4e00\u4e2a\u903b\u8f91\u5377\uff08V001\uff09\uff0c\u5927\u5c0f\u4e3a100\u4e2aPE\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# lvcreate -n V001 -l 100 VG01 \r\n Logical volume \"V001\" created. \r<\/pre>\n\n\n\n<p>\u5728\u5df2\u6709\u7684\u5377\u7ec4\u4e2d\uff08VG01\uff09\u521b\u5efa\u4e00\u4e2a\u903b\u8f91\u5377\uff08V001\uff09\uff0c\u5927\u5c0f\u4e3a400MB\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# lvcreate -n V001 -L 400 VG01 \r\nLogical volume \"V001\" created.\r<\/pre>\n\n\n\n<p>\u5728\u5df2\u6709\u7684\u5377\u7ec4\u4e2d\uff08VG01\uff09\u521b\u5efa\u4e00\u4e2a\u903b\u8f91\u5377\uff08V001\uff09\uff0c\u5927\u5c0f\u4e3a\u5377\u7ec4\u4e2d\u5269\u4f59\u7684\u5168\u90e8\u7a7a\u95f4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# lvcreate -n V001 -l 100%FREE VG01 \r\n Logical volume \"V001\" created.\r<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>lvcreate\u547d\u4ee4\u7684\u529f\u80fd\u662f\u521b\u5efa\u903b\u8f91\u5377\u8bbe\u5907\u3002LVM\uff08\u903b\u8f91\u5377\u7ba1\u7406\u5668\uff09\u7531\u7269\u7406\u5377\u3001\u5377\u7ec4\u548c\u903b\u8f91\u5377\u7ec4\u6210\uff0c\u5176\u4e2dlvcrea [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-5138","post","type-post","status-publish","format-standard","hentry","category-disk"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=5138"}],"version-history":[{"count":17,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5138\/revisions"}],"predecessor-version":[{"id":17022,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5138\/revisions\/17022"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}