OpenVZ Forum


Home » General » Support » Install with 2 hard drives
Install with 2 hard drives [message #27313] Thu, 14 February 2008 11:32 Go to next message
alex905 is currently offline  alex905
Messages: 8
Registered: February 2008
Location: London
Junior Member
Sorry to ask such a question but all my previous installs have been with a server with one hard drive. This one has two. I want to make full use of the space. I heard that raid 0 might be the answer but I also head it is very likely to break down. How else might I setup the OS or raid to use both hard drives or do I have to reconfigure Openvz?

Thanks for any help you can give
Re: Install with 2 hard drives [message #27351 is a reply to message #27313] Fri, 15 February 2008 12:54 Go to previous messageGo to next message
sara3 is currently offline  sara3
Messages: 38
Registered: February 2008
Member
if i were you i would use the first hdd as the main os and /vz
and the second hdd for backup
Re: Install with 2 hard drives [message #27368 is a reply to message #27313] Fri, 15 February 2008 16:52 Go to previous message
John Kelly is currently offline  John Kelly
Messages: 97
Registered: May 2006
Location: Palmetto State
Member
LVM is my favorite:

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          19      152586   83  Linux
/dev/hda2              20          25       48195   83  Linux
/dev/hda3              26          31       48195   83  Linux
/dev/hda4              32       19457   156039345   8e  Linux LVM
   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1       19457       [all]   8e  Linux LVM
The first three partitions are for /boot:
3) temporary install boot
2) rescue boot
1) sys boot

The fourth partition of the first disk, and all partitions of other disks, are used for LVM. It's great for dynamically adding and dropping logical volumes.

  LV        VG   Attr   LSize   Origin Snap%  Move Log Copy%
  rescue    v0   -wi-a-   1.00G
  swap      v0   -wi-ao 512.00M
  sys       v0   -wi-ao   8.00G
It takes some effort to get comfortable with LVM, but the results are worthwhile. I resisted learning it at first, but now that I know how to, I always do.

Cool
Previous Topic: storing a whole VE on a NFS-share
Next Topic: Seeing BAD errors on OpenVZ Hardware node?
Goto Forum:
  


Current Time: Tue Aug 27 23:21:21 GMT 2024

Total time taken to generate the page: 0.03502 seconds