LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 05-22-2009, 12:56 AM   #1
nicegiving
LQ Newbie
 
Registered: Mar 2009
Posts: 7

Rep: Reputation: 1
I can't install and use iscsi initiator and target on ubuntu 8.10, who can help me?


Hello everyone:

I am new to iscsi, and I need to install and use both iscsi initiator and target on my ubuntu system.
The ubuntu system version is 8.10, my gcc/g++ version is 4.1.3. System kernel version is 2.6.27.

The problem is, when I installing open-iscsi with this command:
sudo apt-get install open-iscisi
A error will always occur, it is: "iscsiadm: No records found!", the whole output of this command is as bellow:
Code:
root@zzm-laptop:/home/zzm/iscsitarget-0.4.16# apt-get install open-iscsi
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列【新】软件包将被安装:
  open-iscsi
共升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 326 个软件未被升级。
需要下载 160kB 的软件包。
解压缩后会消耗掉 459kB 的额外空间。
获取:1 http://mirrors.163.com intrepid/main open-iscsi 2.0.865-1ubuntu4 [160kB]
下载 160kB,耗时 2s (59.0kB/s)     
选中了曾被取消选择的软件包 open-iscsi。
(正在读取数据库 ... 系统当前总共安装有 153858 个文件和目录。)
正在解压缩 open-iscsi (从 .../open-iscsi_2.0.865-1ubuntu4_i386.deb) ...
正在处理用于 man-db 的触发器...
正在设置 open-iscsi (2.0.865-1ubuntu4) ...
 * Starting iSCSI initiator service iscsid                                                                                                            [ OK ] 
 * Setting up iSCSI targets                                                                                                                                  
iscsiadm: No records found!
                                                                                                                                                      [ OK ]
I think it is may be the wrong configuration of iscsi targets, but I do not know where the error is. My steps of installing and configuring iscsi target are as bellow:

Code:
# apt-get install iscsitatget   
  (this command run successfully)
# sudo vi /etc/ietf.conf 
  In the configuration file, I made three changes.
  first change: set the isNSServer to local ip, in the file, it is :  
iSNSServer 127.0.0.1
  second change: set the target, in the file, it is:
Target iqn.2001-04.com.example:storage.disk2.sys1.xyz
  third change: changed the line which starts with "Lun" and changed the line to :
Lun 0 Path=/root/test.iso,Type=fileio

Then I restarted the target:
#/etc/init.d/iscsitarget restart
and the output of this command is:
Removing iSCSI enterprise target devices: failed with reason :Connection refused.

So, I changed the command to:
#/etc/init.d/iscsitarget stop
#/etc/init.d/iscsitarget start
and the output of the above command is:
Starting iSCSI enterprise target service: succeeded.

I do not know this is whether shows that the target is well configured and running normally.
I can't make any further step about installing and running iscsi initiator and target on my ubuntu system, please help me, thank you very much!

nicegiving
2009-5-21

P.S. Another problem occured: I can't uninstall iscsi target from my computer, the problem is as bellow:
Code:
zzm@zzm-laptop:~$ sudo apt-get remove iscsitarget
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包将被【卸载】:
  iscsitarget
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 1 个软件包,有 326 个软件未被升级。
解压缩后将会空出 217kB 的空间。
您希望继续执行吗?[Y/n]y
(正在读取数据库 ... 系统当前总共安装有 153874 个文件和目录。)
正在删除 iscsitarget ...
Removing iSCSI enterprise target devices: succeeded.
Stopping iSCSI enterprise target service: succeeded.
Removing iSCSI enterprise target modules: FATAL: Module iscsi_trgt is in use.
failed.
invoke-rc.d: initscript iscsitarget, action "stop" failed.
dpkg:处理 iscsitarget (--remove)时出错:
 子进程 pre-removal script 返回了错误号 1
Starting iSCSI enterprise target service: succeeded.
在处理时有错误发生:
 iscsitarget
E: Sub-process /usr/bin/dpkg returned an error code (1)
and sometimes when I execute this command, the system may tell me that a software is crashed! This makes me confuse!

Last edited by nicegiving; 05-22-2009 at 01:05 AM. Reason: to add another question.
 
Old 05-22-2009, 11:01 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,078

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
Quote:
Originally Posted by nicegiving View Post
Hello everyone:

I am new to iscsi, and I need to install and use both iscsi initiator and target on my ubuntu system.
The ubuntu system version is 8.10, my gcc/g++ version is 4.1.3. System kernel version is 2.6.27.

