root@node:~# ls -la /dev/disk/by-id/ |grep -v loop |grep -v dm total 0 drwxr-xr-x 2 root root 1040 May 15 17:35 . drwxr-xr-x 7 root root 140 May 15 17:30 .. lrwxrwxrwx 1 root root 9 May 15 17:30 ata-INTEL_SSDSC2KB240G7_PHYS7456014E240AGN -> ../../sdc lrwxrwxrwx 1 root root 10 May 15 17:30 ata-INTEL_SSDSC2KB240G7_PHYS7456014E240AGN-part1 -> ../../sdc1 lrwxrwxrwx 1 root root 10 May 15 17:30 ata-INTEL_SSDSC2KB240G7_PHYS7456014E240AGN-part2 -> ../../sdc2 lrwxrwxrwx 1 root root 9 May 15 17:30 ata-INTEL_SSDSC2KB240G7_PHYS749200Y0240AGN -> ../../sdd lrwxrwxrwx 1 root root 9 May 15 17:30 ata-INTEL_SSDSC2KG480G7_BTYM740403JM480BGN -> ../../sdb lrwxrwxrwx 1 root root 9 May 15 17:30 ata-INTEL_SSDSCKKI256G8_BTLA81061S9U256J -> ../../sda lrwxrwxrwx 1 root root 10 May 15 17:30 ata-INTEL_SSDSCKKI256G8_BTLA81061S9U256J-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 May 15 17:30 ata-INTEL_SSDSCKKI256G8_BTLA81061S9U256J-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 May 15 17:30 ata-INTEL_SSDSCKKI256G8_BTLA81061S9U256J-part3 -> ../../sda3 lrwxrwxrwx 1 root root 9 May 15 17:30 lvm-pv-uuid-lkezU2-A6El-eqC9-hnsG-v36M-jdF5-bioZDz -> ../../sdh lrwxrwxrwx 1 root root 10 May 15 17:30 lvm-pv-uuid-plEPlN-iaIF-uX8y-cMbZ-xWsX-zTMc-RMvUmU -> ../../sda3 lrwxrwxrwx 1 root root 13 May 15 17:30 lvm-pv-uuid-SgQ6wX-qezP-oSBo-VWt6-7chf-FJTs-GitCo8 -> ../../bcache0 lrwxrwxrwx 1 root root 13 May 15 17:30 lvm-pv-uuid-ZYNYPE-13DQ-8ol0-rcrq-nebZ-9RBW-wEBO6g -> ../../bcache1 lrwxrwxrwx 1 root root 9 May 15 17:30 scsi-350000397983249a1 -> ../../sdf lrwxrwxrwx 1 root root 9 May 15 17:30 scsi-3500003979832de6d -> ../../sdh lrwxrwxrwx 1 root root 9 May 15 17:30 scsi-3500003979832e8c9 -> ../../sde lrwxrwxrwx 1 root root 9 May 15 17:30 scsi-3500003979832e8e5 -> ../../sdg lrwxrwxrwx 1 root root 10 May 15 17:30 scsi-3500003979832e8e5-part1 -> ../../sdg1 lrwxrwxrwx 1 root root 10 May 15 17:30 scsi-3500003979832e8e5-part2 -> ../../sdg2 lrwxrwxrwx 1 root root 9 May 15 17:30 scsi-35000c50095464c43 -> ../../sdi lrwxrwxrwx 1 root root 10 May 15 17:30 scsi-35000c50095464c43-part1 -> ../../sdi1 lrwxrwxrwx 1 root root 10 May 15 17:30 scsi-35000c50095464c43-part2 -> ../../sdi2 lrwxrwxrwx 1 root root 9 May 15 17:30 wwn-0x50000397983249a1 -> ../../sdf lrwxrwxrwx 1 root root 9 May 15 17:30 wwn-0x500003979832de6d -> ../../sdh lrwxrwxrwx 1 root root 9 May 15 17:30 wwn-0x500003979832e8c9 -> ../../sde lrwxrwxrwx 1 root root 9 May 15 17:30 wwn-0x500003979832e8e5 -> ../../sdg lrwxrwxrwx 1 root root 10 May 15 17:30 wwn-0x500003979832e8e5-part1 -> ../../sdg1 lrwxrwxrwx 1 root root 10 May 15 17:30 wwn-0x500003979832e8e5-part2 -> ../../sdg2 lrwxrwxrwx 1 root root 9 May 15 17:30 wwn-0x5000c50095464c43 -> ../../sdi lrwxrwxrwx 1 root root 10 May 15 17:30 wwn-0x5000c50095464c43-part1 -> ../../sdi1 lrwxrwxrwx 1 root root 10 May 15 17:30 wwn-0x5000c50095464c43-part2 -> ../../sdi2 lrwxrwxrwx 1 root root 9 May 15 17:30 wwn-0x55cd2e414e3b3437 -> ../../sdc lrwxrwxrwx 1 root root 10 May 15 17:30 wwn-0x55cd2e414e3b3437-part1 -> ../../sdc1 lrwxrwxrwx 1 root root 10 May 15 17:30 wwn-0x55cd2e414e3b3437-part2 -> ../../sdc2 lrwxrwxrwx 1 root root 9 May 15 17:30 wwn-0x55cd2e414ec07496 -> ../../sdb lrwxrwxrwx 1 root root 9 May 15 17:30 wwn-0x55cd2e414f036369 -> ../../sdd lrwxrwxrwx 1 root root 9 May 15 17:30 wwn-0x55cd2e414f4c7405 -> ../../sda lrwxrwxrwx 1 root root 10 May 15 17:30 wwn-0x55cd2e414f4c7405-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 May 15 17:30 wwn-0x55cd2e414f4c7405-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 May 15 17:30 wwn-0x55cd2e414f4c7405-part3 -> ../../sda3
添加磁盘,152为虚拟机ID,sata最大支持6块,scsi最大支持128块(PVE支持satat0-5)
root@node:~# qm set 152 --sata1 /dev/disk/by-id/wwn-0x500003979832e8e5 update VM 152: -sata1 /dev/disk/by-id/wwn-0x500003979832e8e5
删除磁盘
# qm set 152 --delete sata1 update VM 152: -delete sata1
参考:https://foxi.buduanwang.vip/virtualization/1754.html/
推荐本站淘宝优惠价购买喜欢的宝贝:
本文链接:https://hqyman.cn/post/7049.html 非本站原创文章欢迎转载,原创文章需保留本站地址!
打赏
微信支付宝扫一扫,打赏作者吧~
休息一下~~