The Lazy Admin Blog

Home  /  CentOS • iSCSI  /  CentOS :: Connecting iSCSI device

CentOS :: Connecting iSCSI device

May 20, 2019 CentOS, iSCSI 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

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
Post Type Selectors
Filter by Categories
Apache
CentOS
CloudLinux
cPanel
Emails
ESXI
iSCSI
JetBackup
Litespeed
MySQL
NGINX
Oracle
Reduxio
Security
SSL
Uncategorized
VMware
Wordpress
XEN

Tags

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

Popular Posts

  • How To Install & Configure a Galera Cluster with MariaDB on Centos 7 February 6, 2018
  • Allow a cPanel server to run a VHOST from multiple IP addresses April 3, 2018
  • Convert JetBackup to cPanel structure October 6, 2022
  • Libmodsecurity installation April 14, 2016

Recent Posts

  • rsync without prompting for password October 10, 2022
  • Convert JetBackup to cPanel structure October 6, 2022
  • Configure LiteSpeed Crawler October 5, 2022
  • Change Hostname in Oracle Cloud Infrastructure (OCI) October 3, 2022

Recent Comments

  • Anonymous on Convert JetBackup to cPanel structure
  • TheLazyAdmin on How To Install & Configure a Galera Cluster with MariaDB on Centos 7
  • AO on How To Install & Configure a Galera Cluster with MariaDB on Centos 7
  • Javier Bastet on Convert JetBackup to cPanel structure
  • Anonymous on InnoDB: Failed to find tablespace for table `X` in the cache
Privacy Policy • Contact