LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-02-2011, 11:04 AM   #1
magicalshashank31
Member
 
Registered: Apr 2011
Posts: 81
Blog Entries: 1

Rep: Reputation: 0
Question iscsi client server


i have connected my laptop to a iscsi target and mount the filesystem and put entry in fstab so it will mount again after boot,i have done chckconfig iscsi on.chkconfig iscsid on.
but when i reboot the machine and use :
df -h it dosent show my mounted iscsi target partition .
also,when i use
Code:
service iscsi status
it shows iscsi stoped although i have chkconfig the iscsi service.
same problem comes in case of nfs server,i have mounted the nfs shares to my laptop but again after reboot mount point gone .
due to which i have to mount the partitions again and again.

help me
 
Old 08-02-2011, 12:22 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
More

I do not suppose you could post your fstab file, or your output from chckconfig showing your settings for that service, or what DF or MOUNT return when you DO have things moounted?
 
Old 08-02-2011, 01:31 PM   #3
travisdh1
Member
 
Registered: Sep 2008
Distribution: Fedora
Posts: 129

Rep: Reputation: 22
Could you tell us what distribution and version number you're using? I'm just taking a hopefully educated guess.

In Fedora if the system was installed on a local disk and iscsi setup later the iscsi entry in the fstab will try to mount before the iscsi service actually starts (this happened to me in Fedora 14 and 15). So if your iscsi service is running correctly you'll have to mount the device later in the start up routine or manually. For the time being I put a mount command in /etc/rc.local (not ideal, but it works.)
 
Old 08-02-2011, 02:38 PM   #4
Blue_Ice
Member
 
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 361

Rep: Reputation: Disabled
Quote:
Originally Posted by travisdh1 View Post
Could you tell us what distribution and version number you're using? I'm just taking a hopefully educated guess.

In Fedora if the system was installed on a local disk and iscsi setup later the iscsi entry in the fstab will try to mount before the iscsi service actually starts (this happened to me in Fedora 14 and 15). So if your iscsi service is running correctly you'll have to mount the device later in the start up routine or manually. For the time being I put a mount command in /etc/rc.local (not ideal, but it works.)
In addition to this, make sure that fstab is exuted when the iSCSI client is started and the network is available. This means you should check the order of starting these services during booting.
 
Old 08-03-2011, 12:03 AM   #5
magicalshashank31
Member
 
Registered: Apr 2011
Posts: 81

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Quote:
Originally Posted by travisdh1 View Post
Could you tell us what distribution and version number you're using? I'm just taking a hopefully educated guess.

In Fedora if the system was installed on a local disk and iscsi setup later the iscsi entry in the fstab will try to mount before the iscsi service actually starts (this happened to me in Fedora 14 and 15). So if your iscsi service is running correctly you'll have to mount the device later in the start up routine or manually. For the time being I put a mount command in /etc/rc.local (not ideal, but it works.)
i am using red hat enterprise linux 6,i am preparing for the red ha exam.
but when i reboot my machine and check the iscsi service ,it shows iscsi service is stopped although i have chkconfig the service.
 
Old 08-03-2011, 09:03 AM   #6
travisdh1
Member
 
Registered: Sep 2008
Distribution: Fedora
Posts: 129

Rep: Reputation: 22
Alright. I'm working with Fedora so this might not be exactly correct but it should be.

Two services actually manage the iscsi protocol, iscsi and iscsid. The iscsid is the one that should be running when you check it with a /etc/init.d/iscisd status. I think the iscsi is only around for start up stuff (not 100% sure on that one.) Obviously if you haven't ckconfiged iscsid you'll want to turn that on as well.
 
Old 08-03-2011, 10:59 AM   #7
magicalshashank31
Member
 
Registered: Apr 2011
Posts: 81

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Quote:
Originally Posted by travisdh1 View Post
Alright. I'm working with Fedora so this might not be exactly correct but it should be.

