{"id":8684,"date":"2020-09-22T17:29:16","date_gmt":"2020-09-22T09:29:16","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8684"},"modified":"2020-09-22T17:29:16","modified_gmt":"2020-09-22T09:29:16","slug":"mkdumprd","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/mkdumprd","title":{"rendered":"mkdumprd\u547d\u4ee4 – \u4e3a\u5185\u6838\u8f6c\u50a8\u5d29\u6e83\u6062\u590d\u521d\u59cbramdisk\u6620\u50cf"},"content":{"rendered":"\n
mkdumprd\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u521b\u5efa\u4e00\u4e2a\u521d\u59cbram\u6587\u4ef6\u7cfb\u7edf\uff0c\u7528\u4e8e\u5728kdump\u6846\u67b6\u4e2d\u5f15\u5bfc\u5185\u6838\u4ee5\u8fdb\u884c\u5d29\u6e83\u6062\u590d\u3002<\/p>\n\n\n\n
\u5728\u521d\u59cbramdisk\u52a0\u8f7d\u6a21\u5757\u65f6\uff0c\/etc\/modprobe.conf\u4e2d\u6307\u5b9a\u7684\u4efb\u4f55\u6a21\u5757\u9009\u9879\u90fd\u4f1a\u88ab\u4f20\u9012\u7ed9\u6a21\u5757\u3002mkdumprd\u547d\u4ee4\u8be2\u95ee\u6b63\u5728\u8fd0\u884c\u7684\u7cfb\u7edf\uff0c\u4ee5\u4e86\u89e3\u9700\u8981\u5728initramfs\u4e2d\u52a0\u8f7d\u54ea\u4e9b\u6a21\u5757(\u57fa\u4e8e\u4ece\/etc\/kdump.conf\u68c0\u7d22\u7684\u914d\u7f6e)\u3002<\/p>\n\n\n\n
mkdumprd\u547d\u4ee4\u6700\u521d\u6d3e\u751f\u81eamkinitrd\u5b9e\u7528\u7a0b\u5e8f(\u56e0\u6b64\u9009\u9879\u96c6\u7684\u76f8\u4f3c\u6027)\uff0c\u4f46\u662fmkdumprd\u547d\u4ee4\u7684\u76ee\u7684\u548c\u4efb\u52a1\u4e0emkinitrd\u6709\u663e\u8457\u7684\u4e0d\u540c\u3002\u5982\u679c\u9700\u8981\u81ea\u5b9a\u4e49kdump initramfs\u6620\u50cf\uff0c\u5efa\u8bae\u4f7f\u7528kdump\u670d\u52a1\u57fa\u7840\u7ed3\u6784\u521b\u5efa\u4e00\u4e2a\u6620\u50cf\uff0c\u7136\u540e\u624b\u52a8\u89e3\u5305\u3001\u4fee\u6539\u548c\u91cd\u65b0\u6253\u5305\u6620\u50cf\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>mkdumprd [\u53c2\u6570] [\u955c\u50cf] [\u5185\u6838\u7248\u672c]<\/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 \u521b\u5efa\u521d\u59cbramdisk\u6620\u50cf\/root\/ram\uff1a<\/p>\n\n\n\n \u67e5\u8be2\/etc\/kdump\uff1a<\/p>\n\n\n\n \u6253\u5370\u8be6\u7ec6\u7684\u4fe1\u606f\uff0c\u540c\u65f6\u521b\u5efa\u6620\u50cf\uff1a<\/p>\n\n\n\n mkdumprd\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u521b\u5efa\u4e00\u4e2a\u521d\u59cbram\u6587\u4ef6\u7cfb\u7edf\uff0c\u7528\u4e8e\u5728kdump\u6846\u67b6\u4e2d\u5f15\u5bfc\u5185\u6838\u4ee5\u8fdb\u884c\u5d29\u6e83\u6062\u590d\u3002 \u5728\u521d\u59cb […]<\/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\/8684"}],"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=8684"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8684\/revisions"}],"predecessor-version":[{"id":8704,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8684\/revisions\/8704"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-- -image-version<\/td> \u5728\u6620\u50cf\u521b\u5efa\u4e4b\u524d\uff0c\u5185\u6838\u7248\u672c\u53f7\u8ffd\u52a0initrd\u6620\u50cf\u8def\u5f84<\/td><\/tr> -- -nocompress<\/td> \u521b\u5efainitrd\u6620\u50cf\u4e0d\u4f7f\u7528gzip\u65b9\u5f0f\u538b\u7f29<\/td><\/tr> -f<\/td> \u5141\u8bb8mkdumprd\u8986\u76d6\u73b0\u6709\u7684\u6620\u50cf\u6587\u4ef6<\/td><\/tr> -v<\/td> \u6253\u5370\u8be6\u7ec6\u7684\u4fe1\u606f\uff0c\u540c\u65f6\u521b\u5efa\u6620\u50cf(\u901a\u5e38mkdumprd\u4ee5\u9759\u9ed8\u65b9\u5f0f\u8fd0\u884c)<\/td><\/tr> -- -omit-lvm-modules<\/td> \u4e0d\u52a0\u8f7d\u4efb\u4f55LVM\u6a21\u5757<\/td><\/tr> -d<\/td> \u67e5\u8be2\/etc\/kdump<\/td><\/tr> -- -fstab=<fstab\u6587\u4ef6><\/td> \u4f7f\u7528fstab\u6587\u4ef6\u6765\u81ea\u52a8\u786e\u5b9a\u6839\u8bbe\u5907\u4e0a\u7684\u6587\u4ef6\u7cfb\u7edf\u7684\u7c7b\u578b\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\u4f7f\u7528\/etc\/fstab\u6587\u4ef6<\/td><\/tr> -- -omit-reid-modules<\/td> \u4e0d\u52a0\u8f7d\u4efb\u4f55RAID\u6a21\u5757<\/td><\/tr> -- -omit-scsi-modules<\/td> \u4e0d\u52a0\u8f7d\u4efb\u4f55SCSI\u6a21\u5757<\/td><\/tr> -- -preload=<\u6a21\u5757><\/td> \u5728\u521d\u59cbramdisk\u6620\u50cf\u4e2d\u52a0\u8f7d\u6307\u5b9a\u6a21\u5757<\/td><\/tr> -- -builtin=<\u6a21\u5757><\/td> \u5982\u679c\u6a21\u5757\u88ab\u5185\u7f6e\u5230\u5185\u6838\u4f7f\u7528\u5219\u6fc0\u6d3b<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# mkdumprd \/root\/ram 2.6.32-358.el6.x86_64<\/pre>\n\n\n\n
[root@linuxcool ~]# mkdumprd -d<\/pre>\n\n\n\n
[root@linuxcool ~]# mkdumprd -v<\/pre>\n","protected":false},"excerpt":{"rendered":"