Solved

VM Disk Defrag

Posted on 2010-08-24
6
610 Views
Last Modified: 2012-05-10
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
Comment
Question by:OTNAdmin
6 Comments
 
LVL 8

Accepted Solution

by:
sjl1986 earned 500 total points
Comment Utility
All you do is place that exact command you listed in the scheduled task box that says "Run".

0
 
LVL 28

Expert Comment

by:bgoering
Comment Utility
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
 
LVL 40

Expert Comment

by:coolsport00
Comment Utility
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 Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:OTNAdmin
Comment Utility
Thanks for the tips guys, so there is no way to do this from within virual center?

Who about using some CLI method?
0
 
LVL 28

Expert Comment

by:bgoering
Comment Utility
None I am aware of
0
 
LVL 40

Expert Comment

by:coolsport00
Comment Utility
No...no way.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now