VMware

This Question is Answered

1 "helpful" answer available (6 pts)
13 Replies Last post: Mar 16, 2009 7:38 AM by diederikm  

Storage vmotion fails, stuck with delta files posted: Jul 17, 2008 7:29 AM

Click to view Argyle's profile Hot Shot 86 posts since
Dec 29, 2006
I'm migrating VMs from a HP EVA 5000 SAN to an HP EVA 8000 SAN with storage vmotion using the Remote CLI tool. It works for most part but sometimes it fails midway and I'm stuck with:

  • vmdk files created on new LUNs (sometimes just one disk, sometimes all disks)
  • swap and .vmx files moved to new LUNs
  • delta files left on old LUNs
  • VM running but using delta files on old LUNs and swap on new LUNs

I could use some help completing or restarting the process. I was thinking about creating a new snapshot and committing it to get rid of the storage vmotion delta files but the option "Take snapshot" is gayed out in the Virtual Center for the VMs that fail this way.

Error this time showed up after about 10 minutes. Sys disk is 15 GB and data disk is 20 GB so no large files involved. Had same problem with a VM with 100 GB data disk, it failed after 20-30 minutes. The server running Remote CLI is on the SC network.

Writing down some system data and log info below:

Command and error message:

C:\Program Files\VMware\VMware VI Remote CLI\bin>svmotion.pl
--server=vc.mydomain.com --username=some_name --password=some_pass --datacenter="My Data Center"
--vm="Sys-Disk-306 SERVER01/SERVER01.vmx: Sys-Disk-327"
--disks="Sys-Disk-306 SERVER01/SERVER01.vmdk:Sys-Disk-327, Data-Disk-308 SERVER01/SERVER01.vmdk:Data-Disk-328"
--verbose

Attempting to connect to service url.
Connected to server.
Resolving the input arguments.
Performing Storage VMotion.
Received an error from the server: An error occurred while communicating with the remote host.

C:\Program Files\VMware\VMware VI Remote CLI\bin>

Interesting info in the VMs wmare.log:

Jul 17 15:04:40.904: vcpu-0| HBACommon: First write on scsi0:0.fileName='/vmfs/volumes/47500341-572986f8-bf6e-001cc478a0d4/SERVER01//DMotion-scsi0:00_SERVER01.vmdk'
Jul 17 15:04:40.918: vcpu-0| DISKLIB-CHAIN : UpdateContentID: old = 0xc4692175, new = 0x3b52f9e2
Jul 17 15:12:40.901: vmx| vmdbPipe_Streams Couldn't read: OVL_STATUS_EOF
Jul 17 15:12:40.955: vmx| SOCKET 1 client closed connection

Currently the old LUNs look like this:
ll /vmfs/volumes/Sys-Disk-306/SERVER01/
-rw------- 1 root root 67141632 Jul 17 15:57 DMotion-scsi0:00_SERVER01-delta.vmdk
-rw------- 1 root root 326 Jul 17 15:04 DMotion-scsi0:00_SERVER01.vmdk
-rw------- 1 root root 16106127360 Jul 17 15:04 SERVER01-flat.vmdk
-rw------- 1 root root 342 Jun 14 13:15 SERVER01.vmdk

ll /vmfs/volumes/Data-Disk-308/SERVER01/
-rw------- 1 root root 16820224 Jul 17 15:28 DMotion-scsi0:01_SERVER01-delta.vmdk
-rw------- 1 root root 326 Jul 17 15:28 DMotion-scsi0:01_SERVER01.vmdk
-rw------- 1 root root 21474836480 Jul 17 14:28 SERVER01-flat.vmdk
-rw------- 1 root root 342 Jun 14 13:21 SERVER01.vmdk

Currently the new LUNs look like this:
ll /vmfs/volumes/Sys-Disk-327/SERVER01/
-rw------- 1 root root 805306368 Jul 17 15:04 SERVER01-a0151293.vswp
-rw------- 1 root root 16106127360 Jul 17 15:12 SERVER01-flat.vmdk
-rw------- 1 root root 8684 Jul 17 15:04 SERVER01.nvram
-rw------- 1 root root 403 Jul 17 15:08 SERVER01.vmdk
-rw------- 1 root root 0 Jul 17 15:03 SERVER01.vmsd
-rwxr-xr-x 1 root root 2789 Jul 17 15:17 SERVER01.vmx
-rw------- 1 root root 265 Jul 17 15:17 SERVER01.vmxf
-rw-r--r-- 1 root root 22802 Jul 17 15:03 vmware-31.log
-rw-r--r-- 1 root root 28840 Jul 17 15:03 vmware-32.log
-rw-r--r-- 1 root root 31444 Jul 17 15:03 vmware-33.log
-rw-r--r-- 1 root root 112306 Jul 17 15:03 vmware-34.log
-rw-r--r-- 1 root root 30702 Jul 17 15:03 vmware-35.log
-rw-r--r-- 1 root root 1479819 Jul 17 15:03 vmware-36.log
-rw-r--r-- 1 root root 48791 Jul 17 15:28 vmware.log

