Jetserver – The Lazy Admin Blog
Home  /  CentOS • iSCSI  /  CentOS :: Connecting iSCSI device

CentOS :: Connecting iSCSI device

elialum May 20, 2019 Leave a Comment

In this guide we will see how to add an iSCSI device into XenServer (version 6.5 and above). In this guide we will use iSCSI device mapped into a FreeNAS box. You can see here how to create iSCSI device using FreeNAS.

1. Install iscsi-initiator-utils:

  1. # yum install iscsi-initiator-utils -y

Start the iscsi service:

systemctl start iscsi
systemctl enable iscsi

2. Get the IQN of you machine (for configuring at the FreeNAS):

# cat /etc/iscsi/initiatorname.iscsi

3. Discover the target (ISCSI Storage FreeNAS)

# iscsiadm -m discovery -t st -p Your-Target-IP-Address

4. Log in with the target IQN you discovered in step 3:

# iscsiadm -m node -T iqn.xxxx-xx.xxx.example -l 

5. Create a file system:

Find the ISCSI disk:

# lsblk --scsi


# mkfs.ext4 /dev/sdd

6. Mount your ISCSI storage:

# mount /dev/sdd /mnt

7. You can mount the iSCSI storage automatically when system boots:

# vi /etc/fstab

Add the line:

/dev/sdd /mnt ext4 _netdev 0 0

Tags: iscsi
Previous Article
Next Article

About Author

elialum

Related Posts

  • XENSERVER :: CONNECTING ISCSI SR NETAPP STORAGE

    XENSERVER :: CONNECTING ISCSI SR NETAPP STORAGE

    September 4, 2019
  • XenServer :: Connecting iSCSI SR

    XenServer :: Connecting iSCSI SR

    May 20, 2019
  • Mount VMWare VMFS under Centos

    Mount VMWare VMFS under Centos

    February 21, 2017

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