LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-08-2012, 02:10 PM   #1
egobbo
LQ Newbie
 
Registered: Nov 2012
Posts: 14

Rep: Reputation: Disabled
/etc/fstab


Hey Everybody,

We have a NAS share that needs to be mounted on several of our Linux servers.
The mounting of the filesystem works OK when done manually with the command

mount -t nfs NASent.my-company.com:/root_vdm_5/FScs01/FScs01 /bmc

The problem is that when the server is rebooted, the mount is gone, even though I added this line to the /etc/fstab:

NASent.my-company.com:/root_vdm_5/FScs01/FScs01 /bmc nfs defaults 0 0

Is there a dfferent syntax for a NAS share in the /etc/fstab?

Thanks, eg
 
Old 11-08-2012, 02:51 PM   #2
adol83
Member
 
Registered: Jul 2012
Location: Rome
Distribution: RHEL6, CentOs
Posts: 92

Rep: Reputation: 1
Hello,

/etc/auto.master is defined?
 
Old 11-08-2012, 03:15 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
what does auto.master have to do with his question?

Can't think of any obvious reason, but you've two steps on one there... 1) using an fstab entry and 2) mounting on boot. So with that entry does "mount /bmc" work? after that there can often be issues with the network not being ready yet, but that's why network based filesystems are typically not mounted until later in the boot process on most systems.

(maybe the server has taste... If I ever have to use another BMC product again, so help me... )
 
Old 11-08-2012, 03:16 PM   #4
egobbo
LQ Newbie
 
Registered: Nov 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Not familiar with that file.

I will check into it. Do you know the format for its entries?

Thank you, eg
 
Old 11-08-2012, 03:34 PM   #5
egobbo
LQ Newbie
 
Registered: Nov 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thank you Chris.
We can mount the NAS share OK with this command:
mount -t nfs NASent.my-company.com:/root_vdm_5/FScs01/FScs01 /bmc
Still it will not be available after a server reboot even though we have this line in the /etc/fstab:
NASent.my-company.com:/root_vdm_5/FScs01/FScs01 /bmc nfs defaults 0 0

Sorry for being verbose. Our question is: how do we retain the mount after reboot?
If I understood you correctly it might be a timing issue (and fully justified BMC idiosyncrasies)?

Thanks.

eg
 
Old 11-08-2012, 03:54 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
please specifically answer the question I asked. does "mount /bmc" work?
 
Old 11-08-2012, 03:58 PM   #7
egobbo
LQ Newbie
 
Registered: Nov 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
yes
 
Old 11-08-2012, 04:13 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
OK, so what distro are we even talking about here? If it has a netfs service, is it set to run on boot?
 
Old 11-08-2012, 04:43 PM   #9
egobbo
LQ Newbie
 
Registered: Nov 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Not sure. This is what I see:

After the reboot I found the portmap and nfs services were stopped

Checked netfs and it doesn't show /bmc as Active NS mountpoint:

# service netfs status
Configured NFS mountpoints:
/bmc
/data/col1/backup/nfs/enterprise/dev
/dd_nfs/dd_bkups_clt
Configured network block devices:
imssltdd1-10g.mycompany.com:

I restarted portmap and nfs services and executed:

# mount -t nfs NASent.my-company.com:/root_vdm_5/FScs01/FScs01 /bmc

Checked netfs again and it show /bmc as Active NFS mountpoint

[root@orabmctd10 ~]# service netfs status
Configured NFS mountpoints:
/bmc
/data/col1/backup/nfs/enterprise/dev
/dd_nfs/dd_bkups_clt
Configured network block devices:
imssltdd1-10g.mycompany.com:
Active NFS mountpoints:
/bmc

Any clue?
 
Old 11-08-2012, 04:55 PM   #10
Bill L.
LQ Newbie
 
Registered: May 2012
Posts: 4

Rep: Reputation: Disabled
we/ours are set like

nc006qaa266q -> cat /etc/fstab | grep -i nmon | more
//ga016f006/nmon_data /NMON_DATA cifs dir_mode=0777,file_mode=0777,credentials=/etc/sa
mba/creds/corp-creds.txt 0 0
 
Old 11-08-2012, 04:59 PM   #11
Bill L.
LQ Newbie
 
Registered: May 2012
Posts: 4

Rep: Reputation: Disabled
better example

[/home/uzassi1 - uzassi1]
nc006qaa266 -> cat /etc/fstab | grep -i dors | more
//GA016A502/DORSSHARE /dorsshare cifs dir_mode=0777,file_mode=0777,credentials=/etc/samba/creds/corp-creds.txt
0 0
[/home/uzassi1 - uzassi1]
nc006qaa266 -> mount | grep -i dorsshare | more
//GA016A502/DORSSHARE on /dorsshare type cifs (rw)

this install
nc006qaa266 -> uname -a
Linux nc006qaa266.somename.com 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
 
Old 11-08-2012, 05:03 PM   #12
egobbo
LQ Newbie
 
Registered: Nov 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thank you Bill. I see you use // at the beginning of the line in the fstab file and no ':'. I will try that.
THX, eg
 
Old 11-08-2012, 05:17 PM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Quote:
Originally Posted by egobbo View Post
Thank you Bill. I see you use // at the beginning of the line in the fstab file and no ':'. I will try that.
THX, eg
yeah.... becuase that's cifs, and NOT nfs...

stop using the full mount command, that only confuses things. with an fstab entry, you never need more than "mount /bmc"

you mounted it and netfs said it was mounted... not exactly unexpected really.

If you start the netfs service (not that is actually IS a service at all note...) after a reboot, what does that do?

Last edited by acid_kewpie; 11-08-2012 at 05:18 PM.
 
Old 11-08-2012, 05:47 PM   #14
egobbo
LQ Newbie
 
Registered: Nov 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Same result. After the reboot /bmc is not mounted ... go figure.
 
Old 11-08-2012, 05:54 PM   #15
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
What i've said wouldn't affect anything across a reboot. if you start the netfs service, does that work?
 
  


Reply


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
Suse won't boot after fstab changes - fstab not editable baking-a-77 Linux - Newbie 10 06-02-2007 11:51 AM
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 07:15 AM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 06:54 AM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 06:55 PM


All times are GMT -5. The time now is 04:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration