How to Create and Setup LUNs using LVM in “iSCSI Target Server” on RHEL/CentOS/Fedora – Part II

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...

26 Responses

  1. Abhi says:

    Hello Admins,

    I gone through the post it is very good, but I want to know the commands for removing or deleting the luns, acl in iscsi targets..?

    Thanks in advance!!

  2. didntwork says:

    $ sudo fdisk -cu /dev/sdb
    fdisk [options] change partition table
    fdisk [options] -l list partition table(s)
    fdisk -s give partition size(s) in blocks

    -b sector size (512, 1024, 2048 or 4096)
    -c[=] compatible mode: ‘dos’ or ‘nondos’ (default)
    -h print this help text
    -u[=] display units: ‘cylinders’ or ‘sectors’ (default)
    -v print program version
    -C specify the number of cylinders
    -H specify the number of heads
    -S specify the number of sectors per track

  3. jyothikumar says:

    supper explained

  4. Fahad Hasni says:

    upon reloading the configuration by starting tgd service is shows as failed.

    need your help


  5. Tarun says:

    This article is awsm…….

  6. abhi says:

    Hello, I am a big fan of tecmint. As usual, very good article.. It explanation is like awesome. Keep rocking.

  7. Kishore says:

    I have followed all steps which gave above and created a lun of 500 MB and shared to 2 nodes and now that disk got full and just increased size to 1gb of the logical volume which i used in iscsi target….but on client side on that 2 nodes disk size is showing me only 500mb which it should show me 1gb

    • @Kishore how you have extended the size ? using -l (small l ) or L ? Some mb will be took for metadata, except that you will get around 800 to 9xx mbs. May be i think you have used -L +1GB instead of using -l xxx extend values.

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.