{"id":7910,"date":"2020-06-13T15:25:22","date_gmt":"2020-06-13T07:25:22","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7910"},"modified":"2020-06-13T15:25:25","modified_gmt":"2020-06-13T07:25:25","slug":"lvmetad","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lvmetad","title":{"rendered":"lvmetad\u547d\u4ee4 – \u542f\u52a8LVM\u5143\u6570\u636e\u9ad8\u901f\u7f13\u5b58\u5b88\u62a4\u8fdb\u7a0b"},"content":{"rendered":"\n

lvmetad\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u542f\u52a8LVM\u5143\u6570\u636e\u7f13\u5b58\u5b88\u62a4\u8fdb\u7a0b\u3002<\/p>\n\n\n\n

\u6b63\u5e38\u60c5\u51b5\u4e0b\uff0clvmetad\u547d\u4ee4\u901a\u8fc7\u5904\u7406\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u63d0\u9192\u6d88\u606f\u548c\u7cfb\u7edf\u7684uevents\u6765\u4fdd\u6301\u7f13\u5b58\u5904\u4e8e\u6700\u65b0\u72b6\u6001\u3002\u5f53\u5176\u4ed6\u4e3b\u673a\u6539\u53d8\u78c1\u76d8\u4e0a\u7684\u5143\u6570\u636e\u65f6\uff0c\u4e5f\u5e94\u8be5\u4f7f\u672c\u673a\u7684lvmetad\u5143\u6570\u636e\u7f13\u5b58\u53d8\u4e3a\u8fc7\u65f6\u72b6\u6001\u3002<\/p>\n\n\n\n

\u5f53\u4e00\u4e2a\u547d\u4ee4\u5411lvmetad\u547d\u4ee4\u53d1\u9001\u83b7\u53d6\u5143\u6570\u636e\u8bf7\u6c42\u65f6\uff0c\u5728lvmetad\u547d\u4ee4\u8fd4\u56de\u5143\u6570\u636e\u7684\u540c\u65f6\uff0c\u9644\u5e26\u7f13\u5b58\u201c\u65e0\u6548\u201d\u6807\u5fd7\u3002\u547d\u4ee4\u5728\u6536\u5230\u54cd\u5e94\u540e\u9996\u5148\u68c0\u67e5\u8fd9\u4e2a\u6807\u5fd7\uff0c\u5982\u679c\u65e0\u6548\u5219\u626b\u63cf\u78c1\u76d8\uff0c\u83b7\u53d6\u6700\u65b0\u7684\u5143\u6570\u636e\u3002\u6700\u540e\u628a\u6700\u65b0\u7684\u5143\u6570\u636e\u53d1\u9001\u7ed9lvmetad\u547d\u4ee4\uff0c\u5e76\u6e05\u9664\u5176\u201c\u65e0\u6548\u201d\u6807\u5fd7\uff0c\u540e\u9762\u518d\u6709\u65b0\u7684\u547d\u4ee4\u83b7\u53d6\u5143\u6570\u636e\u65f6\u83b7\u53d6\u7684\u5c31\u662f\u6700\u65b0\u7684\u5143\u6570\u636e\u4e86\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>lvmetad [\u53c2\u6570]<\/p>\n\n\n\n

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

-l<\u7c7b\u578b><\/td>\u9009\u62e9\u65e5\u5fd7\u6d88\u606f\u7684\u751f\u6210\u7c7b\u578b\uff0c\u7c7b\u578b\u53ef\u4ee5\u662fall\u3001wire\u3001debug<\/td><\/tr>
-s<\u8def\u5f84><\/td>\u4f7f\u7528\u7684socket\u6587\u4ef6\u7684\u8def\u5f84<\/td><\/tr>
-f<\/td>\u4e0dfork\uff0c\u5728\u524d\u53f0\u8fd0\u884c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u542f\u52a8LVM\u5143\u6570\u636e\u7f13\u5b58\u5b88\u62a4\u8fdb\u7a0b\uff1a<\/p>\n\n\n\n

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

\u8bbe\u7f6e\u65e5\u5fd7\u7c7b\u578b\u4e3aall\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lvmetad -l all<\/pre>\n\n\n\n

\u6307\u5b9asocket\u6587\u4ef6\u7684\u8def\u5f84\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lvmetad -s \/linuxcool<\/pre>\n","protected":false},"excerpt":{"rendered":"

lvmetad\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u542f\u52a8LVM\u5143\u6570\u636e\u7f13\u5b58\u5b88\u62a4\u8fdb\u7a0b\u3002 \u6b63\u5e38\u60c5\u51b5\u4e0b\uff0clvmetad\u547d\u4ee4\u901a\u8fc7\u5904\u7406\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u63d0 […]<\/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\/7910"}],"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=7910"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7910\/revisions"}],"predecessor-version":[{"id":7941,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7910\/revisions\/7941"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}