Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 618
  • Last Modified:

VM Disk Defrag

Hi All

I want to be able to run the following command as a scheduled task:
vmware-vdiskmanager.exe -d myDisk.vmdk
But I cannot find any option is the task scheduler to run custom commands

Any Thoughts on how to run this command through the task scheduler? I am running ESX version 4.0
0
OTNAdmin
Asked:
OTNAdmin
1 Solution
 
sjl1986Commented:
All you do is place that exact command you listed in the scheduled task box that says "Run".

0
 
bgoeringCommented:
I don't believe vmware-vdiskmanager is available in ESX or ESXi, it is the tool for hosted VMware products such as VMware Workstation or Server. What you might want to do is run third party defrag tools such as DiskKeeper or SpeedDisk within the guest os rather than trying to do that at the ESX server level. But I would do that sparingly if at all because of the I/O load you are putting on the server and the contention it would cause to other virtual machines sharing the datastore.

Personally I do not run any defrag utility in my virtual machines.

Hope this helps
0
 
coolsport00Commented:
Yes, that option is not available in Task Scheduler. You can use a 3rd party tool as "bgoering" mentions or just schedule a task within Windows. (Linux systems don't require defragmentation). Here are a couple articles with useful info:
http://kb.vmware.com/kb/1004004
http://www.petri.co.il/virtual_increase_vmware_performance.htm
http://support.microsoft.com/kb/555098

I've seen both sides of the argument whether to defrag a VM or not; I've always (personally) found it to increase performance on my VMs. But, I would schedule before or after business if it's a production VM/Server

Hope that helps...

Regards,
~coolsport00
0
Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

 
OTNAdminAuthor Commented:
Thanks for the tips guys, so there is no way to do this from within virual center?

Who about using some CLI method?
0
 
bgoeringCommented:
None I am aware of
0
 
coolsport00Commented:
No...no way.
0

Featured Post

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as the high-speed power of the cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now