LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   iscsi target config error (https://www.linuxquestions.org/questions/linux-newbie-8/iscsi-target-config-error-4175514986/)

dundu 08-15-2014 01:02 PM

iscsi target config error
 
Hi


I am trying to configure iscsi target on my pc .these are the command i used
1,# mkdir /iscsi_disks
2,# dd if=/dev/zero of=/iscsi_disks/disk01.img count=0 bs=1 seek=2G
2G
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.000249885 s, 0.0 kB/s

3,vim /etc/tgt/targets.conf

added some lines
<target iqn.2014-08.domain.example.com:target00>
backing-store /iscsi_disks/disk01.img
initiator-address 172.85.90.1
incominguser root XXXXX
</target>

4,/etc/rc.d/init.d/tgtd start

no errors


5, /etc/rc.d/init.d/tgtd reload [FAILED]

Any idea what wrong with this config file .

Thanks

loadedmind 08-28-2014 10:25 AM

What are the specifics of your environment? E.G. Controller card XYZ; connected via ABC using second port; dmidecode, lspci, dmesg output is always helpful along with the typical /var/log/messages.


All times are GMT -5. The time now is 09:21 PM.