{"id":45275,"date":"2025-06-23T11:46:12","date_gmt":"2025-06-23T03:46:12","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/45275.html"},"modified":"2025-06-23T11:46:12","modified_gmt":"2025-06-23T03:46:12","slug":"%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%99%9a%e6%8b%9f%e6%9c%ba%e9%85%8d%e7%bd%ae%e8%ae%b0%e5%bd%95","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/45275.html","title":{"rendered":"\u670d\u52a1\u5668\u865a\u62df\u673a\u914d\u7f6e\u8bb0\u5f55"},"content":{"rendered":"<h4>\u7b2c\u4e00\u8282&#xff1a;Linux \u73af\u5883\u4e0b\u4f7f\u7528KVM\u521b\u5efa\u865a\u62df\u673a<\/h4>\n<h6>VM1:<\/h6>\n<p>virt-install -n obmc-build \u00a0&#8211;memory 131072 &#8211;vcpus&#061;96 \u00a0&#8211;os-variant&#061;ubuntu22.04 \u00a0 &#8211;accelerate \u00a0 &#8211;cdrom \/home\/ubuntu-22.04.5-live-server-amd64.iso \u00a0 &#8211;disk \/home\/vmsets\/obmc-build.vm,format&#061;qcow2,bus&#061;virtio,size&#061;786 \u00a0 &#8211;network network&#061;default \u00a0 &#8211;vnc &#8211;vncport&#061;5996 &#8211;vnclisten&#061;0.0.0.0<\/p>\n<h6>VM2:<\/h6>\n<p>virt-install -n g-server \u00a0&#8211;memory 32768 &#8211;vcpus&#061;16 \u00a0&#8211;os-variant&#061;ubuntu22.04 \u00a0 &#8211;accelerate \u00a0 &#8211;cdrom \/home\/ubuntu-22.04.5-live-server-amd64.iso \u00a0 &#8211;disk \/home\/vmsets\/g-server.vm,format&#061;qcow2,bus&#061;virtio,size&#061;786 \u00a0 &#8211;network network&#061;default \u00a0 &#8211;vnc &#8211;vncport&#061;5997 &#8211;vnclisten&#061;0.0.0.0<\/p>\n<h6>\u53c2\u6570\u89e3\u6790&#xff1a;<\/h6>\n<table align=\"center\" border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:900px\">\n<tr><span style=\"background-color:null\">\u53c2\u6570<\/span><span style=\"background-color:null\">\u542b\u4e49<\/span><\/tr>\n<tbody>\n<tr>-n<\/p>\n<td style=\"width:718px\">\u6307\u5b9a\u865a\u62df\u673a\u7684\u540d\u79f0<\/td>\n<\/tr>\n<tr>&#8211;memory<\/p>\n<td style=\"width:718px\">\u6307\u5b9a\u865a\u62df\u673a\u5206\u914d\u7684\u5185\u5b58\u5927\u5c0f&#xff08;\u4ee5 MB \u4e3a\u5355\u4f4d&#xff09;<\/td>\n<\/tr>\n<tr>&#8211;vcpus<\/p>\n<td style=\"width:718px\">\u6307\u5b9a\u865a\u62df\u673a\u5206\u914d\u7684\u865a\u62df CPU \u6570\u91cf<\/td>\n<\/tr>\n<tr>&#8211;os-variant<\/p>\n<td style=\"width:718px\">\u6307\u5b9a\u64cd\u4f5c\u7cfb\u7edf\u7684\u53d8\u4f53&#xff0c;\u4ee5\u4f18\u5316\u865a\u62df\u673a\u7684\u914d\u7f6e\u3002\u8fd9\u91cc\u6307\u5b9a\u4e3a\u00a0ubuntu20.04&#xff0c;\u8868\u793a\u865a\u62df\u673a\u5c06\u8fd0\u884c Ubuntu 20.04\u3002<\/td>\n<\/tr>\n<tr>&#8211;accelerate<\/p>\n<td style=\"width:718px\">\u542f\u7528\u52a0\u901f\u529f\u80fd&#xff08;\u5982 KVM \u52a0\u901f&#xff09;&#xff0c;\u4ee5\u63d0\u9ad8\u865a\u62df\u673a\u7684\u6027\u80fd\u3002<\/td>\n<\/tr>\n<tr>-c\/&#8211;cdrom<\/p>\n<td style=\"width:718px\">\u6307\u5b9a\u7528\u4e8e\u5b89\u88c5\u64cd\u4f5c\u7cfb\u7edf\u7684 ISO \u955c\u50cf\u6587\u4ef6\u8def\u5f84\u3002<\/td>\n<\/tr>\n<tr>&#8211;disk<\/p>\n<td style=\"width:718px\">\u6307\u5b9a\u865a\u62df\u673a\u7684\u78c1\u76d8\u914d\u7f6e\u3002<\/td>\n<\/tr>\n<tr>path<\/p>\n<td style=\"width:718px\">\u751f\u6210\u78c1\u76d8\u6587\u4ef6\u7684\u8def\u5f84\u3002<\/td>\n<\/tr>\n<tr>format<\/p>\n<td style=\"width:718px\">\u78c1\u76d8\u6587\u4ef6\u7684\u683c\u5f0f\u4e3aqcow2&#xff0c;\u8fd9\u662f\u4e00\u79cd\u652f\u6301\u52a8\u6001\u5206\u914d\u548c\u5feb\u7167\u7684\u78c1\u76d8\u683c\u5f0f\u3002\u652f\u6301\u7a00\u758f\u6587\u4ef6&#xff08;\u52a8\u6001\u5206\u914d&#xff09;&#xff0c;\u8fd9\u610f\u5473\u7740\u78c1\u76d8\u6587\u4ef6\u7684\u5b9e\u9645\u5927\u5c0f\u4f1a\u968f\u7740\u6570\u636e\u5199\u5165\u800c\u589e\u957f&#xff0c;\u800c\u4e0d\u662f\u4e00\u6b21\u6027\u5206\u914d\u5168\u90e8\u7a7a\u95f4\u3002<\/td>\n<\/tr>\n<tr>bus<\/p>\n<td style=\"width:718px\">\u78c1\u76d8\u603b\u7ebf\u7c7b\u578b\u4e3avirtio&#xff0c;\u8fd9\u662f\u4e00\u79cd\u9ad8\u6027\u80fd\u7684\u865a\u62df\u5316\u8bbe\u5907\u63a5\u53e3\u3002<\/td>\n<\/tr>\n<tr>size<\/p>\n<td style=\"width:718px\">\u78c1\u76d8\u7684\u5927\u5c0f&#xff08;\u5355\u4f4dGB&#xff09;<\/td>\n<\/tr>\n<tr>&#8211;network<\/p>\n<td style=\"width:718px\">\n<p>\u6307\u5b9a\u865a\u62df\u673a\u7684\u7f51\u7edc\u914d\u7f6e\u3002<\/p>\n<p>1. bridge&#061;br0&#xff1b;\u865a\u62df\u673a\u5c06\u8fde\u63a5\u5230\u540d\u4e3a\u00a0br0\u00a0\u7684\u7f51\u6865&#xff0c;\u901a\u5e38\u7528\u4e8e\u6865\u63a5\u7f51\u7edc\u3002<\/p>\n<p>2.\u00a0network&#061;default&#xff1b;\u4f7f\u7528 libvirt \u7684\u9ed8\u8ba4 NAT \u7f51\u7edc&#xff08;\u901a\u5e38\u540d\u4e3a default&#xff09;\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>&#8211;vnc<\/p>\n<td style=\"width:718px\">\u542f\u7528 VNC&#xff08;Virtual Network Computing&#xff09;\u6765\u8fdc\u7a0b\u8bbf\u95ee\u865a\u62df\u673a\u7684\u56fe\u5f62\u754c\u9762\u3002<\/td>\n<\/tr>\n<tr>&#8211;vncport<\/p>\n<td style=\"width:718px\">\u6307\u5b9a VNC \u670d\u52a1\u7684\u7aef\u53e3\u53f7\u3002\u540c\u65f6\u5b58\u5728\u591a\u4e2a\u865a\u62df\u673a\u65f6&#xff0c;\u7aef\u53e3\u53f7\u9700\u8981\u533a\u5206\u3002<\/td>\n<\/tr>\n<tr>&#8211;vnclisten<\/p>\n<td style=\"width:718px\">\u6307\u5b9a VNC \u670d\u52a1\u76d1\u542c\u7684 IP \u5730\u5740\u30020.0.0.0 \u8868\u793a\u76d1\u542c\u6240\u6709\u7f51\u7edc\u63a5\u53e3&#xff0c;\u5141\u8bb8\u4ece\u4efb\u4f55 IP \u5730\u5740\u8fde\u63a5\u3002127.0.0.1\u8868\u793a\u8fd9\u6837\u53ea\u5141\u8bb8\u672c\u5730\u8bbf\u95ee\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u7b2c\u4e8c\u8282&#xff1a;\u5e38\u7528\u7684\u865a\u62df\u673a\u7ba1\u7406\u547d\u4ee4<\/h4>\n<table align=\"center\" border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:900px\">\n<tr>\u547d\u4ee4\u53c2\u6570\u542b\u4e49<\/tr>\n<tbody>\n<tr>attach-disk<\/p>\n<td style=\"width:721px\">\u9644\u52a0\u4e00\u4e2a\u78c1\u76d8\u5230\u865a\u62df\u673a<\/td>\n<\/tr>\n<tr>detach-disk<\/p>\n<td style=\"width:721px\">\u62c6\u9664\u865a\u62df\u673a\u4e0a\u9644\u52a0\u7684\u78c1\u76d8<\/td>\n<\/tr>\n<tr>dumpxml<\/p>\n<td style=\"width:721px\">\u8f93\u51fa\u865a\u62df\u673a\u7684\u4fe1\u606f&#xff0c;XML\u683c\u5f0f<\/td>\n<\/tr>\n<tr>edit<\/p>\n<td style=\"width:721px\">\u7f16\u8f91\u865a\u62df\u673a\u7684\u4fe1\u606f&#xff0c;XML\u683c\u5f0f<\/td>\n<\/tr>\n<tr>reboot<\/p>\n<td style=\"width:721px\">\u91cd\u542f\u865a\u62df\u673a<\/td>\n<\/tr>\n<tr>restore<\/p>\n<td style=\"width:721px\">\u91cd\u7f6e\u865a\u62df\u673a&#xff08;\u901a\u8fc7\u4fdd\u5b58\u7684\u955c\u50cf&#xff09;<\/td>\n<\/tr>\n<tr>resume<\/p>\n<td style=\"width:721px\">\u6062\u590d\u865a\u62df\u673a<\/td>\n<\/tr>\n<tr>save<\/p>\n<td style=\"width:721px\">\u521b\u5efa\u865a\u62df\u673a\u955c\u50cf<\/td>\n<\/tr>\n<tr>setmaxmem<\/p>\n<td style=\"width:721px\">\u4fee\u6539\u865a\u62df\u673a\u6700\u5927\u5185\u5b58\u9650\u5236<\/td>\n<\/tr>\n<tr>setmem<\/p>\n<td style=\"width:721px\">\u4fee\u6539\u865a\u62df\u673a\u5185\u5b58\u5206\u914d<\/td>\n<\/tr>\n<tr>setvcpus<\/p>\n<td style=\"width:721px\">\u4fee\u6539\u865a\u62df\u673a\u865a\u62dfCPU\u6838\u5fc3\u7684\u6570\u91cf<\/td>\n<\/tr>\n<tr>shutdown<\/p>\n<td style=\"width:721px\">\u4f18\u96c5\u5730\u5173\u95ed\u4e00\u4e2a\u865a\u62df\u673a<\/td>\n<\/tr>\n<tr>start<\/p>\n<td style=\"width:721px\">\u542f\u52a8\u4e00\u4e2a\u4e0d\u6d3b\u52a8\u7684\u865a\u62df\u673a<\/td>\n<\/tr>\n<tr>suspend<\/p>\n<td style=\"width:721px\">\u6302\u8d77\u4e00\u4e2a\u865a\u62df\u673a<\/td>\n<\/tr>\n<tr>vcpucount<\/p>\n<td style=\"width:721px\">\u67e5\u8be2\u865a\u62df\u673avCPU\u6838\u5fc3\u6570\u91cf<\/td>\n<\/tr>\n<tr>vcpuinfo<\/p>\n<td style=\"width:721px\">\u8be6\u7ec6\u7684\u865a\u62df\u673avCPU\u4fe1\u606f<\/td>\n<\/tr>\n<tr>setvcpu<\/p>\n<td style=\"width:721px\">\u6dfb\u52a0\u6216\u8005\u62c6\u9664\u865a\u62df\u673avCPU\u6838\u5fc3<\/td>\n<\/tr>\n<tr>domifaddr<\/p>\n<td style=\"width:721px\">\u67e5\u8be2\u6b63\u5728\u8fd0\u884c\u865a\u62df\u673a\u7684\u7f51\u7edc\u4fe1\u606f<\/td>\n<\/tr>\n<tr>domiflist<\/p>\n<td style=\"width:721px\">\u67e5\u8be2\u6240\u6709\u865a\u62df\u673a\u7684\u865a\u62df\u63a5\u53e3<\/td>\n<\/tr>\n<tr>domifstat<\/p>\n<td style=\"width:721px\">\u67e5\u8be2\u865a\u62df\u673a\u7f51\u7edc\u63a5\u53e3\u7684\u72b6\u6001<\/td>\n<\/tr>\n<tr>dominfo<\/p>\n<td style=\"width:721px\">\u67e5\u8be2\u865a\u62df\u673a\u4fe1\u606f<\/td>\n<\/tr>\n<tr>dommemstat<\/p>\n<td style=\"width:721px\">\u67e5\u8be2\u865a\u62df\u673a\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f<\/td>\n<\/tr>\n<tr>domstate<\/p>\n<td style=\"width:721px\">\u67e5\u8be2\u865a\u62df\u673a\u72b6\u6001<\/td>\n<\/tr>\n<tr>domstats<\/p>\n<td style=\"width:721px\">\u67e5\u8be2\u4e00\u4e2a\u6216\u8005\u591a\u4e2a\u865a\u62df\u673a\u7684\u7edf\u8ba1\u4fe1\u606f<\/td>\n<\/tr>\n<tr>list<\/p>\n<td style=\"width:721px\">\u5217\u51fa\u6240\u6709\u7684\u865a\u62df\u673a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u7b2c\u4e09\u8282&#xff1a;\u56fe\u5f62\u5316\u8bbf\u95ee\u5de5\u5177virt-viewer<\/h4>\n<p>virt-viewer &lt;\u865a\u62df\u673a\u540d\u79f0&gt; <\/p>\n<h4>\u7b2c\u56db\u8282&#xff1a;\u865a\u62df\u7f51\u7edc\u63a7\u5236\u53f0\u8bbf\u95ee\u5de5\u5177vnc<\/h4>\n<p>1. \u67e5\u8be2\u865a\u62df\u673a\u7684VNC\u7aef\u53e3&#xff08;\u8f93\u51fa\u662f1&#xff0c;\u8868\u793a\u7aef\u53e3\u4e3a5901&#xff0c;2\u5bf9\u5e94 5902&#xff0c;\u4ee5\u6b64\u7c7b\u63a8&#xff09;<\/p>\n<p>virsh vncdisplay &lt;\u865a\u62df\u673a\u540d\u79f0&gt; <\/p>\n<p>2. \u4f7f\u7528VNC \u5ba2\u6237\u7aef\u8fde\u63a5\u5230\u865a\u62df\u673a<\/p>\n<ul>\n<li>\u5982\u679c VNC \u76d1\u542c\u5730\u5740\u662f127.0.0.1&#xff0c;\u53ef\u4ee5\u5728\u7269\u7406\u4e3b\u673a\u4e0a\u8fd0\u884c&#xff1a; vncviewer 127.0.0.1:5901 <\/li>\n<\/ul>\n<ul>\n<li>\u5982\u679c VNC \u76d1\u542c\u5730\u5740\u662f0.0.0.0&#xff0c;\u53ef\u4ee5\u4ece\u8fdc\u7a0b\u673a\u5668\u8fd0\u884c&#xff1a; vncviewer &lt;\u7269\u7406\u4e3b\u673aIP&gt;:5901 <\/li>\n<\/ul>\n<h4>\u7b2c\u4e94\u8282&#xff1a;Linux\u73af\u5883\u4e0b\u4f7f\u7528mdadm\u521b\u5efaRAID<\/h4>\n<li>\u5b89\u88c5mdadm&#xff1a; sudo apt-get install mdadm <\/li>\n<li>\u4f7f\u7528lsblk\u6216fdisk -l\u547d\u4ee4\u786e\u8ba4\u4e24\u5757\u786c\u76d8\u7684\u8bbe\u5907\u540d\u79f0&#xff08;\u5982 \/dev\/nvme1n1p1 \u548c \/dev\/nvme2n1p1&#xff09; lsblk <\/li>\n<li>\u5bf9\u786c\u76d8\u8fdb\u884c\u5206\u533a&#xff08;\u4f7f\u7528fdisk\u6216\u8005parted&#xff09;&#xff0c;\u4f8b\u5982 sudo fdisk \/dev\/nvme1n1p1\n<li>\n<p>\u8f93\u5165n\u521b\u5efa\u65b0\u5206\u533a\u3002<\/p>\n<\/li>\n<li>\n<p>\u9009\u62e9\u5206\u533a\u7c7b\u578b&#xff08;\u901a\u5e38\u9009\u62e9\u4e3b\u5206\u533ap&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u8bbe\u7f6e\u5206\u533a\u5927\u5c0f&#xff08;\u9ed8\u8ba4\u4f7f\u7528\u6574\u4e2a\u786c\u76d8&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u8f93\u5165w\u4fdd\u5b58\u5e76\u9000\u51fa\u3002<\/p>\n<\/li>\n<\/li>\n<li>\n<p>\u4f7f\u7528mkfs\u547d\u4ee4\u683c\u5f0f\u5316\u5206\u533a<\/p>\n<p> sudo mkfs.ext4 \/dev\/nvme1n1p1<br \/>\nsudo mkfs.ext4 \/dev\/nvme2n1p1 <\/li>\n<li>\n<p>\u521b\u5efaRAID1\u9635\u5217<\/p>\n<p> sudo mdadm &#8211;create \/dev\/md0 &#8211;level&#061;1 &#8211;raid-devices&#061;2 \/dev\/nvme1n1p1 \/dev\/nvme2n1p1 <\/p>\n<p>\u53c2\u6570\u542b\u4e49&#xff1a;\u00a0\u00a0 &#8211;create&#xff1a;\u6307\u5b9a\u5f85\u521b\u5efaRAID\u8bbe\u5907\u7684\u540d\u79f0\u3002 &#8211;level&#061;1&#xff1a;\u6307\u5b9a\u521b\u5efaRAID\u7684\u7c7b\u578b&#xff0c;RAID1\u3002 &#8211;raid-devices&#061;2&#xff1a;\u6307\u5b9a\u4f7f\u7528\u4e24\u5757\u786c\u76d8\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728RAID\u8bbe\u5907\u4e0a\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf<\/p>\n<p> sudo mkfs.ext4 \/dev\/md0 <\/li>\n<li>\n<p>\u6302\u8f7dRAID\u8bbe\u5907<\/p>\n<p> sudo mkdir \/mnt\/raid1<br \/>\nsudo mount \/dev\/md0 \/mnt\/raid1 <\/li>\n<li>\n<p>\u8bbe\u7f6e\u7cfb\u7edf\u542f\u52a8\u81ea\u52a8\u6302\u8f7dRAID\u8bbe\u5907\u00a0\u00a0 a. \u4e3a\u4e86\u5728\u7cfb\u7edf\u91cd\u542f\u540e\u81ea\u52a8\u6302\u8f7dRAID\u8bbe\u5907&#xff0c;\u9700\u8981\u66f4\u65b0 \/etc\/fstab \u6587\u4ef6&#xff0c;\u9996\u5148\u83b7\u53d6RAID\u8bbe\u5907<\/p>\n<p> sudo blkid \/dev\/md0 <\/p>\n<p>b. \u7136\u540e\u5728 \/etc\/fstab \u4e2d\u6dfb\u52a0\u4e00\u884c<\/p>\n<p> UUID&#061;36a3a564-7575-4a62-b6af-e5b5ab3a4209 \/mnt\/data-raid1 ext4 defaults 0 0 <\/p>\n<p>c. \u4fdd\u5b58RAID\u914d\u7f6e\u4ee5\u4fbf\u7cfb\u7edf\u91cd\u542f\u540e\u81ea\u52a8\u52a0\u8f7d<\/p>\n<p> sudo mdadm &#8211;detail &#8211;scan | sudo tee -a \/etc\/mdadm\/mdadm.conf <\/li>\n<li>\n<p>\u00a0 \u9a8c\u8bc1RAID\u72b6\u6001<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"977\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250623034611-6858ce031d627.png\" width=\"1235\" \/><\/p>\n<\/li>\n<li>\u68c0\u67e5RAID\u8bbe\u5907\u6302\u8f7d\u72b6\u6001<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"144\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250623034611-6858ce0388578.png\" width=\"1234\" \/><\/li>\n<h4>\u7b2c\u516d\u8282&#xff1a;\u521b\u5efa\u865a\u62df\u78c1\u76d8<\/h4>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6839\u636e\u524d\u51e0\u8282&#xff0c;\u5728\u5bbf\u4e3b\u673a\u4e0a\u5df2\u7ecf\u521b\u5efa\u4e86RAID1\u8bbe\u5907\/dev\/md0&#xff08;\u5df2\u6302\u8f7d\u5728 \/mnt\/data\/raid1&#xff09;&#xff0c;\u73b0\u5728\u9700\u8981\u5c06\u5176\u5bb9\u91cf\u5206\u4e3a\u4e09\u4efd&#xff0c;\u5206\u522b\u5206\u914d\u7ed9\u5bbf\u4e3b\u673a\u4ee5\u53ca\u4e24\u4e2a\u865a\u62df\u673a\u3002<\/p>\n<li>\u521b\u5efa\u865a\u62df\u78c1\u76d8\u6587\u4ef6\u00a0\u00a0 sudo qemu-img create -f qcow2 \/mnt\/data-raid1\/obmc-build-vmdisk.qcow2 2T<br \/>\nsudo qemu-img create -f qcow2 \/mnt\/data-raid1\/g-server-vmdisk.qcow2 1T <\/li>\n<li>\u5c06\u865a\u62df\u78c1\u76d8\u5206\u914d\u00a0\u00a0 virsh attach-disk obmc-build \\\\<br \/>\n\/mnt\/data-raid1\/vmdisk\/obmc-build-vmdisk.qcow2 vdb \\\\<br \/>\n&#8211;persistent \\\\<br \/>\n&#8211;subdriver qcow2 \\\\<br \/>\n&#8211;targetbus virtio \\\\<br \/>\n&#8211;cache none<\/p>\n<p>virsh attach-disk g-server \\\\<br \/>\n\/mnt\/data-raid1\/vmdisk\/g-server-vmdisk.qcow2 vdb \\\\<br \/>\n&#8211;persistent \\\\<br \/>\n&#8211;subdriver qcow2 \\\\<br \/>\n&#8211;targetbus virtio \\\\<br \/>\n&#8211;cache none <\/p>\n<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb861\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf28\u6b21\u3002\u6839\u636e\u524d\u51e0\u8282\uff0c\u5728\u5bbf\u4e3b\u673a\u4e0a\u5df2\u7ecf\u521b\u5efa\u4e86RAID1\u8bbe\u5907\/dev\/md0\uff08\u5df2\u6302\u8f7d\u5728 \/mnt\/data\/raid1\uff09\uff0c\u73b0\u5728\u9700\u8981\u5c06\u5176\u5bb9\u91cf\u5206\u4e3a\u4e09\u4efd\uff0c\u5206\u522b\u5206\u914d\u7ed9\u5bbf\u4e3b\u673a\u4ee5\u53ca\u4e24\u4e2a\u865a\u62df\u673a\u3002a. \u4e3a\u4e86\u5728\u7cfb\u7edf\u91cd\u542f\u540e\u81ea\u52a8\u6302\u8f7dRAID\u8bbe\u5907\uff0c\u9700\u8981\u66f4\u65b0 \/etc\/fstab \u6587\u4ef6\uff0c\u9996\u5148\u83b7\u53d6RAID\u8bbe\u5907\u30021. \u67e5\u8be2\u865a\u62df\u673a\u7684VNC\u7aef\u53e3\uff08\u8f93\u51fa\u662f1\uff0c\u8868\u793a\u7aef\u53e3\u4e3a5901\uff0c2\u5bf9\u5e94 5902\uff0c\u4ee5\u6b64\u7c7b\u63a8\uff09&#8211;level=1\uff1a\u6307\u5b9a\u521b\u5efaRAID\u7684\u7c7b\u578b\uff0cRAID1\u3002&#8211;raid-devices=2\uff1a\u6307\u5b9a\u4f7f\u7528\u4e24\u5757\u786c\u76d8\u3002\u9009\u62e9\u5206\u533a\u7c7b\u578b\uff08\u901a\u5e38\u9009\u62e9\u4e3b\u5206\u533ap\uff09\u3002<\/p>\n","protected":false},"author":2,"featured_media":45273,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,4284,442,44],"topic":[],"class_list":["post-45275","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-43","tag-4284","tag-442","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u670d\u52a1\u5668\u865a\u62df\u673a\u914d\u7f6e\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/45275.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u670d\u52a1\u5668\u865a\u62df\u673a\u914d\u7f6e\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb861\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf28\u6b21\u3002\u6839\u636e\u524d\u51e0\u8282\uff0c\u5728\u5bbf\u4e3b\u673a\u4e0a\u5df2\u7ecf\u521b\u5efa\u4e86RAID1\u8bbe\u5907\/dev\/md0\uff08\u5df2\u6302\u8f7d\u5728 \/mnt\/data\/raid1\uff09\uff0c\u73b0\u5728\u9700\u8981\u5c06\u5176\u5bb9\u91cf\u5206\u4e3a\u4e09\u4efd\uff0c\u5206\u522b\u5206\u914d\u7ed9\u5bbf\u4e3b\u673a\u4ee5\u53ca\u4e24\u4e2a\u865a\u62df\u673a\u3002a. \u4e3a\u4e86\u5728\u7cfb\u7edf\u91cd\u542f\u540e\u81ea\u52a8\u6302\u8f7dRAID\u8bbe\u5907\uff0c\u9700\u8981\u66f4\u65b0 \/etc\/fstab \u6587\u4ef6\uff0c\u9996\u5148\u83b7\u53d6RAID\u8bbe\u5907\u30021. \u67e5\u8be2\u865a\u62df\u673a\u7684VNC\u7aef\u53e3\uff08\u8f93\u51fa\u662f1\uff0c\u8868\u793a\u7aef\u53e3\u4e3a5901\uff0c2\u5bf9\u5e94 5902\uff0c\u4ee5\u6b64\u7c7b\u63a8\uff09--level=1\uff1a\u6307\u5b9a\u521b\u5efaRAID\u7684\u7c7b\u578b\uff0cRAID1\u3002--raid-devices=2\uff1a\u6307\u5b9a\u4f7f\u7528\u4e24\u5757\u786c\u76d8\u3002\u9009\u62e9\u5206\u533a\u7c7b\u578b\uff08\u901a\u5e38\u9009\u62e9\u4e3b\u5206\u533ap\uff09\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/45275.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-23T03:46:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250623034611-6858ce031d627.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/45275.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/45275.html\",\"name\":\"\u670d\u52a1\u5668\u865a\u62df\u673a\u914d\u7f6e\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-23T03:46:12+00:00\",\"dateModified\":\"2025-06-23T03:46:12+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/45275.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/45275.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/45275.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u670d\u52a1\u5668\u865a\u62df\u673a\u914d\u7f6e\u8bb0\u5f55\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u670d\u52a1\u5668\u865a\u62df\u673a\u914d\u7f6e\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/45275.html","og_locale":"zh_CN","og_type":"article","og_title":"\u670d\u52a1\u5668\u865a\u62df\u673a\u914d\u7f6e\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb861\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf28\u6b21\u3002\u6839\u636e\u524d\u51e0\u8282\uff0c\u5728\u5bbf\u4e3b\u673a\u4e0a\u5df2\u7ecf\u521b\u5efa\u4e86RAID1\u8bbe\u5907\/dev\/md0\uff08\u5df2\u6302\u8f7d\u5728 \/mnt\/data\/raid1\uff09\uff0c\u73b0\u5728\u9700\u8981\u5c06\u5176\u5bb9\u91cf\u5206\u4e3a\u4e09\u4efd\uff0c\u5206\u522b\u5206\u914d\u7ed9\u5bbf\u4e3b\u673a\u4ee5\u53ca\u4e24\u4e2a\u865a\u62df\u673a\u3002a. \u4e3a\u4e86\u5728\u7cfb\u7edf\u91cd\u542f\u540e\u81ea\u52a8\u6302\u8f7dRAID\u8bbe\u5907\uff0c\u9700\u8981\u66f4\u65b0 \/etc\/fstab \u6587\u4ef6\uff0c\u9996\u5148\u83b7\u53d6RAID\u8bbe\u5907\u30021. \u67e5\u8be2\u865a\u62df\u673a\u7684VNC\u7aef\u53e3\uff08\u8f93\u51fa\u662f1\uff0c\u8868\u793a\u7aef\u53e3\u4e3a5901\uff0c2\u5bf9\u5e94 5902\uff0c\u4ee5\u6b64\u7c7b\u63a8\uff09--level=1\uff1a\u6307\u5b9a\u521b\u5efaRAID\u7684\u7c7b\u578b\uff0cRAID1\u3002--raid-devices=2\uff1a\u6307\u5b9a\u4f7f\u7528\u4e24\u5757\u786c\u76d8\u3002\u9009\u62e9\u5206\u533a\u7c7b\u578b\uff08\u901a\u5e38\u9009\u62e9\u4e3b\u5206\u533ap\uff09\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/45275.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-23T03:46:12+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250623034611-6858ce031d627.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/45275.html","url":"https:\/\/www.wsisp.com\/helps\/45275.html","name":"\u670d\u52a1\u5668\u865a\u62df\u673a\u914d\u7f6e\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-23T03:46:12+00:00","dateModified":"2025-06-23T03:46:12+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/45275.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/45275.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/45275.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u670d\u52a1\u5668\u865a\u62df\u673a\u914d\u7f6e\u8bb0\u5f55"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/45275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=45275"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/45275\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/45273"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=45275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=45275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=45275"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=45275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}