VMware GSX Server 2.5.2Features | Documentation | Knowledge Base | Discussion Forums Defragmenting disks rearranges files, programs and unused space on the virtual disk so that programs run faster and files open more quickly. Defragmenting does not reclaim unused space on a virtual disk; to reclaim unused space, shrink the disk. For best disk performance, you can take the following three actions, in the order listed:
Defragmenting disks may take considerable time. Shrinking a virtual disk reclaims unused space in the virtual disk. If there is empty space in the disk, this process reduces the amount of space the virtual disk occupies on the host drive. You cannot shrink raw or plain disks. Shrinking virtual disks is a convenient way to convert a virtual disk to the new format supported by GSX Server 2. Virtual disks created in the new format cannot be recognized by earlier VMware products except for VMware Workstation 3.0 and later. The virtual disks to be shrunk must be booted in persistent mode. You can change the mode of a virtual disk before the virtual machine is powered on. See Disk Modes: Persistent, Undoable and Nonpersistent. Shrinking requires free disk space on the host equal to the size of the virtual disk being shrunk. Shrinking a disk is a two-step process: the first step, called wiping, is where VMware Tools reclaims all unused portions of disk partitions (such as deleted files) and prepares them for shrinking. This allows for the maximum shrink possible. Wiping takes place in the guest operating system. The shrink process itself is the second step, and it takes place outside the virtual machine. GSX Server reduces the size of the disk based on the disk space reclaimed by the wipe process. This step occurs after the wipe finishes preparing the disk for shrinking. When a virtual machine is powered on, you can shrink its virtual disks from the VMware Tools control panel. In a Linux or FreeBSD guest operating system, to prepare virtual disks for shrinking, you should run VMware Tools as the root user. This way, you ensure the whole virtual disk is shrunk. Otherwise, if you shrink disks as a non-root user you cannot wipe the parts of the virtual disk that require root-level permissions.
Shrinking disks may take considerable time. |