viraagh
Contributor
Contributor

Please let me know the command to add a virtual rdm to a VM.

Please let me know the command to add a virtual rdm to a VM.

0 Kudos
6 Replies
idle-jam
Immortal
Immortal

0 Kudos
viraagh
Contributor
Contributor

I had been through this.I nneed a command to work with ESXi console.Get-VM command doesnt work with the ESXi console.

0 Kudos
MauroBonder
Leadership
Leadership

http://daverdave.com/node/120

*Please, don't forget the awarding points for "helpful" and/or "correct" answers. *Por favor, não esqueça de atribuir os pontos se a resposta foi útil ou resolveu o problema.* Thank you/Obrigado
0 Kudos
AndreTheGiant
Immortal
Immortal

You can use this:

http://www.vmware.com/support/developer/vcli/vcli41/doc/reference/vmkfstools.html

But note that Get-VM must be issue not in the ESXi console, but on a Windows machine with PowerCLI installed.

Andre

Andre | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
viraagh
Contributor
Contributor

No commands worked for me. My VM is powered on.I need a command to add a lUN to VM either as physical or virtual RDM through the ESXi console(CLI). Can anyone help !!

0 Kudos
tjaster
Enthusiast
Enthusiast

My Idea would be to use the vMA 4.1 or the DUI of the  ESXi Server to execute the following CLI command :

http://www.vmware.com/support/developer/vcli/vcli41/doc/reference/vmkfstools.html

vmkfstools <conn_options> <options> <target>

If <target> is a file system, <options> can be one of the following:

 --createfs [blocksize]kK|mM --setfsname <fsname>
 --queryfs
 --extendfs <span_partition> <head_partition>

If <target is a virtual disk, <options> can be one of the following:

 --clonevirtualdisk
 --createdrm
 --createdrmpassthru
 --createvirtualdisk 
     <size>kK|mM|gG 
     --adaptertype <type>
     --diskformat <format> <location> 
 --deletevirtualdisk
 --diskformat
 --extendvirtualdisk
 --geometry
 --inflatedisk
 --querydrm
 --renamevirtualdisk <oldName> <newName> 
 --writezeros

Hope this help

--------- VMware Certified Professional 3/4
0 Kudos