Non-Destructive Partition Resize...

Hi,

I’m looking to prepare my system for an OpenVZ installation.

Currently the system has LVM setup with a single “group volume” and two (2) “logical volumes”.

All disk space has been allocated to the LVM volumes, and I want to resize the “root” partition so that I can create a new “vz” partition as recommended by the OpenVZ documentation.

My concern is that I do not want to murder my file system in the process.

I have a 160GB drive installed, with 140GB allocated to the “root” partition (the remainig is between “swap” and the “boot” partitions respectively).

I am utilizing 30GB of the “root” partition, as I have VMware Server currently installed, with a few VPS instances.

The goal is to:

  1. resize the “root” partition

  2. create the “vz” partition with sufficient space

  3. install OpenVZ

  4. create new VPS instances under OpenVZ

  5. remove all traces of VMware Server

  6. and finally resizing the “root” and “vz” partition once the 30GB footprint created by VMware Server VPS instances have been removed.

I’d appreciate some assistance in accomplishing this massive goal.

*** NOTE: I only have a single physical machine, and while I expect a bit of downtime due to the migration process, I’d like to minimize it as much as possible. ***

Thanks in advance!

Issue resolved.

I found a nice tutorial at:

http://www.yetanotherguide.com/sysadmin/lvm-tutorial

Made a backup of you VMware Server VPS node, crossed my fingers, then followed the steps and everything went smoothly.