Two services actually manage the iscsi protocol, iscsi and iscsid. The iscsid is the one that should be running when you check it with a /etc/init.d/iscisd status. I think the iscsi is only around for start up stuff (not 100% sure on that one.) Obviously if you haven't ckconfiged iscsid you'll want to turn that on as well.
no,again it dosent work for me,i have chkconfig both iscsi and iscsid but nothing works,main prob is when i reboot the machine and try to find out the status of iscsi service it shows service iscsi stoped although i have chkconfig the service ,yaa but iscsid service is running after chkconfig .
 
Old 08-03-2011, 06:27 PM   #8
Blue_Ice
Member
 
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 361

Rep: Reputation: Disabled
What are the log files telling you? The service might fail during booting.
 
Old 08-03-2011, 09:13 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
What was the entry in fstab by the way?

Might need this.

chkconfig iscsi --level 2345 on

Last edited by jefro; 08-03-2011 at 09:16 PM.
 
Old 08-04-2011, 12:21 AM   #10
magicalshashank31
Member
 
Registered: Apr 2011
Posts: 81

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Quote:
Originally Posted by jefro View Post
What was the entry in fstab by the way?

Might need this.

chkconfig iscsi --level 2345 on
no again same result ,it says iscsi service id stopped ,is there a difference between chkconfig iscsi on and chkconfig --level 2345 on???? i have applied both but no result found

Last edited by magicalshashank31; 08-04-2011 at 01:05 AM.
 
Old 08-04-2011, 12:25 AM   #11
magicalshashank31
Member
 
Registered: Apr 2011
Posts: 81

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Quote:
Originally Posted by Blue_Ice View Post
What are the log files telling you? The service might fail during booting.
log files dosent show anything,even i am using this on my two VM machine,but both machine says service iscsi off,even i chkconfig on both of them
 
Old 08-04-2011, 02:54 AM   #12
Blue_Ice
Member
 
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 361

Rep: Reputation: Disabled
Can you post your iSCSI client config? fstab is not really important as it will only call the block device to mount. The iSCSI service will attach the LUN to you distro as a block device. So if an iscsi service is not starting, then there must be an issue with your configuration or the boot order. To check the boot order you need to post the headers of the init scripts of fstab, iscsi and network.

By the way, are you trying to connect to iscsi over wlan? Because if so, that won't work when you are using NetworkManager to control your wireless network. When using NetworkManager you will only acquire a connection to the network when you log in to your laptop, not during booting.
 
Old 09-29-2011, 04:01 AM   #13
nhajji
LQ Newbie
 
Registered: Sep 2011
Posts: 1

Rep: Reputation: Disabled
Stupid answers

The guy is telling you the service is stopped, and ON on all runlveles, and you are answering chkconfig !!!!
I have the same case if anyone has the right answer please post.
 
Old 09-30-2011, 09:47 AM   #14
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
"stupid answers"????

@nhajji : it is unclear exactly who you are being critical of.

The OP has not responded with all of the requested information. Nor has there been any reply to the last advice from Blue ICE. Until the exact situation is clear it will be difficult to provide exacting advice. Chill.
 
Old 10-15-2011, 03:00 AM   #15
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 248
Blog Entries: 3

Rep: Reputation: 17
Hi magicalshashank31,
Can you try this, save this entries on client machine rc.local
# vi /etc/rc.local
tgtadm --lld iscsi --op new --mode target --tid=1 --targetname iqn.2009.10.11.com.pant
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/sdb1
tgtadm --lld iscsi --op bind --mode target --tid 1 --initiator-address=192.168.0.99 (client ip)



That's wk for you 100% & resolve you prob

Thanks
dk

Last edited by pantdk; 10-17-2011 at 12:05 AM.
 
  


Reply



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
iSCSI target vs. Samba vs. NFS share for Windows client use albertwt Linux - Server 0 11-11-2010 07:18 AM
iSCSI client setup difficulties humbletech99 Linux - Server 2 05-29-2009 03:47 AM
iSCSI client error tajamari Linux - Server 1 07-31-2008 06:10 AM
changes on other iscsi nodes attached to an ext3 iscsi target not being seen sldahlin Linux - Server 1 06-07-2008 02:02 AM
Can Red Hat’s GFS and/ or Cluster Suite implmnt an iscsi, client/server desgn? l_long_island Linux - Server 16 03-21-2008 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:50 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
Open Source Consulting | Domain Registration