VMware Cloud Community
lukejacko
Contributor
Contributor

Converting VMDK to RDM from a P2V

I have created a P2V of a Data drive on one of our servers that I wish to convert to RDM and present to its Operating system.

But I am strugling trying to find the correct command line to accomplish this task.

The path of the vmdk file is "[VMDK FILES]\WSUSDJA\WSUSDJA.vmdk" and the storage that I want to put the RDM on is vmhba1:0:3

I have tried the following commands from what I have found

vmkfstools -i /vmfs/volumes/VMDK FILES/WSUSDJA/WSUSDJA.vmdk -d rdm:/vmfs/devices/disks/vmhba1\:0\:3 /vmfs/volumes/VMDK FILES/WSUSDJA/WSUSDJA.vmdk

and

vmkfstools -i /vmfs/volumes/VMDK FILES/WSUSDJA/WSUSDJA.vmdk /vmfs/volumes/VMDK FILES/WSUSDJA/WSUSDJA-rdm.vmdk -d rdm:/vmfs/devices/disks/vmhba1:0:3

Can anyone help me with this?

0 Kudos
1 Reply
weinstein5
Immortal
Immortal

I think the easiest way to do this is go ahead and add the RDM to you VM and copy the data from the virtual disk to the Raw LUN through the RDM - just a note and RDM is a special VMDK file that redirects the write to a Raw LUN -

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
0 Kudos