Configure VM to use different volumes

nabuhonodozor

Renowned Member
Feb 14, 2010
35
2
73
Hi,
My proxmox installation use dedi (OVH EG Hybrid line - http://www.ovh.pl/produkty/eg_hybrid.xml) with 2 separate raid sets.
By defauls all VM I create use one default drive. But this drive will be filled up very soon.

Its possivle to use another locally connected volume so it can be used for VM's?

My dedi have following drives attached:
IO : md0 Pojemność : vol0
Całkowita pojemność : 666.3 GB Typ : raid1
Status : active
Liczba dysków : 3 :
sdc1 : Pojemość : 666.3 GB Status : active
sdd1 : Pojemość : 666.3 GB Status : active
IO : md1 Pojemność : vol0
Całkowita pojemność : 10.0 GB Typ : raid1
Status : active Liczba dysków : 3 :
sda1 : Pojemość : 10.0 GB Status : active
sdb1 : Pojemość : 10.0 GB Status : active
IO : md2 Pojemność : vol0
Całkowita pojemność : 64.0 GB Typ : raid1
Status : active Liczba dysków : 3 :
sda2 : Pojemość : 64.0 GB Status : active
sdb2 : Pojemość : 64.0 GB Status : active

md0 is 2x750GB in RAID1
md1-md2 - 2x80Gb SSD partitioned in 2 partitions.

Basically, how can I use this 600GB volume for more than just a backup or template cache?

Kind regards,
Piotr
 
Hi,

Basically, how can I use this 600GB volume for more than just a backup or template cache?

Kind regards,
Piotr

http://pve.proxmox.com/wiki/Storage_Model#LVM_Groups
You can configure that volume as a LVM Phisical Volume, then create one ore more Volume Groups on it, and add them (type "LVM") to the storage list from the web interface.
Then you can use that storage for your KVM virtual machines.

I dont'know if this is possible alsso for OpenVZ machines, but i guess not:
http://pve.proxmox.com/wiki/Storage_Model
"Note: Currently only KVM guests can benefit from these enhancements, containers still need to be stored on local storage. "

And "local" storage in pve terminology is directory based.

rob
 
Thank You for hint.
I will only use openVZ instances for now so maybe somebody could help me with this case. This second RAID1 set is visible in Proxmox panel and I had configured backups to be made on this volume already. I just need a way to use this volume for VM as this is big space which for now is almost useless.
Kind regards,
Piotr
 
Thank You for hint.
I will only use openVZ instances for now so maybe somebody could help me with this case. This second RAID1 set is visible in Proxmox panel and I had configured backups to be made on this volume already. I just need a way to use this volume for VM as this is big space which for now is almost useless.
Kind regards,
Piotr

Can't mount somewhere the volume and use only one subdirectory for storage, and another one for vitual disks?

rob
 
Hi Resoli,
Can You tell me more. How to do this - I am not very into Proxmox and linux ;-)
I just look for such solution which will be as close to Proxmox philosophy as possible so during next updates it will work.

The best solution would be to configure proxmox to add another volume for usinf with openVZ containers. So during creation You can choose where container will be stored. Those all are disks physically connected to proxmox host.
 
Ok, but you should clarify how you gave that volume to proxmox for backup storage; I guess you used the "Add Directory" under storage list , set as "Directory:" the mount path of your volume, specified a "Storage name" and a "VzDump Backup" type of content.

rob
 
Yes, exactly - Ive used Add directory and set Content:vzDump Backup.
Ive created one more storage called virtualdisks and configured this as Content:Virtual Disks.
Ive found on another thread that its possible to use "vzctl" command to add disk to vzcontainer.

But what I am trying to accomplish is to store complete container eiter on one or second volume.

I think this is the simplest solution. But if this isnt possible Ill try vzctl.
Piotr