Article ID: 6711, created on Sep 24, 2009, last review on May 10, 2014

  • Applies to:
  • Virtuozzo containers for Windows 4.5
  • Virtuozzo containers for Windows 4.0
  • Virtuozzo for Windows 3.5.1 SP1


Attached script allows to run chkdsk and defrag tools for all containers.
This script performs the following steps for each container resided on hardware node:

1. Stop the container;
2. Mount C: drive;
3. Check the drive by chkdsk.exe tool;
4. Unmount C: drive;
5. Run vzcache tool to re-link files inside the container to templates;
6. Mount C: drive;
7. Run defrag.exe for the container;
8. Unmount C: drive;
9. Start the container.

Note: Before using this script it is strongly recommended to backup all containers.


1348db476c8a5844ffbef8d503db9c15 d02f9caf3e11b191a38179103495106f 965b49118115a610e93635d21c5694a8 28d0f7cc091e3b9304fa556c03f9a940 d09cb2230ee0cfa720ed0f2a3cc39452 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF