Solved

iscsi target

Posted on 2015-02-16
10
136 Views
Last Modified: 2015-02-27
I am trying to add this target to three ESXi hosts.

I was able to add to .32 but not others. i wonder why?


<target iqn.2015-02.com.example:target00>
        backing-store /dev/sanvg/sanlv
        initiator-address 192.168.1.32
        initiator-address 192.168.1.53
        initiator-address 192.168.1.55
</target>
0
Comment
Question by:linuxperson
  • 5
  • 4
10 Comments
 
LVL 77

Assisted Solution

by:arnold
arnold earned 333 total points
ID: 40614395
A LUN should only be accessed by one HOST At a time.

iscsi is SCSI (low level commands) over IP.  This means that data corruption is likely.
Host A writes, HOST B and HOST C are not informed of this change and will not see what is written, They can then each write something different of which the others will not be aware and could overwrite/use the same space on which others have written.

Look at the LUN configuration dealing with access rights.
0
 

Author Comment

by:linuxperson
ID: 40614867
I understand the i need a some kind of cluster file system to be able to manage this.

However  i just wanted to know how to allow multiple hosts to see this LUN
0
 
LVL 77

Expert Comment

by:arnold
ID: 40614898
What are you trying to do?  There are other ways of providing access to a shared resource, but it all depends on the manner in which that resource is needed.
you could the ISCSI LUN mounted by one system and have it shared so the others can access it.
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:linuxperson
ID: 40614910
<target iqn.2015-02.com.example:target00>
        backing-store /dev/sanvg/sanlv
        initiator-address 192.168.1.32
        initiator-address 192.168.1.53
        initiator-address 192.168.1.55
</target>

will this work?
0
 
LVL 77

Expert Comment

by:arnold
ID: 40614933
Where is this ?  Not sure you've changed anything?
you can have IP 192.168.1.32 mount the iscsi lun.
And then turn around and export it as an NFS share.
This way all systems can read and write to the same LUN with the system on 192.168.1.32 functioning as the arbitrator and sole direct writer into the LUN.

The use of an ISCSI lun might not be necessary in your situation where an NFS share or other types are as suitable.

Are the three hosts you reference part of a cluster?
0
 

Author Comment

by:linuxperson
ID: 40615021
Are you talking about vmware cluster?
0
 

Author Comment

by:linuxperson
ID: 40615031
I think its wrong example i am asking.  I understand file system corruption and other things you explained me here.

all I am trying to test is if all three ESXi hosts can see this iSCSI target according to below definition.

<target iqn.2015-02.com.example:target00>
        backing-store /dev/sanvg/sanlv
        initiator-address 192.168.1.32
        initiator-address 192.168.1.53
        initiator-address 192.168.1.55
</target>
0
 
LVL 77

Accepted Solution

by:
arnold earned 333 total points
ID: 40615037
No, the issue with an ISCSI resource is that it can only be accessed by one device at a time to avoid data corruption.
It does not matter what your intended use of the iscsi LUN is, only one host should be connected to it at one time.

VMWARE cluster, or guest OS cluster, it all depends to which portion of your setup this LUN is allocated.
VMWARE host (only one can connect)
VMware guest OS, only this guest can connect to it)
you can have VMWARE host access the LUN and then make it available to the Guest VMs.

You are not providing the inforamtion on what you have and are dealing with to see whether you actually need to use an ISCSI resource or another type might be as well or better suited for your needs.
0
 
LVL 77

Expert Comment

by:arnold
ID: 40615049
Use each host, go through the iscsi discovery and see whether this LUN is presented to it.  The only test is to actually try to mount it which means you should go to host 192.168.1.32 explore the iscsi host for targets and connect to this target.  once successful disconnect.
Go to the next host and repeat.

If one works, they all should work.
Verify IP addresses.

Is the VMWARE host the iscsi host, or is the SAN on a lan, in which case you have to make sure that the IPs of the guest  Vms are on the lan as well.
0
 
LVL 19

Assisted Solution

by:compdigit44
compdigit44 earned 167 total points
ID: 40617812
Hi linuxperson, if I am understand you correctly you want to take three host and have all of them access the same LUN/datastore correct????

What are you using for the iscsi target server?
Can you upload some screen shot of your config...

The following link reference to iSCSi FreeNas will multiple host and should like the person was successful..

https://forums.freenas.org/index.php?threads/sharing-iscsi-with-multiple-esxi-5-1.15558/
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Use case from Vsphere Tagging 4 38
synology Replace Drives to Expand Storage Capacity 8 36
Error upgrading from esxi 5.5 to 6.5 15 98
cannot remove vmnic 7 13
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question