VMware Cloud Community
Luis_Molina
Contributor
Contributor
Jump to solution

Delete Snapshot make the flat disk grows in size

Hi all!!

I have a vm with a disk in thin provisioning, the size of the disk is 5 TB, after an snapshot and removal of the snapshot the size of the disk increase to the top, but windows shows the disk without problems. I made the sdelete process, repeat the snapshot and removal and this behavior is the same the disk and luns is full.

Have anyone saw this problem?

1.png

2.png

3.PNG

0 Kudos
1 Solution

Accepted Solutions
a_p_
Leadership
Leadership
Jump to solution

According to the output of the ls -l command, the virtual disk has been inflated to almost its fully provisioned size.

Running sdelete from within the guest OS is not always a good idea. It may zero out unused disk space from the guest OS's point of view, but increases the thin .vmdk disk space usage, because it writes to each block.

Assuming that there the VM has no more active snapshots (no vmname-00000x.vmdk files), you may try to run the vmkfstools --punchzero 01-2.vmdk (with the VM powered off) to reclaim zeroed out disk space from the .vmdk file.

In any case make sure that you have an up-to-date backup before doing this!


André

View solution in original post

0 Kudos
5 Replies
continuum
Immortal
Immortal
Jump to solution

I read your post 5 times and I still do not understand why you are surprised.

To me this looks exactly like what we would expect.


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
Luis_Molina
Contributor
Contributor
Jump to solution

Why? After I reclaimed the space with sdelete vmware show me an used size of 200 GB, not the full 5 TB,

0 Kudos
continuum
Immortal
Immortal
Jump to solution

Sorry -I cant follow.

All I can say is that if you delete a snapshot it is expected behaviour that a thin flat vmdk grows in size.


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
a_p_
Leadership
Leadership
Jump to solution

According to the output of the ls -l command, the virtual disk has been inflated to almost its fully provisioned size.

Running sdelete from within the guest OS is not always a good idea. It may zero out unused disk space from the guest OS's point of view, but increases the thin .vmdk disk space usage, because it writes to each block.

Assuming that there the VM has no more active snapshots (no vmname-00000x.vmdk files), you may try to run the vmkfstools --punchzero 01-2.vmdk (with the VM powered off) to reclaim zeroed out disk space from the .vmdk file.

In any case make sure that you have an up-to-date backup before doing this!


André

0 Kudos
Luis_Molina
Contributor
Contributor
Jump to solution

Thanks! After the vmkfstools I migrated the vm and the space was a lot less!!

0 Kudos