OpenVZ Forum


Home » General » Support » *SOLVED* multiple drives on one ve?
*SOLVED* multiple drives on one ve? [message #21693] Mon, 15 October 2007 04:04 Go to next message
KyleC is currently offline  KyleC
Messages: 21
Registered: October 2007
Junior Member

Hello everyone.
I was wondering if there is any way to mount lets say /hd1 to my VE along with more drives? I am very curious how to do this so i dont have to have huge partitions for my system when i can split them. I am running centos 5 32 bit but plan on going to 64bit and my ve is running a wonderful centos4.4

thanks everyone.

[Updated on: Wed, 07 November 2007 06:57] by Moderator

Report message to a moderator

Re: multiple drives on one ve? [message #21708 is a reply to message #21693] Mon, 15 October 2007 09:10 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
You should use LVM on the Hardware Node. This way you can add a physical drive to a logical volume easily, to increase capacity. And if you are running a server, I strongly recommend using a RAID1 array for redundancy. HDDs do fail.

Ugo


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: multiple drives on one ve? [message #21757 is a reply to message #21693] Tue, 16 October 2007 01:47 Go to previous messageGo to next message
KyleC is currently offline  KyleC
Messages: 21
Registered: October 2007
Junior Member

yes of course... ill be running a raid 10 split into partitions. So use a LVM and how do i configure it on the VE?

i want to have like

Filesystem Size Used Avail Use% Mounted on
simfs 639G 470G 136G 78% /
simfs 700G 670G 30G 90% /hd2

on my HN of couse.. hell i wouldnt mind if it was /hd2 on the ve but on the actual server it was /home2/hd2

let me know.
Re: multiple drives on one ve? [message #21761 is a reply to message #21757] Tue, 16 October 2007 02:51 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
KyleC wrote on Mon, 15 October 2007 21:47

So use a LVM and how do i configure it on the VE?

i want to have like

Filesystem Size Used Avail Use% Mounted on
simfs 639G 470G 136G 78% /
simfs 700G 670G 30G 90% /hd2

on my HN of couse.. hell i wouldnt mind if it was /hd2 on the ve but on the actual server it was /home2/hd2

let me know.


Using LVM, you'd add the 2nd hard drive to the VG, and then increase the size of the LV, then increase the size of your / partition. However, I suggest the use of a separate partition for /vz. It may be delicate to increase the size of /.


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: multiple drives on one ve? [message #21921 is a reply to message #21757] Wed, 17 October 2007 22:18 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
If you just want to mount additional things inside of your VE, as long as they are already accessible from the hardware node, you can just use:
mount --bind {hn mountoint} /vz/root/{VEID}/desired/mount/point

You can do this within multiple VPSes too. --bind mounting works in non-OpenVZ enviroment too.

Please note that the /vz/root/{VEID} is empty when your VPS isn't running so you have to do your bind mount at some point after the VPS has started up and the /vz/root{VEID} area is alive.


--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: multiple drives on one ve? [message #22887 is a reply to message #21921] Wed, 07 November 2007 05:39 Go to previous message
KyleC is currently offline  KyleC
Messages: 21
Registered: October 2007
Junior Member

sorry for the late response, thanks for the responses! Very Happy
Previous Topic: ubuntu template creation
Next Topic: how do I create a OpvenVZ template from a Linux installation CD / DVD?
Goto Forum:
  


Current Time: Sun Sep 15 14:37:23 GMT 2024

Total time taken to generate the page: 0.03546 seconds