ll /vmfs/volumes/Data-Disk-328/SERVER01/
-rw------- 1 root root 0 Jul 17 15:08 SERVER01.vmdk

The .vmx files show that its using vmdk and delta files on old LUNs and swap on new LUN.

Anyone experienced the same thing and is there a safe way to complete or rollback the process?

Re: Storage vmotion fails, stuck with delta files

1. Jul 17, 2008 8:03 AM in response to: Argyle
Click to view dmaster's profile Expert 457 posts since
Apr 27, 2006
Hi Argyle,

i found for you the following link..

http://forums.virtualizationadmin.com/SVMotion_Plugin/m_21/tm.htm

see the requirements for using SVmotion

Re: Storage vmotion fails, stuck with delta files

2. Jul 17, 2008 8:17 AM in response to: Argyle
Click to view JWVMCS's profile Novice 16 posts since
Nov 11, 2005

Hi Argyle,

I've had the same issue on one of my failures. The config/swap files move but SVMotion fails to move the vmdk's, as I said i only have one failure that has the DMotion.scsi* files on the src datastore(the other failures dont have the extra vmdk's). So, to recover I intend to power of the vm's and cold migrate the disk files and reconfigure the VMX. I can't do this until I get some downtime so if anyone knows of a way to recover in live state (I think not) please let us know.

JW

Re: Storage vmotion fails, stuck with delta files

4. Jul 17, 2008 9:29 AM in response to: Argyle
Click to view dmaster's profile Expert 457 posts since
Apr 27, 2006
maybe the use of cold migrations is an option for you ? Migrate the machines back to their original datastore and commit or remove the snapshot file.

p.s. if you think answers on the forum are usefull or correct please award them with points.

Re: Storage vmotion fails, stuck with delta files

5. Jul 17, 2008 10:07 AM in response to: Argyle
Click to view BigHug's profile Enthusiast 74 posts since
Aug 24, 2006
I will suggest you to call Support. It happened to me once. Support will route the case to the storage group. They are pretty good. Basically they will find out the right disk chain. And use vmkfstools to put the delta back to the new vmdk. It's not difficult. But I will not do it myself.

Re: Storage vmotion fails, stuck with delta files

8. Jul 23, 2008 1:27 AM in response to: Argyle
Click to view JWVMCS's profile Novice 16 posts since
Nov 11, 2005
Great detail Magnus! most Useful !

Re: Storage vmotion fails, stuck with delta files

9. Oct 29, 2008 6:07 AM in response to: Argyle
Click to view hennish's profile Enthusiast 36 posts since
Sep 15, 2007
Worked for me too. Thanks a lot! I was kinda nervous about that hung svmotion. :)

Re: Storage vmotion fails, stuck with delta files

10. Mar 3, 2009 12:39 PM in response to: Argyle
Click to view ebowser's profile Novice 16 posts since
Jan 20, 2009

Hey Argyle - great post and excellent info, thanks much.

I just had this happen to a VM this morning. I got the delta files merged back in, and now it's running as split - vmx & vmswap on one datastore, vmdk on the other. I have modified the DMotionParent line in the vmx, and reloaded the config but all options in VI Client are still greyed out. I even tried restarting management services on the ESX host but still no luck.

Any other ideas?

Thanks again!

Re: Storage vmotion fails, stuck with delta files

12. Mar 13, 2009 6:44 AM in response to: Argyle
Click to view ebowser's profile Novice 16 posts since
Jan 20, 2009

Hiya Argyle.

We're running ESXi, not ESX, so I don't have the vmware-cmd command. I did run "vim-cmd vmsvc/reload <vmid>" after making the edits, to no avail. I then actually moved my "/etc/vmware/hostd/vmInventory.xml", restarted management, replaced the file and restarted management, still to no avail.

Thanks,

Eric

Re: Storage vmotion fails, stuck with delta files

13. Mar 16, 2009 7:38 AM in response to: Argyle
Click to view diederikm's profile Novice 6 posts since
Dec 24, 2004

Thanks very much for your detailed explanation it helped us a lot!


VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities