I'm pretty new at vCenter and my Datastore is at 0% available space and all my VM's have shutdown.
Can someone help me with a simple way of freeing up space in order to give back space to my datastore?
VMware
Last Comment
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
8/22/2022 - Mon
Michael Ortega
Do you have another DATASTORE available to move a VM to?
MO
Michael Ortega
If you don't, you can take a USB external drive and create a datastore on it. Then you can migrate the storage of a VM (presumably one a light weight one that doesn't require a lot of disk I/O to operate) to the USB based datastore. Then you can turn all your VMs on and figure what you need to do to add more capacity to the existing datastore or create a new production one all together.
For some reason when I try to connect to my vCenter Server.
I'm getting error: vSphere Client could not connect to xxx.xxx.xxx.xxx.
An unknown connection error occurred (The request failed because of a connection failure. (Unable to connect to the remote server).
E White
ASKER
And I don't see a Disk/LUN listed when I try to add storage.
now normally you would do this, before you ran out of datastore.....so you will have to
1. Convert or Export the VM to a workstation.
2. Destroy the VM.
3. Convert back, with reduced disk size.
To be honest with you, I would always create virtual machines with small disks, and grow them as and when they are needed, rather than creating and oversizing diisks....because expansion is easy, reduction/shrinking is awkward.
It would just be used temporarily so you can generate some place to get your production environment back online. That's why I advised moving a VM that didn't see much activity or require much disk performance.
An alternative is that you can run down to your local computer outlet store and pick up an inexpensive NAS device. You can then connect that NAS to your vSphere host via NFS (provided the NAS supports NFS).
Yes, running out disk space on your one and only datastore is also not a great condition to be in either. Extreme conditions sometimes requires some out of the box thinking. VMWare doesn't support datastores residing on a USB mass storage device, but I've implemented it in such cases as these without any problem. Also, it's just a temporary measure. In some cases, when I've had similar issues, VMWare support has assisted despite the fact that it included housing a datastore on a USB drive because they also realized the intent was not to run a production environment on it, but to deal with a temporary condition/issue. It helps to see things in "gray" sometimes, and not just black & white. I was simply providing the fastest, easiest solution to the problem. For shits and grins, I also provided a "supported" solution to the problem which was to go grab an inexpensive NAS at a local retailer and connect it to the vSphere host via NFS.
@Andrew, I do apologize though. I read your original post as though it could not be done. You simply indicated that it was not supported by VMWare. I do agree with that. It's still the easiest and fastest solution to the problem. The risk level is extremely low.
MO
Michael Ortega
@NJ-EWhite,
Another option which you can do pretty easy if you have a space PC sitting around with enough local storage on it is flash it with FreeNAS (http://www.freenas.org/), create an NFS share to use as a datastore.
If you have good backups, why not just purge the mailserver from the datastore? Do you need the mailserver? Are you using AD Connect/DirSync with O365?
MO
E White
ASKER
Andrew,
Can I use VMware Converter, and convert existing server to workstation (and change size) while the server is powered down.
I don't have enough space in the datastore to power it up.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
I thought you were going to Export/Archive a VM and delete it. A VM not in use.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
So you cannot power on a VM now to perform a conversion?
VMware Converter can connect to ESXi or vCenter and perform a conversion
E White
ASKER
Question, I've exported the Mail server to my desktop computer, I have a backup of it from last night and I also have also 3 replica of the Mail server. I also installed the VMware vCenter Converter Standalone on to my desktop. Can I connect to the ESXi or VCenter via vCenter Converter Standallone via my workstation?
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
You can but it's recommended to install on the VM to be converted to avoid network and permission issues
So, if one of your primary means of restoring the VM (mailserver) in question is through the backup you already have, why are you going through all this trouble? Just purge mailserver from the production datastore. You can restore the VM when you've permanently addressed the storage capacity issue, but at least with this you'll have a running environment again NOW. Are you concerned that your backups aren't good?
I did advise doing this yesterday. Perhaps I just don't understand the gravity of the situation. All VMs being down just sounds critical to me, so I would have gone the path of least resistance. If backups are good and the mailserver VM really doesn't have a production role any longer, the risks are low...just seems clear to me what would need to be done to restore the environment.
Sorry that you're still working on this.
MO
E White
ASKER
Michael,
I managed to bring them back up the same day it went down, but with only 7.85 gigs of free space. I did manage to export the VM and Convert the VM now I'm going delete the VM.
Now, how do I correctly delete the VM. Do I just go to the Datastore Browser and just delete the folder?
I'm not quite sure how to delete a VM.
Michael Ortega
You can right-click on the VM in question and there should be a "Delete from disk" option.
I've since deleted the VM and am now going by the size of the VMDK file.
They total to the 109gb.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Well you have the function to re-size the virtual machine disk, on conversion back to ESXi.
Converter is intelligent here, and it will not re-size the disk, beyond what data is actually in the vmdk!
So if you have 100GB of data, the minimum size of the VMDK would be approx 100GB, but if you only had 20GB of data in a 100GB VMDK, VMware Converter, could change the new disk between 20GB and 100GB or larger!
So if you are on the limits of what you currently have free, and I would suggest 20-22% free on the datastore, you could started grabbing some storage space back.
MO