ITOnLife

A man who comes from HK work at a IT company, small potato staff

Monday, October 05, 2020

ESXi將整個local disk / physical HDD mount給其中一個vm guest使用 (RDM)

 




SSH登錄ESXI,配置 RDM,請運行以下命令:

ls /vmfs/devices/disks/
 
# vmkfstools -z /vmfs/devices/disks/<diskname> /vmfs/volumes/<datastorename>/<vmfolder>/<vmname>.vmdk
例如:
#vmkfstools -z /vmfs/devices/disks/t10.ATA_____KLEVV_D960GAA2DUR_SSD____________________8EC6075A1D0802972075 /vmfs/volumes/VMOS/RDMSTORE/KLEVVSSD.vmdk

Documents:
https://kb.vmware.com/s/article/2046370 
Creating Raw Device Maps from the command line using the vmkfstools command (2046370)

No comments:

Post a Comment