VMware Communities
wesneary
Contributor
Contributor
Jump to solution

Odd Virtual Disk Behaviour-Please Help

Hello All,

I am wondering if anyone can help. i have started experiencing an odd issue on one of my VM's today.  I have a VM running freenas.  The storage disks that the Storage shares of freeness sit on are physical disks directly connected to the vm and are performing normally, because of the way that freenas works the actual HDD can be fairly small and for the VM it is a preallocated virtual disk that is 16Gb in size.  This is the sole VM sat on a 256 Gb physical hard disk. i noticed today an issue the folder for the VM has grown to be 240Gb in size, this surely can't be normal behaviour for a 16 Gb VM.

I have checked snapshots of which there were two auto protect snapshots which i have deleted and disabled auto protect. This has brought the folder size down to 182Gb.

On using exploerer to view the folder there does seem to be a large number of files as seen below. Is anyone able to explain whether these should be there?  Also if not how to safely remove them.

Thanks In AdvanceScreen Shot 2015-08-19 at 21.40.58.png

0 Kudos
1 Solution

Accepted Solutions
wesneary
Contributor
Contributor
Jump to solution

Thanks for the offer but after much meddling and a vm rebuild i managed to solve the issue.

The solution was to set the 2 physical disks to independent mode with persistent enabled. for some reason unknown to me this seems to prevent the creation of the multiple disk files, it seems workstation creates them even when there are no snapshots.:smileyconfused:

Time will tell but appears to have resolved the issues. Fingers Crossed:smileylaugh:

Thanks for all the help guys.

View solution in original post

12 Replies
wesneary
Contributor
Contributor
Jump to solution

Also upon further investigation the Freenas OS is only using 1.8Gb of the 16 Gb file so i am unsure as to why this disk has grown so big.

0 Kudos
a_p_
Leadership
Leadership
Jump to solution

What you may try to do if no more snapshots show up in the Snapshot manager, is to create a new snapshot and then delete it again.

André

0 Kudos
wjwj
VMware Employee
VMware Employee
Jump to solution

Can you please try this -- open 'Snapshot Manager', and check the checkbox of 'Show AutoProtect Snapshots', and then take a look at whether there are some AutoProtect Snapshots display.

0 Kudos
wesneary
Contributor
Contributor
Jump to solution

Hi There,

Thanks for the response I did try that and there are no auto protect snapshots as auto protect is disabled.

Does the S suffix lean to a snapshot?

0 Kudos
wjwj
VMware Employee
VMware Employee
Jump to solution

Not really.

Did you try to clear up virtual disks? for example, using disk utilities to compact disk or defragment disk, or using 'vmware-toolbox-cmd disk shrinkonly' to shrink all disks. Maybe, you can backup VM before that just in case.

0 Kudos
continuum
Immortal
Immortal
Jump to solution

Looking at the screenshot tells me that your VM uses 2 virtual disks. Both are at least 33 x 2 Gb = 66 Gb - cant say for sure because your screenshot does not show all the files.
(the s-*** suffix is used for the 2Gb slices required by split vmdks and snapshots)
You also have at least 2 active snapshots.
If snapshotmanager does not display snapshots it just indicates that the vmsd-file is corrupt - which is nothing unusual.

I would suggest to power of the VM and then use vmware-vdiskmanager to clone both disks including the snapshots into new vmdks.
That only is necessary if Andres tip did not work.


________________________________________________
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
wesneary
Contributor
Contributor
Jump to solution

Hi All,

Firstly many thanks for the suggestions so far.

When trying the disk utilise compacting i get the following error:

Screen Shot 2015-08-20 at 17.37.38.png

Hopefully the below screenshots will provide some clarity around the disk setups for the physical disks that are directly connected to provide the storage volumes for the NAS.Screen Shot 2015-08-20 at 17.37.59.png

Screen Shot 2015-08-20 at 17.38.13.png

Also how do i access the CLI for VMWARE workstation?

0 Kudos
wesneary
Contributor
Contributor
Jump to solution

All,

Think i have made some progress i tried to unmount the two large physical disks and re add when doing so i got the screen below:

Screen Shot 2015-08-20 at 18.50.20.png

So i guess that explains the volume of files created, however this seems crazy that the disk files replicate the exact size which effectively means there is only 500Gb useable on a 1tb drive. 

This also presents another problem in that because the freenas filesystem is unreadable by VMware i would need to store these disk files on another drive or within the freenas CIFS share.

I guess there are two outstanding questions then:

1. Is there anyway to bypass or reduce the size of these disk files?

2. When adding the disk would selecting independent mode bypass/prevent these files growing?

Thanks in advance.

0 Kudos
continuum
Immortal
Immortal
Jump to solution

Something is very strange here.
How did you manage to create snapshots for physical disks ???
That is something I thought only possible for quite advanced users - Workstation should prevent this.

Right now it looks like you want to replace the physical disks with new ones. Those new vmdks will be blank so I dont think that is what you want.


________________________________________________
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
wesneary
Contributor
Contributor
Jump to solution

Believe me the snapshot creation was not intentional. 🙂 I just created the new virtual disks and selected use physical disk with default options. 

I have tried adding the new virtual disks however they are appearing to behave in the same way with the snapshot disk files being created

0 Kudos
continuum
Immortal
Immortal
Jump to solution

Interesting - I would like to have a look myself - if you call me right now ....
See signature


________________________________________________
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
wesneary
Contributor
Contributor
Jump to solution

Thanks for the offer but after much meddling and a vm rebuild i managed to solve the issue.

The solution was to set the 2 physical disks to independent mode with persistent enabled. for some reason unknown to me this seems to prevent the creation of the multiple disk files, it seems workstation creates them even when there are no snapshots.:smileyconfused:

Time will tell but appears to have resolved the issues. Fingers Crossed:smileylaugh:

Thanks for all the help guys.