Monday, September 23, 2013

iSCSI share on Proxmox with FreeNAS as storage solution.

Purpose:

An iSCSI share on a FreeNAS server which will be available in the Proxmox server to be used for example as Backup for VM's, ISO image storage or VM Storage.




Used Software:

Proxmox VE 2.2
FreeNAS 8.3.0

Necessary:

Server 1:  FreeNAS 8.3.0
Server 2:  Proxmox VE 2.2

A running DHCP server in the network.

Installation:

Server 1:

Install FreeNAS with default settings or anyway you would like it.

Change the default admin password:

-       Account – Admin Account – Change Password

Make a disk volume:

-       Storage – Volumes – Volume Manager

o    Type in a Volume Name

o    Choose the disks that have to be added to the volume

o    Select ZFS as filesystem

make a ZFS Dataset to keep everything tidy for example shares / services / rights.

-       Storage – Volumes – “the just created volume name” – Create ZFS Dataset

o    Type a Dataset Name

o    Add Dataset

 Adjust the permission rights of the Dataset, so that everybody including Guest can access and modify the Dataset.

-       Storage – Volumes – “The just created Volume Name ” – “The just created Dataset Name” – Change Permissions

o    Check all setting in Mode.

Configure an iSCSI target

-       Services – iSCSI – Portals – Add Portal

o    Choose 0.0.0.0 at the drop down list

o    Press OK


 -       Services – iSCSI – Initiator – Add Initiator

o    Press OK


-       Services – iSCSI – File Extent – Add File Extent

o    Type in an extend name

o    Choose the created volume en and type behind it "/vmpool"    (vmpool for example)

o    Type in by Extent Size the desired size.

o    Press OK


-       Services – iSCSI – Targets – Add Target

o    Type in a Target Name

o    Portal Group ID 1

o    Initiator Group ID 1

o    Press OK


-       Services – iSCSI – Targets / Extents – Add Target / Extent

o    Target: Choose the created Target

o    Extent: Choose the File Extend

o    Press OK


Start the iSCSI Services

-       Click in the top on the Services Icon

-       Start iSCSI.
Next Server 2 installation and Configuration


Server 2:

Install Proxmox VE
  

-       Go in the webinterface click in the directory Datacenter and then click on tab Storage.

-       Click Add – iSCSI target

o    Fill in an ID number

o    Portal: Type in the IP number of Server 1

o    Target: Choose the iSCSI share

o    Adjust the other options according to use

The iSCSI share has now been added to Proxmox

Now because the iSCSI share doesn't have a filesystem / partition on it, it has to be created.

-       Click on the directory Datacenter en and then click on the  tab Storage

-       Click Add – LVM group

o    Type in an ID Number

o    Base storage: Choose the iSCSI share

o    Base Volume: Choose the Volume

o    Volume Group: Type in a Volume Group Name


The iSCSI store is now ready for use.











No comments: