Solved

VM Disk Defrag

Posted on 2010-08-24
6
613 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
ID: 33513699
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
ID: 33513915
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
ID: 33527097
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:OTNAdmin
ID: 33567221
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
ID: 33570679
None I am aware of
0
 
LVL 40

Expert Comment

by:coolsport00
ID: 33570843
No...no way.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…

776 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