<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iscsi initiator on centos 8 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/iscsi-initiator-on-centos-8/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 20 Nov 2019 19:35:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Configure iSCSI Initiator on CentOS / RHEL 8.</title>
		<link>https://www.osradar.com/how-to-configure-iscsi-initiator-on-centos-rhel-8/</link>
					<comments>https://www.osradar.com/how-to-configure-iscsi-initiator-on-centos-rhel-8/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Wed, 20 Nov 2019 19:35:14 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[install iscsi initiator on rhel]]></category>
		<category><![CDATA[iscsi initiator on centos 8]]></category>
		<category><![CDATA[RHEL 8]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15772</guid>

					<description><![CDATA[<p>We&#8217;ve cover the installation of iSCSI Target on CentOS 8 / RHEL 8 in our previous tutorial. In this tutorial we&#8217;ll cover the configuration of iSCSI Initiator on CentOS / RHEL 8. So follow these steps to get started. Step 1: Install iscsi-initiator-utils on CentOS / RHEL 8. sudo dnf -y install iscsi-initiator-utils Step 2: [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-configure-iscsi-initiator-on-centos-rhel-8/">How To Configure iSCSI Initiator on CentOS / RHEL 8.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>We&#8217;ve cover the installation of iSCSI Target on CentOS 8 / RHEL 8 in our previous tutorial. In this tutorial we&#8217;ll cover the configuration of iSCSI Initiator on CentOS / RHEL 8. So follow these steps to get started.</p>



<h3><strong>Step 1: Install iscsi-initiator-utils on CentOS / RHEL 8.</strong></h3>



<pre class="wp-block-verse">sudo dnf -y install iscsi-initiator-utils</pre>



<h3><strong>Step 2: Configure Initiator Name</strong></h3>



<p>Edit the file <strong>/etc/iscsi/initiatorname.iscsi/</strong> and name it to match the target server name you&#8217;ve used.</p>



<pre class="wp-block-verse">sudo vi /etc/iscsi/initiatorname.iscsi</pre>



<pre class="wp-block-verse">InitiatorName=iqn.2019-11.com.osradar:initiator01</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="542" height="39" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/initiator-name.png" alt="" class="wp-image-15776" srcset="https://www.osradar.com/wp-content/uploads/2019/11/initiator-name.png 542w, https://www.osradar.com/wp-content/uploads/2019/11/initiator-name-300x22.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/initiator-name-533x39.png 533w, https://www.osradar.com/wp-content/uploads/2019/11/initiator-name-534x39.png 534w" sizes="(max-width: 542px) 100vw, 542px" /></figure></div>



<h3><strong>Step 3: Configure Credentials</strong></h3>



<p>Open the following file to set up credential details.</p>



<pre class="wp-block-verse">sudo vi /etc/iscsi/iscsid.conf</pre>



<p>Note: Use the credentials as you&#8217;ve done in setting up target so they match.</p>



<pre class="wp-block-verse">Uncomment "node.session.auth.authmethod=CHAP"<br>Uncomment "node.session.auth.username" and set username as "Initiator01"<br>Uncomment "node.session.auth.password" and set it as you've setup in previous setup.</pre>



<h3><strong>Step 4: Testing iSCSI Target discovery</strong></h3>



<p>Run the following command to confirm that iSCSI can discover our installed iSCSI Target.</p>



<pre class="wp-block-verse">iscsiadm -m discovery -t sendtargets -p 172.17.52.184</pre>



<p>Note: Use your iSCSI target server IP.</p>



<p>If the IP info and access details is displayed we can say the discovery is successful.</p>



<h3><strong>Step 5: Confirm Target&#8217;s status</strong></h3>



<p>Run the given command to check the status.</p>



<pre class="wp-block-verse">iscsiadm -m node -o show</pre>



<pre class="wp-block-verse"># BEGIN RECORD 6.2.0.874-10  node.name = <a href="https://osradar.com">iqn.2019-11.osradar.com</a>:target01  node.tpgt = 1  node.startup = automatic  node.leading_login = No  iface.hwaddress =   iface.ipaddress =   iface.iscsi_ifacename = default  iface.net_ifacename =   iface.gateway =   iface.subnet_mask =   iface.transport_name = tcp  iface.initiatorname =   iface.state =   iface.vlan_id = 0  iface.vlan_priority = 0  iface.vlan_state =   iface.iface_num = 0  iface.mtu = 0  </pre>



<h3><strong>Step 6: Access iSCSI Target on CentOS / RHEL 8</strong></h3>



<p>Login to your account by typing this command , you will see a success message at the end.</p>



<pre class="wp-block-verse">iscsiadm -m node --login</pre>



<pre class="wp-block-verse">Logging in to<a href="https://www.osradar.com"> iface: default, target: iqn.2019-11.osradar.com:target01, portal: 172.17.255.109,</a>3260 Login to [iface: default, target: , portal: 172.17.255.109,3260] <br> <a href="https://www.osradar.com/">iqn.2019-11.osradar.com:target01</a> successful.</pre>



<p>Make sure you&#8217;re logged into your iSCSI Target Server.</p>



<pre class="wp-block-verse">iscsiadm -m session -o show</pre>



<pre class="wp-block-verse">tcp: [1] 172.17.255.109:3260,1 <a href="https://www.osradar.com" target="_blank" rel="noreferrer noopener" aria-label="iqn.2019-11.osradar.com:target01 (opens in a new tab)">iqn.2019-11.osradar.com:target01</a> (non-flash)</pre>



<p><strong>Check disks if you&#8217;ve added Target&#8217;s disk</strong></p>



<p>We&#8217;ve created backstore of 5GB space in our previous tutorial.</p>



<pre class="wp-block-verse">lsb1k</pre>



<p>Format &amp; mount the new disk to make it ready for use.</p>



<p>In this tutorial we&#8217;ll use fdisk to set up LVM type. You are free to use your desired one.</p>



<pre class="wp-block-verse">fdisk /dev/sdb</pre>



<p>Confirm the new partition number.</p>



<pre class="wp-block-verse">lsb1k</pre>



<p>Look at the new partition , we have sdb1 as seen below. Now, add a file system on the new partition.</p>



<pre class="wp-block-verse"> NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT  fd0               2:0    1    4K  0 disk  sda               8:0    0   20G  0 disk  ├─sda1            8:1    0  953M  0 part /boot  └─sda2            8:2    0 19.1G  0 part    ├─centos-root 253:0    0    6G  0 lvm  /    ├─centos-swap 253:1    0  956M  0 lvm  [SWAP]    ├─centos-home 253:2    0  7.5G  0 lvm  /home    └─centos-var  253:3    0  4.7G  0 lvm  /var  sdb               8:16   0    5G  0 disk  <strong>└─sdb1            8:17   0    5G  0 part</strong> <strong>##sdb1 Added</strong>  sr0              11:0    1 1024M  0 rom </pre>



<p><strong>Set file system on the partition</strong></p>



<p>Here, we&#8217;ll use xfs. You can use any (ext3,ext4,Btrfs etc) to fit your case.</p>



<pre class="wp-block-verse">mkfs.xfs /dev/sdb1</pre>



<p><strong>Mount your partition and confirm</strong></p>



<pre class="wp-block-verse">mount /dev/sdb1/mnt</pre>



<pre class="wp-block-verse">df -TH</pre>



<p>Congratulations! You&#8217;ve all done. If have any queries regarding this tutorial, you can ask in comments.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-configure-iscsi-initiator-on-centos-rhel-8/">How To Configure iSCSI Initiator on CentOS / RHEL 8.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-configure-iscsi-initiator-on-centos-rhel-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
