Non-Destructive Partition Resize...

2 posts / 0 new
Last post
#1 Mon, 11/09/2009 - 15:48
tpnsolutions
tpnsolutions's picture

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!

Tue, 11/10/2009 - 11:52
tpnsolutions
tpnsolutions's picture

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.

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Topic locked