ResolutionAttached 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.