OpenVZ Forum


Home » General » Support » vps on lvm
vps on lvm [message #2939] Mon, 01 May 2006 20:21 Go to next message
ferp2 is currently offline  ferp2
Messages: 29
Registered: May 2006
Junior Member
Hi,

I'm setting up a machine to test openvz, and would like to know how one might optimize raid and lvm in this scenario. The test machine runs two 9GB scsi disks.

My raid/lvm scenario so far is:

sdc
* sdc1 70MB
* sdc2 500MB
* sdc3 1GB
* sdc4 7.5GB

sdb
* sdb1 70MB
* sdb2 500MB
* sdb3 1GB
* sdb4 7.5GB

swap
* sdc2 and sdb2 ==> swap

raid 1
* sdc1 + sdb1 ==> raid0 /boot
* sdc3 + sdb3 ==> raid1 /
* sdc4 + sdb4 ==> raid2 lvm

The OpenVZ User's Guide recommends partitioning root and swap, and leaving the rest of the hard disk available as one partition, mounted on /vz. This one partition would be used by any number of virtual servers, depending on the size of the partition, of course.

My question is, would it be better to create, let's say, 1GB partitions on the lvm mounted to /vz1, /vz2, /vz3, etc, for each virtual server and then expand them accordingly?

Thanks

Re: vps on lvm [message #2943 is a reply to message #2939] Tue, 02 May 2006 08:13 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Actually, I don't think it's a good idea.

I suppose, it's better to create one partion on LVM for all VPSs
monted to /vz and then expand it if nessecary...
Re: vps on lvm [message #2945 is a reply to message #2943] Tue, 02 May 2006 11:51 Go to previous message
ferp2 is currently offline  ferp2
Messages: 29
Registered: May 2006
Junior Member
Thanks, I'll follow your recommendation and create 1 logical volume mounted on /vz.
Previous Topic: Warning: Unable to open an initial console
Next Topic: Disk quota on gentoo template
Goto Forum:
  


Current Time: Wed Oct 16 05:26:58 GMT 2024

Total time taken to generate the page: 0.04901 seconds