VMware Cloud Community
mark_a_k
Contributor
Contributor

VM dynamic disk offline after migration using vmkfstools

Hi, I have migrated 3 VMs to a development esx server using vmkfstools. I shutdown each VM before running vmkfstools. When i boot the VM on the dev ESX server one of the hard disks are missing on two of the vms. The missing disk is a dynamic disk and is offline. The disk appears in device manager! I have selected reactivate disk but no change. The third VM is fine and the configuration is almost identical to the other 2 VMs. Has anyone come across this issue and can you suggest a resolution? Thanks

0 Kudos
5 Replies
Texiwill
Leadership
Leadership

Hello,

It appears you have not migrated all the VMDKs associated with the VM.

Best regards,

Edward

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
mark_a_k
Contributor
Contributor

I have migrated all VMDKs. The Virtual Machine Guest OS can see the disk in device manager.

0 Kudos
conyards
Expert
Expert

I would agree with Texiwill, the error suggests that the Dynamic volume was made up of multiple VMDK files/Disks.

Do you have an export of the original 3 VMs VMX files, so that you could clarify that indeed all the VMDK files accociated with the VM have been copied.

Simon

https://virtual-simon.co.uk/
Texiwill
Leadership
Leadership

Hello,

The OS running inside the VM once saw all the disks and therefore thinks they are all there, but since they show up as not writable the OS knows something is not right so gives you this error.

Look at the Configuration of your VM and determine how many VMDKs were involved. Make sure you have copied all the vmdks.

You will most likely need to re-hook them up to the VM as vmkfstools is NOT used to migrate/clone VMs without the possible need to edit the files afterwards. I suggest you look at the disk configurations using the VI Client and verify to where they point. THey could be pointing to non-existent paths. Or you can look at the .vmx and .vmdk files. Remember the -rdm.vmdk and -flat.vmdk are the actually data but the ones that end in .vmdk are metadata files showing where the disks actually reside.

Best regards,

Edward

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
mark_a_k
Contributor
Contributor

I have used vmkfstools -i option to copy the vmdk files again and i can now successfully use the disks. For some reason the initial copy became corrupt. Possibly because i was copying 6 vmdk files from a USB external disk to the ESX server at the same time. I can now access the disks!

0 Kudos