Shared Storage Suggestions

Antonino89

Member
Jul 13, 2017
76
1
6
35
Hi guys,

I build up an environment like that, i have 3 proxmox servers in clustering mode, they are also connected to a shared storage.

All server are virtualized, HA works and every things was set up properly to gain minimal functions.

I'm using one HDD 2on the shared storage about 128Gb (For sharing purpose) and another one HDD1 of 30GB for the FreeBSD system it self.

I created the shared storage iSCSI from proxmox and the LVM (See picture attached).

if i use one LUN per Virtual machine installed on it every things works.

I divided the HDD2 in some LUNs, i'm using one LUN per virtual machine, question is.... can i configure let's say just 2 LUNs (2 LUNs of 50Gb) and install on it maybe 3 or 4 virtual machines from proxmox GUI?
per example 4 VM per LUN?

How can i do it?

Thanks

i configured the ctl.conf file like that:

portal-group pg0 {

discovery-auth-group no-authentication

listen 192.168.100.14

}


target iqn.2017-02.lab.testing:basictarget {

auth-group no-authentication

portal-group pg0

lun 0 {

path /dev/da1p1

size 10G

}


}


target iqn.2017-02.lab.testingi1:basictarget {

auth-group no-authentication

portal-group pg0

lun 1 {

path /dev/da1p1

size 10G

}



}


target iqn.2017-02.lab.testingir2:basictarget {

auth-group no-authentication

portal-group pg0

lun 2 {

path /dev/da1p1

size 10G


}


}


target iqn.2017-02.lab.testingir3:basictarget {

auth-group no-authentication

portal-group pg0

lun 3 {

path /dev/da1p1

size 10G


}


}
 

Attachments

  • Schermata 2017-08-14 alle 15.29.43.png
    Schermata 2017-08-14 alle 15.29.43.png
    271.9 KB · Views: 11
you can use a lvm on top of a lun, which can the be used for multiple vms
 
you can use a lvm on top of a lun, which can the be used for multiple vms


So, i need to create anyway fist the iSCSI pointing to the shared storage from Datacenter ----> Storage ----> add on proxmox right?

Then i have to create an LVM?

Thanks
 
So, i created two LUNs on the FreeBSD iscsi configuration side.

Then i goes to proxmox GUI and i created 2 iscsi one point to LUN0 (50Gb) and the second one pointing to LUN1 (50Gb).

Then i created two LVM and i choose as based storage "Exiting Volume Groups", if i choose as based storage "iscsi shared storage 1" i get an error...

I'm confused... any help? please :)

See images attached

Thanks
 

Attachments

  • Schermata 2017-08-16 alle 12.06.39.png
    Schermata 2017-08-16 alle 12.06.39.png
    128.8 KB · Views: 2
  • Schermata 2017-08-16 alle 12.07.50.png
    Schermata 2017-08-16 alle 12.07.50.png
    148.7 KB · Views: 2
  • Schermata 2017-08-16 alle 12.13.11.png
    Schermata 2017-08-16 alle 12.13.11.png
    155.4 KB · Views: 2
it seems there is already data on your lun
in order for pve to be able to create a volume group on it, it has to be empty
 
it seems there is already data on your lun
in order for pve to be able to create a volume group on it, it has to be empty

Yes, you were right... i tried to destroy and to build again without any partition table an Hdd on the shared storage and now i'm able to create at least one LUN but not two...

i'm able to map LVM0 to Shared0, but not LVM1 to Shared1.

On the freeBSD side a configured to LUNs of 50Gb per each, hdd is 128Gb.

I'm missing somethings?

Thanks
 

Attachments

  • Immagine12345.png
    Immagine12345.png
    57.8 KB · Views: 1

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!