{"id":7904,"date":"2020-06-13T15:26:36","date_gmt":"2020-06-13T07:26:36","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7904"},"modified":"2020-06-13T15:26:38","modified_gmt":"2020-06-13T07:26:38","slug":"lvmconf","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lvmconf","title":{"rendered":"lvmconf\u547d\u4ee4 – LVM\u914d\u7f6e\u4fee\u6539"},"content":{"rendered":"\n
lvmconf\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u4fee\u6539\u5728LVM\u914d\u7f6e\u6587\u4ef6\u4e2d\u9501\u5b9a\u7684\u914d\u7f6e\u3002<\/p>\n\n\n\n
LVM\u5168\u62fc\u4e3aLogical Volume Manager \uff0c\u903b\u8f91\u5377\u7ba1\u7406LVM\u662f\u4e00\u4e2a\u591a\u624d\u591a\u827a\u7684\u786c\u76d8\u7cfb\u7edf\u5de5\u5177\uff0c\u65e0\u8bba\u5728linux\u6216\u8005\u5176\u4ed6\u7c7b\u4f3c\u7684\u7cfb\u7edf\uff0c\u90fd\u662f\u975e\u5e38\u7684\u597d\u7528\u3002<\/p>\n\n\n\n
\u4f20\u7edf\u5206\u533a\u4f7f\u7528\u56fa\u5b9a\u5927\u5c0f\u5206\u533a\uff0c\u91cd\u65b0\u8c03\u6574\u5927\u5c0f\u5341\u5206\u9ebb\u70e6\uff0c\u4f46\u662fLVM\u53ef\u4ee5\u521b\u5efa\u548c\u7ba1\u7406\u201c\u903b\u8f91\u201d\u5377\uff0c\u800c\u4e0d\u662f\u76f4\u63a5\u4f7f\u7528\u7269\u7406\u786c\u76d8\uff0c\u53ef\u4ee5\u8ba9\u7ba1\u7406\u5458\u5f39\u6027\u7684\u7ba1\u7406\u903b\u8f91\u5377\u7684\u6269\u5927\u7f29\u5c0f\uff0c\u64cd\u4f5c\u7b80\u5355\uff0c\u800c\u4e0d\u635f\u574f\u5df2\u5b58\u50a8\u7684\u6570\u636e\u3002\u53ef\u4ee5\u968f\u610f\u5c06\u65b0\u7684\u786c\u76d8\u6dfb\u52a0\u5230LVM\uff0c\u4ee5\u76f4\u63a5\u6269\u5c55\u5df2\u7ecf\u5b58\u5728\u7684\u903b\u8f91\u5377\uff0cLVM\u5e76\u4e0d\u9700\u8981\u91cd\u542f\u5c31\u53ef\u4ee5\u8ba9\u5185\u6838\u77e5\u9053\u5206\u533a\u7684\u5b58\u5728\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>lvmconf [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u8bbe\u7f6elocking_type\u4e3a\u9ed8\u8ba4\u7684\u975e\u805a\u96c6\u578b\uff1a<\/p>\n\n\n\n \u6307\u5b9alocking_library\u9501\u5b9a\u5e93\u76ee\u5f55\uff1a<\/p>\n\n\n\n \u8bbe\u7f6elocking_type\u5230\u9ed8\u8ba4\u96c6\u7fa4\u7c7b\u578b\uff1a<\/p>\n\n\n\n lvmconf\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u4fee\u6539\u5728LVM\u914d\u7f6e\u6587\u4ef6\u4e2d\u9501\u5b9a\u7684\u914d\u7f6e\u3002 LVM\u5168\u62fc\u4e3aLogical Volume M […]<\/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\/7904"}],"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=7904"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7904\/revisions"}],"predecessor-version":[{"id":7970,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7904\/revisions\/7970"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-- -disable-cluster<\/td> \u8bbe\u7f6elocking_type\u4e3a\u9ed8\u8ba4\u7684\u975e\u805a\u96c6\u578b<\/td><\/tr> -- -lockinglibdir<\u76ee\u5f55><\/td> \u6307\u5b9alocking_library\u9501\u5b9a\u5e93\u76ee\u5f55<\/td><\/tr> -- -enable-cluster<\/td> \u5728\u6b64\u7cfb\u7edf\u4e0a\u8bbe\u7f6elocking_type\u5230\u9ed8\u8ba4\u96c6\u7fa4\u7c7b\u578b<\/td><\/tr> -- -file<\u914d\u7f6e\u6587\u4ef6><\/td> \u5c06\u66f4\u6539\u5e94\u7528\u5230\u6307\u5b9a\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u9ed8\u8ba4\u7684\/etc\/lvm\/lvm.conf\u6587\u4ef6<\/td><\/tr> -- -lockinglib<lib><\/td> \u5982\u679c\u4f7f\u7528\u4e00\u4e2a\u5916\u90e8\u9501\u5b9a\u7c7b\u578b\uff0c\u5219\u8bbe\u7f6e\u5916\u90e8locking_library\u9501\u5b9a\u5e93\u8fdb\u884c\u88c5\u8f7d<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# lvmconf --disable-cluster<\/pre>\n\n\n\n
[root@linuxcool ~]# lvmconf --lockinglibdir \/linuxcool<\/pre>\n\n\n\n
[root@linuxcool ~]# lvmconf --enable-cluster<\/pre>\n","protected":false},"excerpt":{"rendered":"