Multiple hdd or Raid

Bora

New Member
Jul 31, 2009
5
0
1
Hello,

I have a server with 2 x 500 GB HDDs.

However when I install proxmox, it only uses the first disk and not the 2nd disk.

Is it possible to make them software raid or LVM or any way to utilize both disks?
 
First, you should really use a HW Raid controller - SW Raid is not supported for various reasons (see forum).

LVM is used by default, so you can simply add the second disk after installation (and expand the filesystem/LV named /dev/pve/data)

- Dietmar
 
Would a raid controller without battery backup work?

I don't really care about software raid, I just want to be able to utilize both disks, without much pain.
 
First, you should really use a HW Raid controller - SW Raid is not supported for various reasons (see forum).

LVM is used by default, so you can simply add the second disk after installation (and expand the filesystem/LV named /dev/pve/data)

- Dietmar


So from what I understand you are using LVM by default for the first drive, and if I add a 2nd drive I can simpoly expand the filesystem named /dev/pve/data and utilize both disks.. (without having a hardware raid controller or doing software raid) correct?
 
So from what I understand you are using LVM by default for the first drive, and if I add a 2nd drive I can simpoly expand the filesystem named /dev/pve/data and utilize both disks.. (without having a hardware raid controller or doing software raid) correct?

yes.
 
Hi yaroslavukr,
i hope it's only a test-system?
For the first overview:
Code:
# pvdisplay
# vgdisplay
and
Code:
# lvdisplay

first make a partition on the second disk (e.g. sdb1) from type 8e - than
Code:
pvcreate /dev/sdb1
after that, you can extend your volumegroup:
Code:
# vgextend pve /dev/sdb1
# vgdisplay pve
look at vg-size and free size

now you can extend your logicalvolume (e.g. 100GB bigger)
Code:
lvextend -L +100G /dev/pve/data

attention - min. free in vg is 4GB (for backup).
Final you must expand your filesystem:
Code:
resize2fs /dev/pve/data

Please use the man-pages, i have wrote this out my mind (perhaps something is wrong).

Udo
 
Hi yaroslavukr,

now you can extend your logicalvolume (e.g. 100GB bigger)
Code:
lvextend -L +100G /dev/pve/data

attention - min. free in vg is 4GB (for backup).
Final you must expand your filesystem:
Code:
resize2fs /dev/pve/data

Please use the man-pages, i have wrote this out my mind (perhaps something is wrong).

Udo
udo, if I have a second 500 gb hdd that I need to execute a command like this:

vextend -L +500G /dev/pve/data
 
Hi,
yes, you will add 500G more space with "lvextend -L +500G ..." but look before at the output from vgdisplay. Normaly the HDs are smaller, than the manufacture said (eg. 480GB not 500GB). Because the HDs use 1GB=1000*1000k and not 1024*1024. Its absolute important, that minimum 4GB free after the expansion - or your backup don't work!!

Udo
 
Hi,
yes, you will add 500G more space with "lvextend -L +500G ..." but look before at the output from vgdisplay. Normaly the HDs are smaller, than the manufacture said (eg. 480GB not 500GB). Because the HDs use 1GB=1000*1000k and not 1024*1024. Its absolute important, that minimum 4GB free after the expansion - or your backup don't work!!

Udo

udo, you have icq, skype or e-mail. I really need your help. Please help. Thanks
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!