LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-20-2013, 04:54 PM   #1
t0bias
Member
 
Registered: Aug 2005
Distribution: Fedora 13, RHEL 5.3, Ubuntu 10.04, Debian Lenny
Posts: 128

Rep: Reputation: 16
Skip waiting for iSCSI targets during boot if not in known network


Hello everybody,

on my Notebook I have installed Ubuntu 13.04 and configured two iSCSI-targets to mount during boot using fstab.
This works fine, as long as I am within a network-environment that is either my home-network or my companys network.
However, I am traveling quite a lot and every time I connect to a network where I need to get my VPN client running first (Hotels, Airports, etc.), the boot-process gets interrupted until the connection-timeout is being reached.
The mount-option _netdev is set, however this seems to be ignored by the bare presence of any WiFi network.

Is there a way to skip this process unless there is an actual connection with internet-access or a "known" network?

any idea is greatly appreciated!
 
Old 10-21-2013, 03:54 AM   #2
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
You could remove the entries from fstab and write a script that checks for the home/company network presence, if so mount the iSCSI targets. The script can be run from rc.local (don't forget to background it).

Pseudo code:
Code:
if specific network is up
then
  mount .....
  mount .....
fi
Possible drawback: rc.local is run after all the other rc related stuff, iSCSI related mount points aren't available at that time.
 
Old 10-21-2013, 10:31 AM   #3
t0bias
Member
 
Registered: Aug 2005
Distribution: Fedora 13, RHEL 5.3, Ubuntu 10.04, Debian Lenny
Posts: 128

Original Poster
Rep: Reputation: 16
Thanks.
I was hoping for a more "genuine" possibility - however, I'll probably just follow your advice
 
  


Reply

Tags
boot up, connection, iscsi, timeout, wait


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
[SOLVED] pacemaker - iscsi: how to set up iscsi targets/logical units? eantoranz Linux - Server 9 01-02-2013 08:38 AM
What is the recommended way to setup Linux with iSCSI targets the_gripmaster Red Hat 3 06-17-2011 07:51 AM
RHEL4 enumerate iSCSI targets joeldavis Linux - Enterprise 2 05-23-2011 09:04 AM
Loading iscsi targets on reboot Neruocomp *BSD 0 06-28-2010 10:03 AM
iSCSI Targets for Tape (character) Devices ben.kuiper Linux - Networking 3 03-15-2007 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:09 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