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
Linux
Litespeed
MySQL
NGINX
Oracle
Reduxio
Security
SSL
Uncategorized
VMware
Wordpress
XEN

Tags

apache aspx backup bash 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 ssmtp systemd threads VMFS WHM Wordpress xenserver

Popular Posts

  • Convert JetBackup to cPanel structure October 6, 2022
  • 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
  • rsync without prompting for password October 10, 2022

Recent Posts

  • Understanding Why More Threads Can Sometimes Slow Down Performance October 9, 2024
  • Set up a new systemd service May 18, 2024
  • Bash Arrays November 7, 2023
  • rsync without prompting for password October 10, 2022

Recent Comments

  • Sven on rsync without prompting for password
  • TheLazyAdmin on rsync without prompting for password
  • Sven on rsync without prompting for password
  • TheLazyAdmin on Convert JetBackup to cPanel structure
  • Chris on Convert JetBackup to cPanel structure
Privacy Policy • Contact