Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 232869

Re: How to map a RDM to a VM via the CLI

$
0
0

Thank you for your answer, but you DID NOT create an RDM.  Your example creates a virtual disk.

 

from link: http://www.vm-help.com/esx40i/manage_without_VI_client_6.php

 

"vmkfstools -c 255G -d eagerzeroedthick -a lsilogic IOMETER.vmdk "

 

With that type of virtual disk then the command

     "vim-cmd vmsvc/device.diskaddexisting 272 /vmfs/volumes/datastore1/IOMETER/IOMETER.vmdk 0 1"

does work.

 

However, I am creating an RDM, which is needed for our testing of I/O traffic.  I use the command

 

vmkfstools  -r  /vmfs/devices/disks/naa.60060160cd103300b2678da7b981e211 /vmfs/volumes/datastore3/Linux1Auto1/Linux1Auto1_3.vmdk

 

This creates the RDM vmdk files:

-rw-------    1 root     root         5368709120 Mar  6 10:10 Linux1Auto1_3-rdm.vmdk
-rw-------    1 root     root                487 Mar  6 10:10 Linux1Auto1_3.vmdk

 

However, when trying to add the disk to a VM this is what occurs.

     vim-cmd vmsvc/device.diskaddexisting 2 /vmfs/volumes/datastore3/Linux1Auto1/Linux1Auto1_3.vmdk 0 1
     Reconfigure failed

 

This corresponds to the vim-cmd documentation that states it does not work with RDMs

 

 

So, once again I ask VMware.  How do you add an RDM disk to a VM with a CLI command?

 

Thank you.


Viewing all articles
Browse latest Browse all 232869

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>