{"id":8073,"date":"2020-06-22T15:54:43","date_gmt":"2020-06-22T07:54:43","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8073"},"modified":"2020-06-22T15:54:44","modified_gmt":"2020-06-22T07:54:44","slug":"dmsetup","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/dmsetup","title":{"rendered":"dmsetup\u547d\u4ee4 – \u663e\u793a\u5f53\u524d\u7684device mapper\u7684\u4fe1\u606f"},"content":{"rendered":"\n

dmsetup\u662f\u4e00\u4e2a\u66f4\u52a0\u5e95\u5c42\u7684\u903b\u8f91\u5377\u7ba1\u7406\u5de5\u5177\u3002\u5e73\u65f6\u6211\u4eec\u7ba1\u7406linux \u4e0a\u7684\u903b\u8f91\u5377\uff0c\u4f7f\u7528lvm\u76f8\u5173\u7684\u5de5\u5177\u5373\u53ef\u3002lvs\u662f\u66f4\u9ad8\u7ea7\u7684\u7ba1\u7406\u903b\u8f91\u5377\u7684\u547d\u4ee4\u3002\u4f46\u662f\uff0c\u6709\u65f6\u5019\u4f1a\u51fa\u73b0\u7c7b\u4f3clvm\u5220\u9664\u4e0d\u6389\u7684lvm\u5206\u533a\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528dmsetup\u53bb\u5220\u9664\u3002<\/p>\n\n\n\n

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

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

info<\/td>\u63d0\u4f9b\u6709\u5173 Device Mapper \u8bbe\u5907\u6982\u8ff0<\/td><\/tr>
ls<\/td>\u5217\u51fa\u6620\u5c04\u7684\u8bbe\u5907\u7684\u8bbe\u5907\u540d\u79f0\u5217\u8868<\/td><\/tr>
status<\/td>\u63d0\u4f9b\u6307\u5b9a\u8bbe\u5907\u4e2d\u6bcf\u4e2a\u76ee\u6807\u7684\u72b6\u6001\u4fe1\u606f<\/td><\/tr>
deps<\/td>\u6307\u5b9a\u8bbe\u5907\u7684\u6620\u5c04\u5217\u8868\u53c2\u8003\u7684\u8bbe\u5907\u63d0\u4f9b\uff08major\uff0cminor\uff09\u5bf9\u5217\u8868<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u4f7f\u7528dmsetup \u67e5\u770blv\u5377\uff1a<\/p>\n\n\n\n

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

\u4f7f\u7528dmsetup \u5220\u9664lv\u5377\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# dmsetup remove vg--test-vg--lv<\/pre>\n\n\n\n

\u8f93\u51fa\u8bbe\u5907\u6982\u8ff0\uff1a<\/p>\n\n\n\n

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

dmsetup\u662f\u4e00\u4e2a\u66f4\u52a0\u5e95\u5c42\u7684\u903b\u8f91\u5377\u7ba1\u7406\u5de5\u5177\u3002\u5e73\u65f6\u6211\u4eec\u7ba1\u7406linux \u4e0a\u7684\u903b\u8f91\u5377\uff0c\u4f7f\u7528lvm\u76f8\u5173\u7684\u5de5\u5177\u5373\u53ef\u3002l […]<\/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\/8073"}],"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=8073"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8073\/revisions"}],"predecessor-version":[{"id":8082,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8073\/revisions\/8082"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}