I need a bit more information about your setup. What target are you using? I'm guessing LIO, since that's the most common (using targetcli), but there are others, and each one is different with respect to ACLs, using passwords, etc.
I use LIO/targetcli, and I usually work with the initiator and target on the same system, no problem. This is a network protocol, so it shouldn't matter if the initiator and target are on the same system or miles apart, as long as they are connected via the network. With LIO, you have to either add your initiator IQN to the ACL for the target, or you need to put the target in "demo" mode. Though poorly named, demo mode allows connection without ACLs (it generates the ACLs on the fly). Are you using initiator and/or target name/password protection? If so, that adds a layer of complication. For testing, I do not set up any names/passwords. How to you try to connect to your target? What distribution are you on and what version of that distro? Do you run iscsi discovery first, then connect? Show us the sequence of commands you use, and the actual error messages you say you are getting? Are you setting up the target the automatically reconnect on each reboot? If so, the steps you take to do that may differ per distrubution. And what systemd services do you have running? You need to supply much more information, in general, when asking for technical help. :) On Wednesday, June 30, 2021 at 8:15:03 AM UTC-7 riaan.p...@4cgroup.co.za wrote: > I get strange messages in my logs when i tried do that. and get disk > "flapping" when the disk just appear and reappear continuously after a > reboot. logically it would make sense that you can do this, but > practically there is weird issues. Would you guys say it might be a > misconfiguration ? > > On Wednesday, 30 June 2021 at 15:10:54 UTC+2 Paul Koning wrote: > >> >> >> > On Jun 30, 2021, at 7:29 AM, Ulrich Windl < >> ulrich...@rz.uni-regensburg.de> wrote: >> > >> > I think I did that about 10 years ago... >> > >> >>>> Riaan Pretorius <riaan.p...@4cgroup.co.za> schrieb am 30.06.2021 um >> 12:41 >> > in Nachricht <07b30064-72b3-42c1...@googlegroups.com>: >> >> I have an interesting question to ask: >> >> >> >> Is it possible to share the target on the same server as a initiator ? >> >> e.g. server1: target -> server1: initiator >> >> Yes, I've used that in a test setup when I needed to put a file system on >> iSCSI (to test pNFS). >> >> paul >> >> -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/open-iscsi/303b57a8-5d06-44ef-9212-ee350ea6bd1fn%40googlegroups.com.