Jetserver – The Lazy Admin Blog
Home  /  iSCSI • XEN  /  FreeNAS :: Creating ISCSI Storage

FreeNAS :: Creating ISCSI Storage

Daniel Alum May 20, 2019 Leave a Comment

Note: This guide was written using FreeNAS 11.2

In this guide we will explain how to configure iSCSI device mapping using FreeNAS. This could be very usefull for backups when using XenServer (as SR operation with NFS are very limited with XenServer)

Step one –  Enable iSCSI Service

Navigate to services > Enable ISCSI service “start on boot” > click “start now” to start the service

Step two – Create Zvol in an existing Volume(Dataset)

Navigate to Storage > Pools > Add Zvol

 

 

 

 

 

 

Fill the zvol name & comment box > zvol size in Gib > select any of compression method > select Block size > click on “Add zvol”

Step three – iSCSI configuration 

1.Create iSCSI Portal

Navigate Sharing > Block (iSCSI) > Portals > Add portal (The portal may exist if it has already been configured)

2.Create Initiators for iSCSI

Configuring Initiator, To define which systems can connect to this iSCSI

Navigate through Sharing > Block (iSCSI) > Initiators > Add Initiators.

While creating an iSCSI initiator you can leave the keyword “ALL”, this will allow connecting from any clients to this iSCSI share.

Note that it is recommended to set initiator IQN. You can see  some examples on how to get the IQN from the client machine here – Xenserver exmaple, CentOS example.

Authorized network: define a network address who will be able to access this share.

3.Create Target for iSCSI

Target is a combination of portals, valid initiators, and authentication methods.

Create a Target by navigating  Sharing > Block (iSCSI) > Targets > Add Target, as shown in below image.

Target Name: Select a name for your target
Target Alias: optional user-friendly name
Portal Group ID: select the portal group that you created
Initiator Group ID: select the initiator group id that you created in the previous step.

4. Create Extents

iSCSI targets used to define resources to share with clients. There are two types of extents: device and file

Device extents – virtual storage access to zvols or physical devices like a disk.

File extents – virtual storage access to file.

5. Associate an extent to a target

Sharing > Block (iSCSI) > Associated Targets > Add Target/Extent.

Select the items you have created in the previous steps.

That’s it ! You can use these examples to connect iSCSI devices –

  • Connect Xenserver to iSCSI target
  • Connect CentOS to iSCSI target
Previous Article
Next Article

About Author

Daniel Alum

Leave a Reply

Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search Our Blog

Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages
Filter by Categories
Apache
CentOS
CloudLinux
cPanel
ESXI
iSCSI
JetBackup
Litespeed
MySQL
NGINX
Reduxio
SSL
Uncategorized
VMware
Wordpress
XEN

Tags

apache aspx backup CentOS cloudlinux cPanel CXS freetds google htaccess iscsi JetBackup Libmodsecurity litespeed modsec modsecurity mssql MySQL netapp nginx odbc php php.ini phpselector VMFS WHM xenserver

Popular Posts

  • How To Install & Configure a Galera Cluster with MySQL on Centos 7 February 6, 2018
  • Allow a cPanel server to run a VHOST from multiple IP addresses April 3, 2018
  • Libmodsecurity installation April 14, 2016
  • JetBackup Cheat Sheet :: Automatically Acknowledge Alerts November 15, 2018

Recent Posts

  • Dealing with aggressive bot scanners September 14, 2020
  • Litespeed Geo Location Redirect September 14, 2020
  • JetBackup :: Restore on steroids ! August 21, 2020
  • XENSERVER :: CONNECTING ISCSI SR NETAPP STORAGE September 4, 2019

Recent Comments

  • Khan on Allow a cPanel server to run a VHOST from multiple IP addresses
  • Khan on Allow a cPanel server to run a VHOST from multiple IP addresses
  • Oleg Drabkin on Allow a cPanel server to run a VHOST from multiple IP addresses
  • Khan on Allow a cPanel server to run a VHOST from multiple IP addresses
  • Daniel on How To Install & Configure a Galera Cluster with MySQL on Centos 7
אחסון אתרים | JetApps