# Error when setting up an iSCSI LIO Target Server

**URL:** <https://forums.suse.com/t/error-when-setting-up-an-iscsi-lio-target-server/27824>\
**Category:** SLES Configure-Administer\
**Created:** [January 22, 2016, 5:14pm UTC](https://forums.suse.com/t/error-when-setting-up-an-iscsi-lio-target-server/27824 "2016-01-22T17:14:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ti6](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@ti6](https://forums.suse.com/u/ti6)\
**Post date:** [January 22, 2016, 5:14pm UTC](https://forums.suse.com/t/error-when-setting-up-an-iscsi-lio-target-server/27824/1 "2016-01-22T17:14:06Z")

</div>

I have created an iSCSI target using yast2.  
After a start systemctl target,  
systemctl status target gives me:

target.service - “Generic Target Mode service”  
Loaded: loaded (/usr/lib/systemd/system/target.service; enabled)  
Active: active (exited) since Fr 2016-01-22 15:28:25 CET; 14s ago  
Process: 4301 ExecStopPost=/usr/sbin/tcm\_node --unload (code=exited, status=0/SUCCESS)  
Process: 4290 ExecStopPost=/usr/sbin/lio\_node --unload (code=exited, status=0/SUCCESS)  
Process: 4287 ExecStopPost=/usr/sbin/tcm\_fabric --unloadall (code=exited, status=0/SUCCESS)  
Process: 4278 ExecStop=/usr/sbin/tcm\_dump --file /etc/target/tcm\_setup.sh (code=exited, status=0/SUCCESS)  
Process: 4272 ExecStop=/usr/sbin/lio\_dump --file /etc/target/lio\_setup.sh (code=exited, status=0/SUCCESS)  
Process: 4345 ExecStartPost=/etc/target/lio\_setup.sh (code=exited, status=1/FAILURE)  
Process: 4341 ExecStartPost=/etc/target/tcm\_setup.sh (code=exited, status=0/SUCCESS)  
Process: 4337 ExecStart=/etc/target/lio\_start.sh (code=exited, status=0/SUCCESS)  
Process: 4327 ExecStart=/etc/target/tcm\_start.sh (code=exited, status=0/SUCCESS)  
Main PID: 4337 (code=exited, status=0/SUCCESS)  
January 22 15:28:25 aaa lio\_setup.sh [4345]: /etc/target/lio\_setup.sh: line 50: echo: write error: Invalid argument

And in /var/log/messages:  
aaa kernel: [3075.165526] Rounding down aligned max\_sectors from 4294967295 to 4294967288  
aaa lio\_setup.sh [4481]: /etc/target/lio\_setup.sh: line 50: echo: write error: Invalid argument  
aaa kernel: [3075.199676] iSCSI Target Portal Group: 1 is already inactive, ignoring request.

And in /etc/target/lio\_setup.sh, line 50 is:  
echo 0\> /sys/kernel/config/target/iscsi/iqn.XXXX.XX:XXXX-XXX-XX/tpgt\_1/enable

# ls -l /sys/kernel/config/target/iscsi/iqn.XXXX.XX:XXXX-XXX-XX/tpgt\_1/enable

results in:  
-rw-r - r-- 1 root root 4096 January 22 15:39 /sys/kernel/config/target/iscsi/iqn.XXXX.XX:XXXX-XXX-XX/tpgt\_1/enable

Now I wonder what is going wrong.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [January 27, 2016, 7:30am UTC](https://forums.suse.com/t/error-when-setting-up-an-iscsi-lio-target-server/27824/2 "2016-01-27T07:30:11Z")

</div>

ti6,

It appears that in the past few days you have not received a response to your  
posting. That concerns us, and has triggered this automated reply.

These forums are peer-to-peer, best effort, volunteer run and that if your issue  
is urgent or not getting a response, you might try one of the following options:

- Visit [http://www.suse.com/support](http://www.suse.com/support) and search the knowledgebase and/or check all  
the other support options available.
- Open a service request: [https://www.suse.com/support](https://www.suse.com/support)
- You could also try posting your message again. Make sure it is posted in the  
correct newsgroup. ([http://forums.suse.com](http://forums.suse.com))

Be sure to read the forum FAQ about what to expect in the way of responses:  
[http://forums.suse.com/faq.php](http://forums.suse.com/faq.php)

If this is a reply to a duplicate posting or otherwise posted in error, please  
ignore and accept our apologies and rest assured we will issue a stern reprimand  
to our posting bot…

Good luck!

Your SUSE Forums Team  
[http://forums.suse.com](http://forums.suse.com)
