LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-26-2015, 06:19 AM   #1
Rezney
LQ Newbie
 
Registered: Apr 2015
Posts: 16

Rep: Reputation: 1
Best fstab network devices mount practice


Hi all,

On RHEL7, I am using NFS, Samba and iSCSI target. I would like to ask you what is the best practise to get them mounted as fast as possible or eventually skip one of them in case of network/service issue?

So far I am using:

Code:
/dev/sda1/  /mnt  xfs  defaults,_netdev  0 0
192.168.122.59:/public  /nfsmount  nfs  defaults,hard,intr,nfsvers=4  0 0
//192.168.122.59/sambafs /sammnt  cifs  multiuser,sec=ntlmssp,_netdev,credentials=/root/smb.txt  0 0
Especially after adding Samba the boot slowed significantly and after turning off iSCSI target it hangs.
Is the _netdev option usefull also in RHEL7?

Thanks...
 
Old 04-26-2015, 06:29 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I don't know about the _netdev option, but for network devices on a systemd distro you should definitely use the nofail option and maybe specify a timeout using the x-systemd.device-timeout option.
The nofail option will skip the mount after the network device can not be found for the amount of time specified with the timeout option.

Last edited by TobiSGD; 04-26-2015 at 09:30 AM. Reason: fixed typo
 
1 members found this post helpful.
Old 04-26-2015, 09:20 AM   #3
Rezney
LQ Newbie
 
Registered: Apr 2015
Posts: 16

Original Poster
Rep: Reputation: 1
Thanks man! Now it works like charm...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] enabling KDE to auto-mount devices set to BSD-type mount points in fstab? dchmelik Linux - Software 10 07-18-2015 04:50 AM
[SOLVED] enabling KDE to auto-mount devices set to BSD-type mount points in fstab? dchmelik Calculate 1 07-12-2013 01:47 AM
mount as non-root for devices not in fstab redray8 Slackware 5 08-07-2009 05:54 PM
Editing fstab to mount devices? apachedude SUSE / openSUSE 7 12-03-2004 04:35 AM
how to mount devices not shown in /ect/fstab??? len Slackware 2 12-19-2003 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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