2nd Hard Disc & LVM2 Questions

kingnubian

New Member
Mar 30, 2009
18
0
1
I use Proxmox in a home based setup for production & testing & am loving it.
My setup includes 2 1Tb hard drives. Using part of the guide located here,

http://pve.proxmox.com/wiki/Storage_Model#LVM_Groups
------------------------------------------------------------------
" Use local devices (like /dev/sd../, FC) Before you can use local devices for storing VM´s you need to configure LVM2 for these devices on the console first.
This is a three step procedure (I just plugged in a 8 GB USB Stick for demonstration, recognized as /dev/sdl on my box)
First create the physical volume:
proxmox-ve:~# pvcreate /dev/sdl1
Physical volume "/dev/sdl1" successfully created
proxmox-ve:~# Second, create the volume group:
proxmox-ve:~# vgcreate usb-stick /dev/sdl1
Volume group "usb-stick" successfully created
proxmox-ve:~# And finally: Add the LVM Group to the storage list via the web interface."
---------------------------------------------------------------------
I added the second drive (sdb1) to an lvm group.

If I wanted to create a vm, for example for a file server, that would be allocated 1.5tb of the total available drive space would Proxmox's LVM implementation automatically "spill over " the storage requirements meaning would it spread it between discs without my intervention?

This is defined, for example, during the Xenserver install as you are asked both what drive in a multi drive setup do you wish to install the hypervisor os on & then if you wish to use all or 1 drive for everything else. Spanning between drives is then seamless.

If I am wrong in how I have done the setup can I get some guidance in getting it the way I am after?
 
If I wanted to create a vm, for example for a file server, that would be allocated 1.5tb of the total available drive space would Proxmox's LVM implementation automatically "spill over " the storage requirements meaning would it spread it between discs without my intervention?

LVM simply use the available PVs. Although I would never add different types of storage to one VG (and never add a removabel USB stick).
 
LVM simply use the available PVs. Although I would never add different types of storage to one VG (and never add a removabel USB stick).

The storage available in my setup are two identical hard drives. Let me put it this way since I was not very clear in my initial post.

1)I have 2 1Tb hard drives in my server. Proxmox, through it's cd installation, allows 1 only hard drive to be the installation drive and therefore active post installation for it's needs. The other Hard drive for the time being isn't used by Proxmox.

2) I follow the instructions in the link I posted above to add the other local 1TB hard drive to an LVM group.

3) I create a VM for a file server and through the web based server manager allocate 1.5Tb of hard drive space to this vm in question.

4) I start transferring files to this newly created File Server VM which exceed the physical capacity of a single Hard Drive (>1Tb) but still falls within the 1.5Tb of hard drive space allocated to the vm.

5) Will Proxmox 1.4 use the 1.5Tb allocated hard drive space as a single volume spanning it across the two physical hard drives without user intervention or errors even though in reality this space requires storage on both physical hard drives?
 
5) Will Proxmox 1.4 use the 1.5Tb allocated hard drive space as a single volume spanning it across the two physical hard drives without user intervention or errors even though in reality this space requires storage on both physical hard drives?

yes.
 

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!