The problem is, when I installing open-iscsi with this command:
sudo apt-get install open-iscisi
A error will always occur, it is: "iscsiadm: No records found!", the whole output of this command is as bellow:
Code:
root@zzm-laptop:/home/zzm/iscsitarget-0.4.16# apt-get install open-iscsi
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列【新】软件包将被安装:
  open-iscsi
共升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 326 个软件未被升级。
需要下载 160kB 的软件包。
解压缩后会消耗掉 459kB 的额外空间。
获取:1 http://mirrors.163.com intrepid/main open-iscsi 2.0.865-1ubuntu4 [160kB]
下载 160kB,耗时 2s (59.0kB/s)     
选中了曾被取消选择的软件包 open-iscsi。
(正在读取数据库 ... 系统当前总共安装有 153858 个文件和目录。)
正在解压缩 open-iscsi (从 .../open-iscsi_2.0.865-1ubuntu4_i386.deb) ...
正在处理用于 man-db 的触发器...
正在设置 open-iscsi (2.0.865-1ubuntu4) ...
 * Starting iSCSI initiator service iscsid                                                                                                            [ OK ] 
 * Setting up iSCSI targets                                                                                                                                  
iscsiadm: No records found!
                                                                                                                                                      [ OK ]
First, you may want to post all of this in English. We can't read what you posted. Second, the message is fairly clear....it's been INSTALLED, but not CONFIGURED yet. It's not magic...you have to set it up.


Quote:
I think it is may be the wrong configuration of iscsi targets, but I do not know where the error is. My steps of installing and configuring iscsi target are as bellow:

Code:
# apt-get install iscsitatget   
  (this command run successfully)
# sudo vi /etc/ietf.conf 
  In the configuration file, I made three changes.
  first change: set the isNSServer to local ip, in the file, it is :  
iSNSServer 127.0.0.1
  second change: set the target, in the file, it is:
Target iqn.2001-04.com.example:storage.disk2.sys1.xyz
  third change: changed the line which starts with "Lun" and changed the line to :
Lun 0 Path=/root/test.iso,Type=fileio

Then I restarted the target:
#/etc/init.d/iscsitarget restart
and the output of this command is:
Removing iSCSI enterprise target devices: failed with reason :Connection refused.

So, I changed the command to:
#/etc/init.d/iscsitarget stop
#/etc/init.d/iscsitarget start
and the output of the above command is:
Starting iSCSI enterprise target service: succeeded.

I do not know this is whether shows that the target is well configured and running normally.
Well, the message says that startup was successful...which means it's running. The first step in a RESTART command is to stop it...but if it hasn't been STARTED before, that first step will fail...

Quote:
I can't make any further step about installing and running iscsi initiator and target on my ubuntu system, please help me, thank you very much!

P.S. Another problem occured: I can't uninstall iscsi target from my computer, the problem is as bellow:
Code:
zzm@zzm-laptop:~$ sudo apt-get remove iscsitarget
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包将被【卸载】:
  iscsitarget
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 1 个软件包,有 326 个软件未被升级。
解压缩后将会空出 217kB 的空间。
您希望继续执行吗?[Y/n]y
(正在读取数据库 ... 系统当前总共安装有 153874 个文件和目录。)
正在删除 iscsitarget ...
Removing iSCSI enterprise target devices: succeeded.
Stopping iSCSI enterprise target service: succeeded.
Removing iSCSI enterprise target modules: FATAL: Module iscsi_trgt is in use.
failed.
invoke-rc.d: initscript iscsitarget, action "stop" failed.
dpkg:处理 iscsitarget (--remove)时出错:
 子进程 pre-removal script 返回了错误号 1
Starting iSCSI enterprise target service: succeeded.
在处理时有错误发生:
 iscsitarget
E: Sub-process /usr/bin/dpkg returned an error code (1)
and sometimes when I execute this command, the system may tell me that a software is crashed! This makes me confuse!
Again, you need to post this in English. And you're trying to uninstall modules/programs WHILE THEY'RE BEING USED...of course you're going to get errors. Stop iSCSI, then remove it.
 
  


Reply

Tags
iscsi, target, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Using iSCSI On Debian Lenny (Initiator And Target) LXer Syndicated Linux News 0 03-12-2009 04:40 PM
iSCSI initiator gives problems after relogging initiator service devkpict Linux - Software 0 06-27-2008 09:24 AM
changes on other iscsi nodes attached to an ext3 iscsi target not being seen sldahlin Linux - Server 1 06-07-2008 03:02 AM
setting up iscsi initiator and target gauthamk Linux - Software 0 10-05-2007 10:16 AM
iSCSI Initiator? robby2 Linux - Software 1 08-31-2004 08:41 AM


All times are GMT -5. The time now is 06:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration