VMware Cloud Community
Mike_Fcpa
Contributor
Contributor
Jump to solution

Help with snapshot and delta files

Hi,

Yesterday night, an ArcServe backup on a single VM failed.  Not the end of the world, happened before.

This morning, got an alert from a script I coded to look for *delta* files on our Datastore.  A delta file was left there. We have for hard disk on this machine, and only one delta file stayed for one of those disk. Usually, all I do is create a new snapshot, delete all snapshot, and everything comes back to normal.  This time, the delta file stayed there.

So I tried to create one more snapshot (With the quiesce) option, like mentioned in the vmware.  It failed (Timed out).  Damn :smileygrin: Now I have delta files stuck there for all of our disks.  Tried again with the quiesce options like 10 minutes after.  Works.  Delete all snapshots, works, but still stuck with those delta files.

Ok, the thing is, all those 00000?-delta files doesnt seem to be used, as the modification time stayed at the time of the snapshot.

And also, the .vmx file does not seem to point to those delta files.  So maybe I could delete them safely??

Here's some info.

-------------------------------------

ls -Flatr  (Sorted by modification time)

/vmfs/volumes/5277f3fe-dc1ba57b-c0e6-1cc1de225128/APPS-Server1_4vtl6 # ls -Flatr

-rw-------    1 root     root                602 Dec  2  2013 APPS-Server1_4vtl6_4.vmdk

-rw-------    1 root     root                602 Dec  2  2013 APPS-Server1_4vtl6_3.vmdk

-rw-------    1 root     root                602 Dec  2  2013 APPS-Server1_4vtl6_1.vmdk

-rw-------    1 root     root                599 Dec  2  2013 APPS-Server1_4vtl6.vmdk

drwxr-xr-t    1 root     root               1400 Dec  2  2013 ../

-rw-r--r--    1 root     root             267858 Dec  2  2013 vmware-1.log

-rw-r--r--    1 root     root             367566 Dec  2  2013 vmware-2.log

-rw-r--r--    1 root     root             539395 Jan 14 14:58 vmware-3.log

-rw-------    1 root     root               8684 May 22 11:59 APPS-Server1_4vtl6.nvram

-rw-r--r--    1 root     root            3279104 May 30 18:23 vmware-4.log

-rw-------    1 root     root                602 May 30 18:24 APPS-Server1_4vtl6_2.vmdk

-rw-------    1 root     root         3865051136 May 30 18:24 APPS-Server1_4vtl6-e9c5721a.vswp

-rw-r--r--    1 root     root                273 May 30 18:25 APPS-Server1_4vtl6.vmxf

-rw-------    1 root     root                288 Jun  3 06:21 APPS-Server1_4vtl6_4-000002.vmdk

-rw-------    1 root     root              45056 Jun  3 06:21 APPS-Server1_4vtl6_4-000002-delta.vmdk

-rw-------    1 root     root                422 Jun  3 12:00 APPS-Server1_4vtl6_3-000002.vmdk

-rw-------    1 root     root           16822272 Jun  3 12:00 APPS-Server1_4vtl6_3-000002-delta.vmdk

-rw-------    1 root     root                422 Jun  3 12:00 APPS-Server1_4vtl6_2-000002.vmdk

-rw-------    1 root     root           16850944 Jun  3 12:00 APPS-Server1_4vtl6_2-000002-delta.vmdk

-rw-------    1 root     root                422 Jun  3 12:00 APPS-Server1_4vtl6_1-000002.vmdk

-rw-------    1 root     root           16822272 Jun  3 12:00 APPS-Server1_4vtl6_1-000002-delta.vmdk

-rw-------    1 root     root                417 Jun  3 12:00 APPS-Server1_4vtl6-000002.vmdk

-rw-------    1 root     root                422 Jun  3 12:00 APPS-Server1_4vtl6_4-000003.vmdk

-rw-------    1 root     root           16822272 Jun  3 12:00 APPS-Server1_4vtl6_4-000003-delta.vmdk

-rw-------    1 root     root           16904192 Jun  3 12:01 APPS-Server1_4vtl6-000002-delta.vmdk

-rw-------    1 root     root            3932672 Jun  3 12:01 APPS-Server1_4vtl6-000002-ctk.vmdk

-rw-r--r--    1 root     root                 13 Jun  3 13:59 APPS-Server1_4vtl6-aux.xml

-rw-r--r--    1 root     root                 45 Jun  3 14:00 APPS-Server1_4vtl6.vmsd

-rw-------    1 root     root            1311232 Jun  3 14:00 APPS-Server1_4vtl6_1-ctk.vmdk

-rw-------    1 root     root            3932672 Jun  3 14:00 APPS-Server1_4vtl6-ctk.vmdk

-rw-------    1 root     root            1311232 Jun  3 14:00 APPS-Server1_4vtl6_4-ctk.vmdk

-rw-------    1 root     root            1311232 Jun  3 14:00 APPS-Server1_4vtl6_3-ctk.vmdk

-rw-------    1 root     root            2294272 Jun  3 14:00 APPS-Server1_4vtl6_2-ctk.vmdk

drwxr-xr-x    1 root     root               5740 Jun  3 14:00 ./

-rwxr-xr-x    1 root     root               3923 Jun  3 14:06 APPS-Server1_4vtl6.vmx*

-rw-r--r--    1 root     root            2004374 Jun  3 17:53 vmware.log

-rw-------    1 root     root        21474836480 Jun  3 17:54 APPS-Server1_4vtl6_3-flat.vmdk

-rw-------    1 root     root        64424509440 Jun  3 17:55 APPS-Server1_4vtl6-flat.vmdk

-rw-------    1 root     root        37580963840 Jun  3 17:56 APPS-Server1_4vtl6_2-flat.vmdk

-rw-------    1 root     root        21474836480 Jun  3 17:56 APPS-Server1_4vtl6_1-flat.vmdk

-rw-------    1 root     root        21474836480 Jun  3 17:56 APPS-Server1_4vtl6_4-flat.vmdk

---------------

# cat APPS-Server1_4vtl6.vmx

.encoding = "UTF-8"

config.version = "8"

virtualHW.version = "7"

pciBridge0.present = "TRUE"

pciBridge4.present = "TRUE"

pciBridge4.virtualDev = "pcieRootPort"

pciBridge4.functions = "8"

pciBridge5.present = "TRUE"

pciBridge5.virtualDev = "pcieRootPort"

pciBridge5.functions = "8"

pciBridge6.present = "TRUE"

pciBridge6.virtualDev = "pcieRootPort"

pciBridge6.functions = "8"

pciBridge7.present = "TRUE"

pciBridge7.virtualDev = "pcieRootPort"

pciBridge7.functions = "8"

vmci0.present = "TRUE"

nvram = "APPS-Server1_4vtl6.nvram"

virtualHW.productCompatibility = "hosted"

powerType.powerOff = "soft"

powerType.powerOn = "hard"

powerType.suspend = "hard"

powerType.reset = "soft"

displayName = "D- APPS-Server1-2k8"

extendedConfigFile = "APPS-Server1_4vtl6.vmxf"

numvcpus = "2"

scsi0.present = "TRUE"

scsi0.sharedBus = "none"

scsi0.virtualDev = "lsisas1068"

memsize = "4096"

scsi0:0.present = "TRUE"

scsi0:0.fileName = "APPS-Server1_4vtl6.vmdk"

scsi0:0.deviceType = "scsi-hardDisk"

scsi0:1.present = "TRUE"

scsi0:1.fileName = "APPS-Server1_4vtl6_1.vmdk"

scsi0:1.deviceType = "scsi-hardDisk"

scsi0:2.present = "TRUE"

scsi0:2.fileName = "APPS-Server1_4vtl6_2.vmdk"

scsi0:2.deviceType = "scsi-hardDisk"

scsi0:3.present = "TRUE"

scsi0:3.fileName = "APPS-Server1_4vtl6_3.vmdk"

scsi0:3.deviceType = "scsi-hardDisk"

scsi0:4.present = "TRUE"

scsi0:4.fileName = "APPS-Server1_4vtl6_4.vmdk"

scsi0:4.deviceType = "scsi-hardDisk"

ide1:0.present = "TRUE"

ide1:0.fileName = ""

ide1:0.deviceType = "atapi-cdrom"

ide1:0.startConnected = "FALSE"

ethernet0.present = "TRUE"

ethernet0.virtualDev = "e1000"

ethernet0.wakeOnPcktRcv = "FALSE"

ethernet0.networkName = "Virtual Machine Network"

ethernet0.addressType = "vpx"

ethernet0.generatedAddress = "00:50:56:a9:6a:33"

disk.EnableUUID = "TRUE"

guestOS = "windows7srv-64"

annotation = "OMF Base Windows 2008 R2 EE server.|0A4 cpu, 8GB Mem"

uuid.bios = "42 29 04 07 ba e8 52 5f-f5 02 da f1 78 c5 cc e5"

vc.uuid = "50 29 4c 34 2f 27 fa 79-56 06 a1 34 4b 27 97 c6"

sched.cpu.min = "0"

sched.cpu.units = "mhz"

sched.cpu.shares = "normal"

sched.mem.minsize = "410"

sched.mem.shares = "normal"

svga.vramSize = "33554432"

vmci0.id = "2026228965"

tools.syncTime = "FALSE"

uuid.location = "56 4d b5 3e 5a d9 bc 70-65 30 52 af f2 1d 20 2d"

cleanShutdown = "FALSE"

replay.supported = "FALSE"

unity.wasCapable = "FALSE"

sched.swap.derivedName = "/vmfs/volumes/5277f3fe-dc1ba57b-c0e6-1cc1de225128/APPS-Server1_4vtl6/APPS-Server1_4vtl6-e9c5721a.vswp"

replay.filename = ""

scsi0:0.redo = ""

scsi0:1.redo = ""

scsi0:2.redo = ""

scsi0:3.redo = ""

scsi0:4.redo = ""

pciBridge0.pciSlotNumber = "17"

pciBridge4.pciSlotNumber = "21"

pciBridge5.pciSlotNumber = "22"

pciBridge6.pciSlotNumber = "23"

pciBridge7.pciSlotNumber = "24"

scsi0.pciSlotNumber = "160"

ethernet0.pciSlotNumber = "32"

vmci0.pciSlotNumber = "33"

scsi0.sasWWID = "50 05 05 67 ba e8 52 50"

vmotion.checkpointFBSize = "33554432"

hostCPUID.0 = "0000000b756e65476c65746e49656e69"

hostCPUID.1 = "000206c200200800029ee3ffbfebfbff"

hostCPUID.80000001 = "0000000000000000000000012c100800"

guestCPUID.0 = "0000000b756e65476c65746e49656e69"

guestCPUID.1 = "000206c200010800829822030febfbff"

guestCPUID.80000001 = "00000000000000000000000128100800"

userCPUID.0 = "0000000b756e65476c65746e49656e69"

userCPUID.1 = "000206c200200800029822030febfbff"

userCPUID.80000001 = "00000000000000000000000128100800"

evcCompatibilityMode = "FALSE"

ide1:0.clientDevice = "TRUE"

scsi0:0.ctkEnabled = "TRUE"

scsi0:1.ctkEnabled = "TRUE"

scsi0:2.ctkEnabled = "TRUE"

scsi0:3.ctkEnabled = "TRUE"

scsi0:4.ctkEnabled = "TRUE"

ctkEnabled = "TRUE"

scsi0:5.deviceType = "scsi-hardDisk"

scsi0:6.deviceType = "scsi-hardDisk"

scsi0:8.deviceType = "scsi-hardDisk"

scsi0:9.deviceType = "scsi-hardDisk"

scsi0:10.deviceType = "scsi-hardDisk"

guest.commands.sharedSecretLogin.hostd-quiescedsnap = " "

sched.scsi0:2.shares = "normal"

sched.scsi0:2.throughputCap = "off"

floppy0.present = "FALSE"

THANKS!!!

1 Solution

Accepted Solutions
a_p_
Leadership
Leadership
Jump to solution

This indeed looks like the files are orphaned. If it is possible to power off the VM for a short time, I'd suggest you do this, then move the orphaned .vmdk files to sub-directory and power on the VM again. If everything works, delete the sub-directory including the files. What I found as helpful is RVTools which reports such files as "Zombies".

André

View solution in original post

3 Replies
a_p_
Leadership
Leadership
Jump to solution

This indeed looks like the files are orphaned. If it is possible to power off the VM for a short time, I'd suggest you do this, then move the orphaned .vmdk files to sub-directory and power on the VM again. If everything works, delete the sub-directory including the files. What I found as helpful is RVTools which reports such files as "Zombies".

André

Mike_Fcpa
Contributor
Contributor
Jump to solution

Yes sound good.  I will try that this weekend, and make sure the full backup worked :smileygrin:

I'll keep you posted!

Reply
0 Kudos
Mike_Fcpa
Contributor
Contributor
Jump to solution

Thanks, everything worked fine, as you mentionned! A+!

Reply
0 Kudos