{"id":8663,"date":"2020-09-22T17:29:16","date_gmt":"2020-09-22T09:29:16","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8663"},"modified":"2020-09-22T22:07:10","modified_gmt":"2020-09-22T14:07:10","slug":"metainit","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/metainit","title":{"rendered":"metainit\u547d\u4ee4 – \u914d\u7f6e\u5143\u8bbe\u5907"},"content":{"rendered":"\n
metainit\u547d\u4ee4\u6839\u636e\u547d\u4ee4\u884c\u4e0a\u6307\u5b9a\u7684\u4fe1\u606f\u914d\u7f6e\u5143\u7ec4\u4ef6\u548c\u70ed\u5907\u7528\u3002\u6216\u8005\uff0c\u4f60\u53ef\u4ee5\u8fd0\u884cmetainit\uff0c\u8ba9\u5b83\u4f7f\u7528\u4f60\u5728\/etc\/lvm\/md.\u6307\u5b9a\u7684\u914d\u7f6e\u6761\u76ee\u9009\u9879\u5361\u6587\u4ef6\u3002\u6240\u6709metadevices\u5728\u4f7f\u7528\u4e4b\u524d\u90fd\u5fc5\u987b\u901a\u8fc7metainit\u547d\u4ee4\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>metainit[\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 \u663e\u793a\u4e86\u4e00\u4e2a\u7531\u4e24\u4e2a\u5207\u7247\u7ec4\u6210\u7684\u5143\u8bbe\u5907\/ dev \/ md \/ dsk \/ d15\uff1a<\/p>\n\n\n\n \u663e\u793a\u4e86\u4e00\u4e2a\u5143\u8bbe\u5907\/ dev \/ md \/ dsk \/ d75\uff0c\u7531\u4e09\u4e2a\u78c1\u76d8\u7684\u4e24\u4e2a\u6761\u5e26\u7684\u4e32\u8054\u7ec4\u6210\uff1a<\/p>\n\n\n\n \u663e\u793a\u4e86\u4e00\u4e2a\u53cc\u5411\u955c\u50cf\/ dev \/ md \/ dsk \/ d50\uff0c\u7531\u4e24\u4e2a\u5b50\u955c\u50cf\u7ec4\u6210\u3002\u8be5\u955c\u50cf\u4e0d\u5305\u542b\u4efb\u4f55\u73b0\u6709\u6570\u636e\uff1a<\/p>\n\n\n\n \u663e\u793a\u4e86\u4e00\u4e2a\u5143\u8bbe\u5907\/ dev \/ md \/ dsk \/ d75\uff0c\u7531\u79f0\u4e3aset1\u7684\u78c1\u76d8\u96c6\u5185\u4e24\u4e2a\u6761\u5e26\u7684\u4e32\u8054\u7ec4\u6210\uff1a<\/p>\n\n\n\n metainit\u547d\u4ee4\u6839\u636e\u547d\u4ee4\u884c\u4e0a\u6307\u5b9a\u7684\u4fe1\u606f\u914d\u7f6e\u5143\u7ec4\u4ef6\u548c\u70ed\u5907\u7528\u3002\u6216\u8005\uff0c\u4f60\u53ef\u4ee5\u8fd0\u884cmetainit\uff0c\u8ba9\u5b83\u4f7f\u7528\u4f60\u5728\/ […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8663"}],"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=8663"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8663\/revisions"}],"predecessor-version":[{"id":8932,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8663\/revisions\/8932"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-f<\/td> \u5373\u4f7f\u7247\u4e2d\u7684\u4e00\u4e2a\u5305\u542b\u4e00\u4e2a\u5df2\u6302\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf\u6216\u6b63\u7528\u4f5c\u4ea4\u6362\uff0c\u6216\u8005\u6b63\u5728\u521b\u5efa\u7684\u6761\u5e26\u7684\u5927\u5c0f\u5c0f\u4e8e\u57fa\u7840\u8f6f\u5206\u533a\u7684\u5927\u5c0f\uff0c\u4e5f\u5f3a\u5236metainit\u547d\u4ee4\u7ee7\u7eed\u6267\u884c<\/td><\/tr> -h<\/td> \u663e\u793a\u4f7f\u7528\u60c5\u51b5\u6d88\u606f<\/td><\/tr> -n<\/td> \u5728\u4e0d\u5b9e\u9645\u8bbe\u7f6e\u5143\u8bbe\u5907\u7684\u60c5\u51b5\u4e0b\u68c0\u67e5\u547d\u4ee4\u884c\u6216md.tab\u6761\u76ee\u7684\u8bed\u6cd5<\/td><\/tr> -r<\/td> \u5f15\u5bfc\u65f6\u4ec5\u5728shell\u811a\u672c\u4e2d\u4f7f\u7528<\/td><\/tr> -s setname<\/em><\/td> \u6307\u5b9a\u7528\u4e8emetainit\u7684\u78c1\u76d8\u96c6\u7684\u540d\u79f0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# metainit d15 1 2 c0t1d0s0 c0t2d0s0 -i 32k<\/pre>\n\n\n\n
[root@linuxcool ~]# metainit d75 2 3 c0t1d0s0 c0t2d0s0 \\ \n c0t3d0s0 -i 16k \\ \n3 c1t1d0s0 c1t2d0s0 c1t3d0s0 -i 32k<\/pre>\n\n\n\n
[root@linuxcool ~]# metainit d51 1 1 c0t1d0s0 \n# metainit d52 1 1 c0t2d0s0 \n# metainit d50 -m d51 \n# metattach d50 d52<\/pre>\n\n\n\n
[root@linuxcool ~]# metainit -s set1 d75 2 3 c2t1d0s0 c2t2d0s0 \\ \n c2t3d0s0 -i 32k \n# metainit -s set1 d51 1 1 c2t1d0s0 \n# metainit -s set1 d52 1 1 c3t1d0s0 \n# metainit -s set1 d50 -m d51 \n# metattach -s set1 d50 d52<\/pre>\n","protected":false},"excerpt":{"rendered":"