05.08.2013 Views

[PDF] Parallels Server 5 Bare Metal

[PDF] Parallels Server 5 Bare Metal

[PDF] Parallels Server 5 Bare Metal

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Reducing the Disk Capacity<br />

Managing Virtual Machines and Containers<br />

<strong>Parallels</strong> <strong>Server</strong> <strong>Bare</strong> <strong>Metal</strong> provides a possibility to reduce the size of an expanding virtual disk by<br />

setting the limit the disk cannot exceed. In general, the process of reducing a virtual disk includes<br />

these steps:<br />

1 Finding out the minimum capacity to which the disk can be reduced.<br />

2 Running the prl_dsk_tool resize command to reduce the disk.<br />

Checking the Minimum Disk Capacity<br />

Before reducing a virtual disk, you may wish to see the minimum capacity to which it can be<br />

reduced. To do this, use the prl_disk_tool resize --info command. For example, you<br />

can run the following command to get detailed information on the MyVM-0.hdd disk:<br />

# prl_disk_tool resize --info --hdd /vz/MyVM.pvm/MyVM-0.hdd<br />

Operation progress 100 %<br />

Disk information:<br />

Size: 65537M<br />

Minimum: 2338M<br />

Minimum without resizing the last partition: 65523M<br />

The information on the virtual disk is presented in the form of the following table:<br />

Column Name Description<br />

Size The virtual disk disk capacity, in megabytes, as it is seen from inside<br />

the virtual machine.<br />

Minimum The virtual disk capacity, in megabytes, after resizing the disk using<br />

the prl_disk_tool utility with the --resize_partition<br />

option.<br />

Minimum without<br />

resizing the last<br />

partition<br />

Reducing the Disk Size<br />

The virtual disk capacity, in megabytes, after resizing the disk using<br />

the prl_disk_tool utility without the --resize_partition<br />

option.<br />

Once you know the minimum capacity of the virtual disk, you can start reducing it. For example, to<br />

reduce the MyVM-0.hdd disk to 30 GB, you can execute the following command:<br />

# prl_disk_tool resize --size 30G --hdd /vz/MyVM.pvm/MyVM-0.hdd --resize_partition<br />

Operation progress 100 %<br />

When reducing the disk capacity, keep in mind the following:<br />

• You cannot reduce the capacity of a virtual disk if the virtual machine using this disk is running.<br />

• The virtual machine using the virtual disk you want to configure must not have any snapshots.<br />

Otherwise, you will be informed of this fact:<br />

# prl_disk_tool resize --size 68000 --hdd /vz/MyVM.pvm/MyVM-0.hdd/<br />

This disk has one or more snapshots and cannot be resized.<br />

You need to delete snapshots using the pctl tool before resizing the disk.<br />

91

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!