{"id":7915,"date":"2020-06-13T15:25:11","date_gmt":"2020-06-13T07:25:11","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7915"},"modified":"2020-06-13T15:25:12","modified_gmt":"2020-06-13T07:25:12","slug":"lvs","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lvs","title":{"rendered":"lvs\u547d\u4ee4 – \u62a5\u544a\u6709\u5173\u903b\u8f91\u5377\u7684\u4fe1\u606f"},"content":{"rendered":"\n

lvs\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u62a5\u544a\u6709\u5173\u903b\u8f91\u5377\u7684\u4fe1\u606f\u3002<\/p>\n\n\n\n

\u903b\u8f91\u5377\u5efa\u7acb\u5728\u5377\u7ec4\u4e4b\u4e0a\uff0c\u5b83\u662f\u4ece\u5377\u7ec4\u4e2d\u201c\u5207\u51fa\u201d\u7684\u4e00\u5757\u7a7a\u95f4\u3002\u5b83\u662f\u6700\u7ec8\u7528\u6237\u4f7f\u7528\u7684\u903b\u8f91\u8bbe\u5907\u3002<\/p>\n\n\n\n

\u903b\u8f91\u5377\u76f8\u5bf9\u4e8e\u7269\u7406\u5377\u6765\u8bf4\uff1a\u53ef\u4ee5\u5c06\u591a\u4e2a\u7269\u7406\u5377\uff0c\u5408\u5e76\u4e3a\u4e00\u4e2a\u903b\u8f91\u5377\uff0c\u8fd9\u6837\u4e00\u4e2a\u5206\u533a\u7684\u5bb9\u91cf\u53ef\u4ee5\u7a81\u7834\u7269\u7406\u786c\u76d8\u7684\u9650\u5236\u3002\u903b\u8f91\u5377\u53ef\u4ee5\u5f39\u6027\u7684\u6269\u5bb9\u548c\u7f29\u5bb9\uff0c\u5f53\u6211\u4eec\u4e0d\u592a\u786e\u5b9a\u4e00\u4e2a\u5e94\u7528\u5c06\u6765\u6240\u9700\u7684\u5bb9\u91cf\uff0c\u53ef\u4ee5\u5148\u5206\u914d\u5c11\u4e00\u70b9\u7684\u7a7a\u95f4\uff0c\u8fd9\u6837\u53ef\u4ee5\u968f\u7740\u4e1a\u52a1\u53d1\u5c55\uff0c\u6309\u9700\u6269\u5bb9\uff0c\u907f\u514d\u4e00\u6b21\u6027\u5206\u914d\u8fc7\u5927\u78c1\u76d8\u7a7a\u95f4\u5bfc\u81f4\u7684\u8d44\u6e90\u6d6a\u8d39\u3002\u53e6\u5916\u903b\u8f91\u5377\u652f\u6301\u5feb\u7167\u529f\u80fd\uff0c\u53ef\u5728\u5bf9\u7cfb\u7edf\u8fdb\u884c\u5173\u952e\u64cd\u4f5c\u524d\u8bbe\u7f6e\u8fd8\u539f\u70b9\uff0c\u907f\u514d\u64cd\u4f5c\u5931\u8bef\u5bfc\u81f4\u7684\u6570\u636e\u635f\u574f\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>lvs [\u53c2\u6570] [\u5377\u7ec4\u540d]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-- -all<\/td>\u5305\u62ec\u6240\u6709\u6709\u5173\u5185\u90e8\u903b\u8f91\u5377\u7684\u8f93\u51fa\u4fe1\u606f<\/td><\/tr>
-- -units<\u8f93\u51fa\u5355\u4f4d><\/td>\u6240\u6709\u5c3a\u5bf8\u90fd\u5728\u8f93\u51fa\u8fd9\u4e9b\u5355\u4f4d\uff1ah\u3001H\u3001b\u3001B\u3001s\u3001S\u3001k\u3001K\u3001m\u3001M\u3001g\u3001G\u3001t\u3001T\u3001p\u3001P\u3001e\u3001E<\/td><\/tr>
-- -aligned<\/td>\u4f7f\u7528\u5e26--separator\u5206\u9694\u7b26\u5bf9\u9f50\u8f93\u51fa\u5217<\/td><\/tr>
-- -nosuffix<\/td>\u5728\u8f93\u51fa\u5927\u5c0f\u4e0a\u540e\u7f00<\/td><\/tr>
-- -rows<\/td>\u8f93\u51fa\u5217\u4f5c\u4e3a\u884c<\/td><\/tr>
-- -segments<\/td>\u4f7f\u7528\u9ed8\u8ba4\u5217\u5f3a\u8c03\u6bb5\u4fe1\u606f<\/td><\/tr>
-- -nameprefixes<\/td>\u6dfb\u52a0\u4e00\u4e2a\u201cLVM2_\u201d\u524d\u7f00\u52a0\u4e0a\u5b57\u6bb5\u540d\u8f93\u51fa<\/td><\/tr>
-- -unbuffered<\/td>\u7acb\u5373\u4ea7\u751f\u6ca1\u6709\u6b63\u786e\u6392\u5e8f\u6216\u5bf9\u9f50\u5217\u7684\u8f93\u51fa<\/td><\/tr>
-- -noheadings<\/td>\u6807\u9898\u884c\uff0c\u8fd9\u901a\u5e38\u662f\u8f93\u51fa\u7684\u7b2c\u4e00\u884c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u62a5\u544a\u6709\u5173\u903b\u8f91\u5377\u7684\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lvs<\/pre>\n\n\n\n

\u8f93\u51fa\u6240\u6709\u6709\u5173\u5185\u90e8\u903b\u8f91\u5377\u7684\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lvs --all fedora\nLV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert\nroot fedora -wi-ao---- 15.00g\nswap fedora -wi-ao---- <3.04g<\/pre>\n\n\n\n

\u8f93\u51fa\u5927\u5c0f\u4e0a\u540e\u7f00\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lvs --units M fedora\nLV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert\nroot fedora -wi-ao---- 16106.13M\nswap fedora -wi-ao---- 3258.97M<\/pre>\n","protected":false},"excerpt":{"rendered":"

lvs\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u62a5\u544a\u6709\u5173\u903b\u8f91\u5377\u7684\u4fe1\u606f\u3002 \u903b\u8f91\u5377\u5efa\u7acb\u5728\u5377\u7ec4\u4e4b\u4e0a\uff0c\u5b83\u662f\u4ece\u5377\u7ec4\u4e2d\u201c\u5207\u51fa\u201d\u7684\u4e00\u5757\u7a7a\u95f4\u3002\u5b83\u662f\u6700\u7ec8\u7528 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7915"}],"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=7915"}],"version-history":[{"count":7,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7915\/revisions"}],"predecessor-version":[{"id":7948,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7915\/revisions\/7948"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}