Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Say I have the following set up.

<target iqn.2012-02.local.mydomain.server1.target1>
    backing-store /dev/virtstore/virtimage1
</target>

<target iqn.2012-02.local.mydomain.server2.target2>
    backing-store /dev/virtstore/virtimage2
</target>

If I'm on server1, I can see both targets. How can I make it so that if I scan the target, only one target shows up (the iqn.2012-02.local.mydomain.server1.target1).

edit: targets and initiators are red hat linux.

share|improve this question

1 Answer 1

You need to use LUN masking. Your target should have a feature that lets you choose a list of devices that will be able to access it.

share|improve this answer
    
If I'm using the tools that come with Redhat, how would I go about doing that? normally I would do that on the SAN or fibre level but I'm a newbie with iscsi. –  luckytaxi Feb 29 '12 at 20:52
    
Oh, I assumed this was to some sort of storage device. If you're providing iscsi disks through linux, I can't help you. Sorry. –  Basil Feb 29 '12 at 20:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.