stgt.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jon Heese <jheese@inetu.net>
To: "stgt@vger.kernel.org" <stgt@vger.kernel.org>
Subject: Problems with targets.conf syntax
Date: Wed, 23 Sep 2015 18:22:37 +0000	[thread overview]
Message-ID: <3e3e0c715f06419c84f8883fcd102b1b@int-exch6.int.inetu.net> (raw)

Hello,

I'm using tgtd 1.0.60 on CentOS 7 to provide iSCSI targets on top of Ceph RBD storage, and I'm having some trouble working out the proper targets.conf syntax to make it work how I want...

So here's a snippet of my current targets.conf:

<target iqn.1996-12.net.inetu.ceph-storage01>
        bs-type rbd
        <backing-store cmikolay-sqlcluster_mssql>
                initiator-name iqn.1996-12.net.inetu:cmikolay-winlab.cslabs.inetu.net-r4zsbpwh2nfy
        </backing-store>
        ...
</target>

This works on a basic level - that is, it provides an iSCSI LUN for the "cmikolay-sqlcluster_mssql" RBD device, but the "initiator-name" directive appears to be being ignored.  If I switch from the container format to the inline format, i.e.:

<target iqn.1996-12.net.inetu.ceph-storage01>
        bs-type rbd
       backing-store cmikolay-sqlcluster_mssql
       initiator-name iqn.1996-12.net.inetu:cmikolay-winlab.cslabs.inetu.net-r4zsbpwh2nfy
        ...
</target>

Then the ACL by IQN works, but I can't add any more LUs to that target without breaking the ACL.

What I'm looking for is a way to have a single target with multiple LUNs under it, each ACL'd to a set of IQNs.  Does anyone know of a way to do this?  Thanks in advance!

Jon Heese
Systems Engineer
INetU Managed Hosting
P: 610.266.7441 x 261
F: 610.266.7434
www.inetu.net

** This message contains confidential information, which also may be privileged, and is intended only for the person(s) addressed above. Any unauthorized use, distribution, copying or disclosure of confidential and/or privileged information is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify the sender immediately via reply e-mail. **

             reply	other threads:[~2015-09-23 18:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-23 18:22 Jon Heese [this message]
2015-09-24 16:25 ` Problems with targets.conf syntax ronnie sahlberg
2015-09-24 18:42   ` Jon Heese

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3e3e0c715f06419c84f8883fcd102b1b@int-exch6.int.inetu.net \
    --to=jheese@inetu.net \
    --cc=stgt@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).