OpenVZ Forum


Home » General » Support » Setting up VZ Partitions?
Setting up VZ Partitions? [message #6097] Fri, 08 September 2006 07:31 Go to next message
tiggerific is currently offline  tiggerific
Messages: 8
Registered: September 2006
Junior Member
On most of the servers I get, the default partitioning seems to have very little space allocated to "/", and the bulk of space allocated to /home.

However, the OpenVZ install and VE setups all install off /vz which ultimately uses up the entire partition there.

So, 2 questions:

1. What is the optimal way to set up partitions on a brand new server that's going to run OpenVZ?

2. Can someone explain how to resize the existing "/" partition or how to create a separate one for "/vz".

Thanks Smile
Re: Setting up VZ Partitions? [message #6099 is a reply to message #6097] Fri, 08 September 2006 07:43 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Some information, that might be useful in your situation:
In /etc/vz/vz.conf file options

LOCKDIR=/vz/lock
DUMPDIR=/vz/dump
TEMPLATE=/vz/template
VE_ROOT=/vz/root/$VEID
VE_PRIVATE=/vz/private/$VEID

can be switched to something like:

LOCKDIR=/home/vz/lock
DUMPDIR=/home/vz/dump
TEMPLATE=/home/vz/template
VE_ROOT=/home/vz/root/$VEID
VE_PRIVATE=/home/vz/private/$VEID


Quote:

What is the optimal way to set up partitions on a brand new server that's going to run OpenVZ?

I suppose, the best way is to have one separate partion for OpenVZ mounted on /vz.

Quote:

Can someone explain how to resize the existing "/" partition or how to create a separate one for "/vz".

It's hardly possible to resize ext2, ext3 partions. For such purposes LVM was developed.

HTH,
vass

[Updated on: Fri, 08 September 2006 07:45]

Report message to a moderator

Re: Setting up VZ Partitions? [message #6100 is a reply to message #6097] Fri, 08 September 2006 08:10 Go to previous message
mkl0815 is currently offline  mkl0815
Messages: 15
Registered: August 2006
Junior Member
there are different ways to get more space foryour vz installation.

1.) you can create a directory anywhere in your system on a partition with enough space and make a symbolic link to the /vz directory
mkdir -p /home/openvz
ln -s /home/openvz /vz


2.) you can create an own partition for your vz directory (for instance as lvm volume) an mount it on /vz

mario.

===EDIT===
... hmm, seems that i'm to slow *g*

[Updated on: Fri, 08 September 2006 08:12]

Report message to a moderator

Previous Topic: *SOLVED* Multiple IP - Speed?
Next Topic: Centos 4.4 version
Goto Forum:
  


Current Time: Sun Jul 21 19:22:34 GMT 2024

Total time taken to generate the page: 0.02357 seconds