05-30-2019
Iscsiadm command returns error 'no records found'
Hi there, I'm currently working on an exercise to connect to a Windows iscsi target via a Red Hat initiator machine. I'm using Windows Server 2012 and Red Hat Enterprise Linux v7.1
I have created the target on the Windows Server box and the two devices can communicate with each other. Verified through ping. My instructions from the Red Hat machine are as follows;
Open a terminal window and enter the following command;
iscsiadm --mode discovery --type sendtargets --portal 192.168.1.200
[I first did this and the command returned nothing. I then invoked the sudo command and was able to get the target iqn, which is "iqn-1991-05.com.microsoft:srv2012-1-localservers-target"]
My next steps are to enter the following;
iscsiadm --mode node --targetname the_target_iqn --portal 192.168.1.200 --login
[Unfortunately this just returns 'no records found']
I'm not exactly sure what I'm doing wrong. I have followed the instructions and made sure to check all the spacing and syntax. Although, it appears something isn't right.
Does anybody have any ideas?
Thanks
Last edited by jim mcnamara; 05-30-2019 at 08:56 PM..
10 More Discussions You Might Find Interesting
1. Red Hat
Hi,
I am beginer to Linux. I have installed Redhat Linux AS 4.0 on my System.Later I created a User Oracle10g for Installing Oracle.Then I logged onto Oracle10g user and crated a Bash Profile and when I run that profile there was an error in that Profile. from then If I type any of Linux Command... (2 Replies)
Discussion started by: praswer
2 Replies
2. Shell Programming and Scripting
Hello everyone,
I am using Linux and tcsh shell. I am trying to run a free open source program( which is in the form of a binary file), but every time I run it it gives me an error saying:
newhtsg_v1.0:Command not found.
I have set permission also for the same.
What else can I do to make... (4 Replies)
Discussion started by: ad23
4 Replies
3. IP Networking
$ host 80.159.xx.xxx
Host 222.79.xxx.xxx.in-addr.arpa not found: 3(NXDOMAIN)
What does this mean? The person currently using the IP address in IRC is chatting right now, but how come if he's online it doesn't return any information? (1 Reply)
Discussion started by: guitarscn
1 Replies
4. Shell Programming and Scripting
I have been experiencing this problem intermittantly, I thought the problem was '/bin/sh -> /bin/dash' but I changed that to bash and the problem persists.
I am writing functions to be included in user's '.bash_profile' through source or '.' filename a quick example of the problem is illustrated... (3 Replies)
Discussion started by: bsquared
3 Replies
5. UNIX for Dummies Questions & Answers
I have a program called abc installed in /usr/local/bin.
My path is as follows:
# echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
However, when entering the abc command, the following error appears:
# abc
abc: Command not found
When... (7 Replies)
Discussion started by: figaro
7 Replies
6. Linux
I installed in VM the Mandriva Linux.
But when I fire the make command it gives me command not found error.
Seems make is not installed.
I also checked in Mandriva control center and no development package is seen there.
Will pls let me know how to proceed and get make and other development... (2 Replies)
Discussion started by: rupeshkp728
2 Replies
7. Shell Programming and Scripting
Hello All,
I am running source command on my project configuration file app.cfg which has conditional statements with make file systax E.g ifeq ($(APP_CMP_DIR),trunk).
When I source this file it throws error: syntax error near unexpected token... (1 Reply)
Discussion started by: anand.shah
1 Replies
8. UNIX for Dummies Questions & Answers
$ cat nu
who | wc -l
$ ls -l nu
-rwxr-x--- 1 _ _ 11 Jul 30 12:37 nu //the nu is displayed in green color
$ nu
bash: nu: command not found
I am using a book from 1986 on Unix System V, Release 3, and the Unix system I am connecting to is from my college.
Below is the notes from the book:... (4 Replies)
Discussion started by: chip
4 Replies
9. Shell Programming and Scripting
Could you let me know if my path is having bourne bash
echo $PATH
/u01/app/oracle/product/10.2.0/db_1/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/oracle/bin
$ which bash
/bin/bash
$ which ls
alias ls='ls --color=tty'
/bin/ls
Below is... (3 Replies)
Discussion started by: csguna6
3 Replies
10. IP Networking
One of our email recipients has 17 mx records, and our emailing program postfix on linux does not retrieve these records. When using dig, the same thing happens.
This command returns no mx records
>dig mx fnb.co.za
But when using +trace, the records get returned
>dig mx fnb.co.za +trace
... (4 Replies)
Discussion started by: Joop Kaashoek
4 Replies
LEARN ABOUT FREEBSD
iscsictl
ISCSICTL(8) BSD System Manager's Manual ISCSICTL(8)
NAME
iscsictl -- iSCSI initiator management utility
SYNOPSIS
iscsictl -A -p portal -t target [-u user -s secret]
iscsictl -A -d discovery-host [-u user -s secret]
iscsictl -A -a [-c path]
iscsictl -A -n nickname [-c path]
iscsictl -M -i session-id [-p portal] [-t target] [-u user] [-s secret]
iscsictl -M -i session-id [-n nickname [-c path]]
iscsictl -R [-p portal] [-t target]
iscsictl -R -a
iscsictl -R -n nickname [-c path]
iscsictl -L [-v]
DESCRIPTION
The iscsictl utility is used to configure the iSCSI initiator.
The following options are available:
-A Add session.
-M Modify session.
-R Remove session.
-L List sessions.
-a When adding, add all sessions defined in the configuration file. When removing, remove all currently established sessions.
-c Path to the configuration file. The default is /etc/iscsi.conf.
-d Target host name or address used for SendTargets discovery. When used, it will add a temporary discovery session. After discovery is
done, sessions will be added for each discovered target, and the temporary discovery session will be removed.
-i Session ID, as displayed by iscsictl -v.
-n The "nickname" of session defined in the configuration file.
-p Target portal - host name or address - for statically defined targets.
-s CHAP secret.
-t Target name.
-u CHAP login.
-v Verbose mode.
Certain parameters are necessary when adding a session. One can specify these either via command line (using the -t, -p, -u, and -s
options), or configuration file (using the -a or -n options). Some functionality - for example mutual CHAP - is available only via configu-
ration file.
Since connecting to the target is performed in background, non-zero exit status does not mean that the session was successfully established.
Use iscsictl -L to check the connection status.
Note that in order for the iSCSI initiator to be able to connect to a target, the iscsid(8) daemon must be running.
Also note that FreeBSD currently supports two different initiators: the old one, iscsi_initiator(4), with its control utility iscontrol(8),
and the new one, iscsi(4), with iscsictl and iscsid(8). The only thing the two have in common is the configuration file, iscsi.conf(5).
FILES
/etc/iscsi.conf iSCSI initiator configuration file.
EXIT STATUS
The iscsictl utility exits 0 on success, and >0 if an error occurs.
EXAMPLES
Attach to target iqn.2012-06.com.example:target0, served by 192.168.1.1:
iscsictl -A -t iqn.2012-06.com.example:target0 -p 192.168.1.1
Disconnect all iSCSI sessions:
iscsictl -Ra
SEE ALSO
iscsi(4), iscsi.conf(5), iscsid(8)
HISTORY
The iscsictl command appeared in FreeBSD 10.0.
AUTHORS
The iscsictl utility was developed by Edward Tomasz Napierala <trasz@FreeBSD.org> under sponsorship from the FreeBSD Foundation.
BSD
September 12, 2014 BSD