LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 06-24-2013, 03:32 AM   #1
obiwannabe
LQ Newbie
 
Registered: Jun 2013
Posts: 12

Rep: Reputation: Disabled
where else besides fstab or init.d might an NFS mount be described?


I am virtualizing a pool of webservers. I converted two of them, but upon running, I noticed they were missing the two NFS mounts that the original servers listed.

So, I changed one of their temporary IPs to the live counterpart, and sure enough, one of the NFS mounts connected and was listed.

However, I cannot seem to find where the other mount is located. I've looked in the /etc/fstab and /etc/rc.d/rc.local. I just cannot seem to find where this other nfs mount is described.

I can't seem to find any web results since almost all responses pertain to using the stab or rc.local files to configure the client. I can try going ahead and just adding it to fstab, but I figure the other machines had it working somehow, and I would like to figure it out.

Any pointers on where else I should look? I don't think looking on the nfs server at exports (or elsewhere) will help, but I haven't looked there yet.
 
Old 06-24-2013, 03:35 AM   #2
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,590

Rep: Reputation: 1228Reputation: 1228Reputation: 1228Reputation: 1228Reputation: 1228Reputation: 1228Reputation: 1228Reputation: 1228Reputation: 1228
Hi,

did you check for autofs? Eg /etc/auto.*

Evo2.
 
Old 06-24-2013, 03:37 AM   #3
Dennis3
LQ Newbie
 
Registered: Jun 2013
Posts: 17

Rep: Reputation: Disabled
Try using showmount -e <ServerIP/Hostname> to see the exported mounts on the specific server.
 
Old 06-24-2013, 04:06 AM   #4
obiwannabe
LQ Newbie
 
Registered: Jun 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

did you check for autofs? Eg /etc/auto.*

Evo2.
I considered autofs, but didn't check those files - I just did (auto.master, auto.net, auto.misc), doesn't seem to be any specific mention of the host whose mount I am missing.

---------- Post added 06-24-13 at 01:07 AM ----------

Quote:
Originally Posted by Dennis3 View Post
Try using showmount -e <ServerIP/Hostname> to see the exported mounts on the specific server.
That is useful. With that, I verified the IP addresses I am seeing them on are indeed listed there. (one of which is the IP of the new, virtualized machine, whose source could see the mount, but the virtualized one can't)

Last edited by obiwannabe; 06-24-2013 at 04:09 AM.
 
Old 06-24-2013, 04:09 AM   #5
obiwannabe
LQ Newbie
 
Registered: Jun 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
Also wanted to note -my fstab says it's edited by fstab-sync, but I didn't see how that could be affecting what I am seeing.

Anywhere else I should be looking?
 
Old 06-25-2013, 02:19 AM   #6
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Check auto.master
Code:
/net	-hosts
in old & new systems. This means NFS type mounts will be mounted on demand ie if specifically used; will not be mounted if you just use df etc.
See also auto.net.
 
Old 06-25-2013, 03:32 AM   #7
obiwannabe
LQ Newbie
 
Registered: Jun 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
Check auto.master
Code:
/net	-hosts
in old & new systems. This means NFS type mounts will be mounted on demand ie if specifically used; will not be mounted if you just use df etc.
See also auto.net.
It looks like it's the default content in auto.master, commented out:

#/net /etc/auto.net

the auto.net file looks default/standard also.

Since it's commented out, I don't think any program set up this mount, right?

I guess I am leaning towards someone having set it up at some point by logging in? This server hasn't been turned off in six years, so it's possible, although I was pretty sure anyone who set it up would have set it up to mount on boot also.

The odd thing is I see similar mounts on other servers I am working with; like if the mount defined in fstab is 1.1.1.1/data/x/y/z /usr/local/some/deep/folder, when I look at mount, the 'phantom' mount is something like 1.1.1.1:/data /data.

But on some servers the IP is not the same (some it is). I am thinking maybe someone just mounted it temporarily to do a file copy?

Or is there somewhere else still I should be looking?

For now, I am setting up fstab on my new, virtualized machines to also include the 'phantom' mount point, so I guess no harm done. Just kind of bugging me that I can't figure out how they got set up in the first place.
 
Old 06-25-2013, 07:04 AM   #8
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
If it was mounted manually, it might be in root history file (depending on how long ago...)
 
Old 06-26-2013, 09:28 AM   #9
obiwannabe
LQ Newbie
 
Registered: Jun 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
If it was mounted manually, it might be in root history file (depending on how long ago...)
The history seems to go back quite far, but I had checked that originally and didn't see any manual mounts. I did look under other user accounts, but those users' histories don't come up at all.

Is there some other type of service that might be setting up that mount? For example, I just had a similar issue realizing there was a 'phantom' IP address, which was being added by a mySQL failover/heartbeat cluster (because the IP floats among the servers, it's not defined in the normal places on any of them). I don't think there was any distributed file system or anything like that. Even if there was, it would still be mounted in the places we've enumerated, right...

I think it's good to go being manually added to fstab, anyhow. It's just that things I can't really explain and have to write off keep bugging me!
 
Old 06-26-2013, 09:49 PM   #10
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Much better explicit in fstab, unless its just for 'browsing' in which case see my /net comment.
Realistically, any client can mount any nfs server mnt pt that its allowed to, by ANY method eg a bit of shell, C, Perl etc.
You may never find the original.
 
Old 06-27-2013, 02:43 AM   #11
obiwannabe
LQ Newbie
 
Registered: Jun 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
You're right on that last part, the more I think about it, the more it seems like it's some sort of a backup or admin task someone set up (probably in php via crontab) that could have mounted the whole /data share like that! I wasn't thinking along the lines of programmatic setup of the mount. Makes me feel better associating it with that!
 
Old 06-27-2013, 03:13 AM   #12
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Well, its not necessarily bad, just not complete.
I worked on a system that tested and mounted remote disks before using them but those mounts were also in the fstab.
The idea was to ensure the mnts were there before use (obviously), but also its possible the network wouldn't come fast enough before fstab tried to mount after a reboot.
The fstab entries were more of a central docco point
 
  


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
NFS mount in /etc/fstab ? cozye Linux - General 3 09-12-2014 04:48 PM
Can't get mount to work in /etc/init.d/rc.local or fstab Bozrdang Linux - Newbie 4 09-01-2010 11:09 AM
Give more mount time in /etc/fstab for an nfs mount zambega Linux - Newbie 1 08-13-2008 03:28 PM
Can't mount nfs share from fstab but can mount it manually - help Mountain Linux - Networking 1 03-30-2008 09:34 PM
how do I mount with nfs in fstab? Falafel Linux - Networking 1 11-13-2003 01:56 PM


All times are GMT -5. The time now is 11:56 AM.

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