In order to migrate one of my vhost to another clusterfarm i have to merge/delete all snapshots beforehand. I' am aware that VC has an hardcoded 15min buildin timeout and snapshot process will still working in the backgroud even if a timeout/error in VC occurs. SO today i tried to remove this 30gb snapshot in VI and it ran into that timeout, waited a few hours to let it finish in the background but it looks like it failed and created a new snapshot file. I still see this snapshot in VI and at filelevel (the first snapshot1, check below) .
So do you know how to fix this Problem ?
ls -ltrh total 167G -rw------- 1 root root 3.0G Apr 9 12:37 vmsrv023-74efdabe.vswp -rw-r -rw-r -rw-r -rw-r -rw-r -rw-r -rw------- 1 root root 252 Jun 3 18:25 vmsrv023-000001.vmdk -rw-r -rw------- 1 root root 8.5K Jun 3 18:25 vmsrv023.nvram -rw------- 1 root root 263 Jul 3 23:11 vmsrv023.vmxf -rw------- 1 root root 19K Jul 8 10:37 vmsrv023-Snapshot2.vmsn -rw------- 1 root root 29G Jul 8 10:37 vmsrv023-000001-delta.vmdk -rwxr-xr-x 1 root root 2.2K Jul 8 10:37 vmsrv023.vmx -rw------- 1 root root 494 Jul 8 10:37 vmsrv023.vmsd -rw------- 1 root root 403 Jul 8 10:37 vmsrv023.vmdk -rw------- 1 root root 233 Jul 8 10:37 vmsrv023-000002.vmdk -rw-r -rw------- 1 root root 137G Jul 8 14:28 vmsrv023-flat.vmdk
| |
you check with vdf -h ?
Get a WINSCP, connect in your ESX and check too.
consider awarding points for
"Correct" or "Helpful"**
Do you have enough free space on your datastore?
Andre
Try vmware-cmd pathtovmxfile removesnapshots
**If you found this information useful, please consider awarding points for
"Correct" or "Helpful"**
thank you for your replies.
vmware-cmd /vmfs/volumes/37997983-4fd6ffeb/vmsrv023/vmsrv023.vmx removesnapshots
VMControl error -999: Unknown error: SoapError: ServerFaultCode(0) : (Operation failed since another task is in progress.)
is there any way to check if there is still a snapshot process running in the backround? ps ax etc.
supposed in a worst case scenario: how can i fix the vm - if the recovery of snapshots fails?
New Snapshot of current, running state of the server ? Migrating with VMware Converter into a new VM ?
try restart a service of Vcente.
See which hardware (Host) the Vm are using.
Access this ESX, and restart mgmt-vmware ( service mgmt-vmware restart) and (service vmware-vpxa restart).
try again run # vmware-cmd /vmfs/volumes/37997983-4fd6ffeb/vmsrv023/vmsrv023.vmx removesnapshots
apparently this action is locked.
**If you found this information useful, please consider awarding points for
"Correct" or "Helpful"**
ok that worked so far
vmware-cmd /vmfs/volumes/37997983-4fd6ffeb/vmsrv023 /vmsrv023 .vmx removesnapshots
removesnapshots() = 1
in vi the snapshot does'nt exist anymore but at filelevel: 29G Jul 8 10:37 vmsrv023-000001-delta.vmdk
i guess the file still needs to be merged into my vm but can't see any actions in VC or ESX Server or even
via SSH (ps ax).
ls -ltrhaS total 168G -rw-r -rwxrwxrwx 1 root root 84 Jul 8 2009 .lck-1400710400000000 -rwxrwxrwx 1 root root 84 Jul 8 2009 .lck-1200710400000000 -rwxrwxrwx 1 root root 84 Jul 8 2009 .lck-0500710400000000 -rw------- 1 root root 233 Jul 8 10:37 vmsrv023-000002.vmdk -rw------- 1 root root 252 Jun 3 18:25 vmsrv023-000001.vmdk -rw------- 1 root root 263 Jul 8 2009 vmsrv023.vmxf -rw------- 1 root root 403 Jul 8 10:37 vmsrv023.vmdk -rw------- 1 root root 494 Jul 8 2009 vmsrv023.vmsd -rwxr-xr-x 1 root root 2.2K Jul 8 2009 vmsrv023.vmx drwxr-xr-x 1 root root 4.0K Jul 1 18:17 .. drwxr-xr-x 1 root root 4.0K Jul 8 2009 . -rw------- 1 root root 8.5K Jun 3 18:25 vmsrv023.nvram -rw-r -rw-r -rw-r -rw-r -rw-r -rw-r -rw-r -rw------- 1 root root 2.1G Jul 8 2009 vmsrv023-000002-delta.vmdk -rw------- 1 root root 3.0G Apr 9 12:37 vmsrv023-74efdabe.vswp -rw------- 1 root root 29G Jul 8 10:37 vmsrv023-000001-delta.vmdk -rw------- 1 root root 137G Jul 8 2009 vmsrv023-flat.vmdk |
Any advices?
Thank you
this Virtual Machine is powered on?
u too can check with vdf -h the free space of disk
**If you found this information useful, please consider awarding points for
"Correct" or "Helpful"**
yes the vm is running, database server in production environment and free space should not be the problem, 250GB left.
you check with vdf -h ?
Get a WINSCP, connect in your ESX and check too.
consider awarding points for
"Correct" or "Helpful"**
hm according to the timestamp it is writing changes in a new snapshotfile (2,1GB. Jul 8 2009 vmsrv023-000002-delta.vmd)
i 'd try to delte the snapshot while powering off the vm but iam afraid if the vm will boot normaly. Any way to check if the current running state is consistent compared to the vmdk files.
vdf -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 4.9G 1.4G 3.3G 30% /
/dev/sda1 99M 27M 68M 29% /boot
none 132M 0 132M 0% /dev/shm
/dev/sda6 2.0G 105M 1.8G 6% /var/log
/vmfs/devices 506G 0 506G 0% /vmfs/devices
/vmfs/volumes/37997983-4fd6ffeb
1007G 770G 237G 76% /vmfs/volumes/nfs0
/vmfs/volumes/49dcc345-38bb9ab7-4964-001143e3efc7
161G 75G 86G 46% /vmfs/volumes/esxhost34:storage1
/vmfs/volumes/fa6e6c62-a5be11f6
1007G 672G 335G 66% /vmfs/volumes/nfs1
YES!!
the first big 30GB snapshot is gone !!
ls -ltrhaS
total 139G
-rw-rr 1 root root 37 Jun 3 18:25 vmserver023-74efdabe.hlog
-rwxrwxrwx 1 root root 84 Jul 8 2009 .lck-1500710400000000
-rwxrwxrwx 1 root root 84 Jul 8 2009 .lck-1400710400000000
-rwxrwxrwx 1 root root 84 Jul 8 2009 .lck-1200710400000000
-rwxrwxrwx 1 root root 84 Jul 8 2009 .lck-0500710400000000
-rw------- 1 root root 226 Jul 8 2009 vmserver023-000002.vmdk
-rw------- 1 root root 233 Jul 8 2009 vmserver023-000003.vmdk
-rw------- 1 root root 252 Jul 8 2009 vmserver023-000001.vmdk
-rw------- 1 root root 263 Jul 8 2009 vmserver023.vmxf
-rw------- 1 root root 403 Jul 8 2009 vmserver023.vmdk
-rw------- 1 root root 494 Jul 8 2009 vmserver023.vmsd
-rwxr-xr-x 1 root root 2.2K Jul 8 2009 vmserver023.vmx
drwxr-xr-x 1 root root 4.0K Jul 1 18:17 ..
drwxr-xr-x 1 root root 4.0K Jul 8 2009 .
-rw------- 1 root root 8.5K Jun 3 18:25 vmserver023.nvram
-rw------- 1 root root 19K Jul 8 2009 vmserver023-Snapshot3.vmsn
-rw-rr 1 root root 44K Jun 3 10:52 vmware-10.log
-rw-rr 1 root root 44K Jun 3 10:39 vmware-9.log
-rw-rr 1 root root 44K Jun 3 11:12 vmware-11.log
-rw-rr 1 root root 46K Jun 3 17:41 vmware-13.log
-rw-rr 1 root root 46K Jun 3 18:25 vmware-14.log
-rw-rr 1 root root 53K Jun 3 17:26 vmware-12.log
-rw-rr 1 root root 65K Jul 8 2009 vmware.log
-rw------- 1 root root 48M Jul 8 2009 vmserver023-000003-delta.vmdk
-rw------- 1 root root 2.2G Jul 8 2009 vmserver023-000002-delta.vmdk
-rw------- 1 root root 3.0G Apr 9 12:37 vmserver023-74efdabe.vswp
-rw------- 1 root root 137G Jul 8 2009 vmserver023-flat.vmdk
the snapshots are still there:
-rw------- 1 root root 48M Jul 8 2009 vmserver023-000003-delta.vmdk
-rw------- 1 root root 2.2G Jul 8 2009 vmserver023-000002-delta.vmdk
and vmware-cmd doesn't report any snapshots
vmware-cmd /vmfs/volumes/37997983-4fd6ffeb/vmserver023/vmserver023.vmx removesnapshots
VMControl error -3: Invalid arguments: Virtual machine has no snapshots
any suggestions?
Thank you very much:)
marcus
So problem fixed - finally
I just created a new Snapshot with VI (manage snapshots) and removed it with vmware-cmd.
All snapshots have been removed.
The important thing is to be patient!
ok. nice job!
**If you found this information useful, please consider awarding points for
"Correct" or "Helpful"**