Centralized Secure Storage (iSCSI) – “Initiator Client” Setup on RHEL/CentOS/Fedora – Part III

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Babin Lonston

I'm Working as a System Administrator for last 10 year's with 4 years experience with Linux Distributions, fall in love with text based operating systems.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

32 Responses

  1. abhishek negi says:

    When we are doing wrong entry in /etc/iscsi/initiator-nam….
    And then. I use. This command
    Iscsiadm -m discovery -t st -p (ip.addr)

    Then iscsiadm -m discovery -t st -p (ip.addr) – l
    Then show 24 type something error then what i do troubleshooting this error without reboot use

    • @Abhishek,

      1. You need to check your logs first to find out what cause the exact issue.
      2. You can’t discover any device till fix any issue in configurations.

      If you are facing the issue provide us the logs, configuration entries.


      • abhishek negi says:

        I remove /var/lib/iscsi/send_target/* and /var/lib/iscsi/nodes/* but i have error 24 somthing type. i did not know about this comand
        “iscsiadm -m discovery -t st -p (ip.addr) – l ” cache entry path.
        can u tell me where is the cache entry path ?

  2. Atul says:

    Thank you for the wonderful tutorial, i have a question regarding mount point. I have a LV in target and i would like this to be mounted on the initiator however it tells me its not able to find special device

    Is it possible to mount the lv in above setup?

    • I have a LV in target and i would like this to be mounted on the initiator however it tells me its not able to find special device

      // Okay you have a Logical volume in iSCSI server but you can’t mount without giving that lv to in iSCSI configuration//

      Is it possible to mount the lv in above setup?

      // Have you provided that LV to target server configuration under /etc/tgt/targets.conf ? //

      Then reload target and find the output using tgtadm –mode target –op show

      If above steps done you can’t mount the LUN under initiator.

  3. TDG says:

    I have two host initiators that are connected to one target using one LUN. After the connection is established it gives me on every host (initiator) a disk that I mount to a directory using ext4 file system. When I write some data to the disk that I mounted on each initiator, data is replicated to the target. The problem is that: what I write on one initiator is not seen by the other initiator, but if I umount the disks on initiators and I mount them again data written on one is seen on the other initiator.
    Please suggest.

  4. TDG says:

    Sir I am trying to connect one LUN to more linux clients. I mounted the LUN to one client should i have to run commands from 10 to 16 on second client or is there any single command to connect same LUN to another client? or can i share this LUN with other clients?

  5. Dinesh C says:

    Thanks much…It is very helpful… I have one question here… After mounting the iscsi share permanently by fstab entry… If we want to reboot the client machi, do we need to logout from the targer server??

    • @Dinesh,

      No we don’t need to logout those iSCSI session in any case. Only we need to add the route for those target IP. If the route was not persistent upon reboot it will not connect to Storage.

  6. Tony says:

    This series has been a great help for me. Would it be possible to add multiple NICs to the target and configure multi-path/redundancy/fail-over? Thank you again.

  7. shiv says:

    I m shy to say that.
    I tried my best to configure mail server in 2008. But I am fail.
    one for dns and second for mail server.
    Could any one explain please step by step all configuration till clients side

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

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