{"id":524,"date":"2021-08-18T22:42:10","date_gmt":"2021-08-18T14:42:10","guid":{"rendered":"https:\/\/dasmz.com\/?p=524"},"modified":"2021-08-18T22:42:12","modified_gmt":"2021-08-18T14:42:12","slug":"proxmox-ve%e6%8a%8a1tb%e7%9a%84%e6%9c%ba%e6%a2%b0%e7%a1%ac%e7%9b%98%e7%9b%b4%e9%80%9a%e7%bb%99%e8%99%9a%e6%9c%ba%ef%bc%8c%e4%bd%9c%e4%b8%ba%e6%95%b0%e6%8d%ae%e5%ad%98%e5%82%a8%e7%94%a8%e9%80%94-2021-8","status":"publish","type":"post","link":"https:\/\/dasmz.com\/?p=524","title":{"rendered":"Proxmox VE\u628a1TB\u7684\u673a\u68b0\u786c\u76d8\u76f4\u901a\u7ed9\u865a\u673a\uff0c\u4f5c\u4e3a\u6570\u636e\u5b58\u50a8\u7528\u9014 2021-8-18"},"content":{"rendered":"\n<p>\u7b2c\u4e00\u6b65\uff0c\u5b89\u88c5\u5fc5\u8981\u7684\u7ec4\u5efa<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@HOSTNODE01:~# apt update\nroot@HOSTNODE01:~# apt install lshw\nroot@HOSTNODE01:~# apt install ntfs-3g fuse<\/pre>\n\n\n\n<p>\u7b2c\u4e8c\u6b65\uff0c\u627e\u5230\u5b58\u50a8\u8bbe\u5907\u7684\u5e8f\u5217\u53f7<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@HOSTNODE01:~# fdisk -l   # \u627e\u5230\u65b0\u52a0\u76843.5\u82f1\u5bf81TB\u5bb9\u91cf\u7684\u786c\u76d8\nDisk \/dev\/sdc: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors\nDisk model: WDC WD10EZEX-60W\nUnits: sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 4096 bytes\nI\/O size (minimum\/optimal): 4096 bytes \/ 4096 bytes\nDisklabel type: dos\nDisk identifier: 0x8d4d51e6\n\nDevice     Boot Start        End    Sectors   Size Id Type\n\/dev\/sdc1        2048 1953521663 1953519616 931.5G  7 HPFS\/NTFS\/exFAT\nroot@HOSTNODE01:~# \n\nroot@HOSTNODE01:~# ls -l \/dev\/disk\/by-id | grep sdc    # \u627e\u5230\u5b58\u50a8\u8bbe\u5907\u7684\u5e8f\u5217\u53f7\uff0c\u4e0d\u7528\u7ba1\u5e26\u5206\u533a\u540d\u5b57\u7684\u884c\nlrwxrwxrwx 1 root root  9 Aug 18 20:23 ata-WDC_WD10EZEX-60WN4A0_WD-WCC6Y7DSYEU7 -> ..\/..\/sdc\nlrwxrwxrwx 1 root root 10 Aug 18 20:23 ata-WDC_WD10EZEX-60WN4A0_WD-WCC6Y7DSYEU7-part1 -> ..\/..\/sdc1\nlrwxrwxrwx 1 root root  9 Aug 18 20:23 wwn-0x50014ee20f24cb97 -> ..\/..\/sdc\nlrwxrwxrwx 1 root root 10 Aug 18 20:23 wwn-0x50014ee20f24cb97-part1 -> ..\/..\/sdc1<\/pre>\n\n\n\n<p>\u7b2c\u4e09\u6b65\uff0c\u4f7f\u7528\u547d\u4ee4\u628a\u786c\u76d8\u76f4\u901a\u5230\u865a\u673a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># \u6302\u8f7d\u7684\u547d\u4ee4\nroot@HOSTNODE01:~# qm set 100 -scsi2 \/dev\/disk\/by-id\/ata-WDC_WD10EZEX-60WN4A0_WD-WCC6Y7DSYEU7\nupdate VM 100: -scsi2 \/dev\/disk\/by-id\/ata-WDC_WD10EZEX-60WN4A0_WD-WCC6Y7DSYEU7\nroot@HOSTNODE01:~# \n\/\/ \u53c2\u6570100\uff0c\u865a\u673a\u5728PVE\u4e2d\u7684ID\u53f7\uff0c\u5728PVE\u7684web\u73af\u5883\u4e0a\uff0c\u53ef\u4ee5\u770b\u5230\n\/\/ \u53c2\u65702\uff0c\u53ef\u9009-scsi2 -sata1 -virtio2\uff0c\u8868\u793a\u4e3a\u63a5\u53e3\u89c4\u683c\n\/\/ \u53c2\u6570\uff0c\u5c31\u662f\u786c\u76d8\u7684\u5e8f\u5217\u53f7\n# \u68c0\u67e5\u662f\u5426\u6302\u8f7d\uff0c\u547d\u4ee4\u5982\u4e0b\uff0c\u6216\u8005\u5728PVE\u7684WEB\u4e0a\u67e5\u770b\nroot@HOSTNODE01:~# grep WDC_WD10EZEX \/etc\/pve\/qemu-server\/100.conf\nscsi2: \/dev\/disk\/by-id\/ata-WDC_WD10EZEX-60WN4A0_WD-WCC6Y7DSYEU7,size=976762584K\nroot@HOSTNODE01:~# <\/pre>\n\n\n\n<p>\u7b2c\u56db\u6b65\uff0c\u4f7f\u7528\u547d\u4ee4\u5e26\u6570\u636e\u76843.5\u82f1\u5bf81TB\u786c\u76d8\u6302\u8f7d\u5230\u865a\u673a\u7684\u76ee\u5f55\u4e0b<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@VM01:~# apt install ntfs-3g fuse\nroot@VM01:~# fdisk -l\nroot@VM01:~# mount -t ntfs \/dev\/sdb1 \/media\/hdd1TB\nroot@VM01:~# vi \/etc\/fstab\n\/dev\/sdb1 \/media\/hdd1TB ntfs defaults 0 0<\/pre>\n\n\n\n<p>\u9644\u5f551, \u53c2\u8003\u6587\u6863 https:\/\/pve.proxmox.com\/wiki\/Passthrough_Physical_Disk_to_Virtual_Machine_(VM)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"574\" height=\"446\" src=\"https:\/\/dasmz.com\/wp-content\/uploads\/2020\/12\/DONATE.jpg\" alt=\"Donate\" class=\"wp-image-18\"\/><figcaption>\u4e91\u4e5e\u8ba8<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u7b2c\u4e00\u6b65\uff0c\u5b89\u88c5\u5fc5\u8981\u7684\u7ec4\u5efa root@HOSTNODE01:~# apt update root@HOSTNODE [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/524"}],"collection":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=524"}],"version-history":[{"count":1,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/524\/revisions"}],"predecessor-version":[{"id":525,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/524\/revisions\/525"}],"wp:attachment":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}