LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-21-2013, 12:54 AM   #16
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751

For a client, there are usually 2 places to look for nfs mounts defns:

1. /etc/fstab
2. autofs: start with /etc/auto.master, which may refer to other files http://www.linuxtopia.org/online_boo...ig-autofs.html.

If you're really unlucky you may have to look at NIS or LDAP maps. See that doc.
 
Old 01-21-2013, 11:39 AM   #17
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 99
Can you post the contents of
Code:
/sbin/ifconfig -a
Code:
more /etc/fstab
and
Code:
more /etc/mtab
from the server and two client computers of a given cloned lab?

Does everything work correctly on the original lab that you made the clones from?

After you made changes to the different network files, did you restart the network services?
Code:
service network restart
(or if you have restarted the system, it would accomplish the same thing).
 
Old 01-21-2013, 11:43 AM   #18
Jsaba2
LQ Newbie
 
Registered: Jan 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Jsaba2 View Post
Okay, so I tried those things posted above. The /etc/mounts file on the students are blank while that file on the server doesn't call for any IP addresses. I tried messing with the mounts and what not, with no avail I just decided to do a mount -a and I got this response:

mount.nfs: backgrounding "192.168.20.51:home/atcsys/atc_storage/exports/exported/mounts/"

mount.nfs: mount options: "bg,vers=4,addr=192.168.20.51,clientaddr=192.168.20.46"

The computer I did this on is the correct client address of ....46 but it is calling on the original .51, rather than the new server IP ....44. How do I change what this mount.nfs is trying to call on so that it will auto-mount to 192.168.20.44?
I understand that I am quoting myself but after everyones previous advice still hadn't solved anything I went looking for that "/home/atcsys/atc_storage/exports/exported/mounts/" directory and couldn't find it. I then looked around and found this directory instead:

/home/atcsys/atc_storage/shared/mounts

What I found in there is a directory named 192.168.20.51!

Well, now I just need to figure out how to replace that folder and make a folder with 192.168.20.44 in there and it actually call on that folder. I guess I need to work on trying to edit that mount.nfs.
 
Old 01-21-2013, 11:48 AM   #19
Jsaba2
LQ Newbie
 
Registered: Jan 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by netnix99 View Post
Can you post the contents of
Code:
/sbin/ifconfig -a
Code:
more /etc/fstab
and
Code:
more /etc/mtab
from the server and two client computers of a given cloned lab?

Does everything work correctly on the original lab that you made the clones from?

After you made changes to the different network files, did you restart the network services?
Code:
service network restart
(or if you have restarted the system, it would accomplish the same thing).
I did restart the computers after changing it all. It seems that the command more /etc/fstab does show it is calling on .51

[root@lab21c mounts]# /sbin/ifconfig -a
eth1 Link encap:Ethernet HWaddr 3C:97:0E:29:96:F9
inet addr:192.168.20.46 Bcast:192.168.20.255 Mask:255.255.255.0
inet6 addr: fe80::3e97:eff:fe29:96f9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1123 errors:0 dropped:0 overruns:0 frame:0
TX packets:2354 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:70917 (69.2 KiB) TX bytes:109444 (106.8 KiB)
Interrupt:20 Memory:f5300000-f5320000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1238 errors:0 dropped:0 overruns:0 frame:0
TX packets:1238 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:105816 (103.3 KiB) TX bytes:105816 (103.3 KiB)

wlan1 Link encap:Ethernet HWaddr 60:67:20:66:E40
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


[root@lab21c mounts]# more /etc/fstab
#
# /etc/fstab
# Created by anaconda on Sun Nov 11 19:44:40 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=dd467b06-f72f-4158-bc53-5dd1a96b93a2 / ext4 defaults 1 1
UUID=8a622a6c-9f9d-43ef-bc4f-093b0c740675 /boot ext4 defaults 1 2
UUID=8183f143-6bd3-4d88-a895-8a2625b978ce /home ext4 defaults 1 2
UUID=8db069ff-668c-4fc6-b12f-266cec8875d3 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
192.168.20.51:/home/atcsys/atc_storage/exports/exported/mounts /home/atcsys/atc_storage/shared/m
ounts/192.168.20.51 nfs rw,bg 0 0 # 192.168.20.51:atc_repository_atcsys


[root@lab21c mounts]# more /etc/mtab
/dev/sdb5 / ext4 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/sda5 /boot ext4 rw 0 0
/dev/sdb7 /home ext4 rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
nfsd /proc/fs/nfsd nfsd rw 0 0
gvfs-fuse-daemon /root/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev 0 0



If I changed the fstab, that should work correct?


[EDIT]

I tried that, and it is still not working, I will do the same results for that and if they're different then I paste it.

Last edited by Jsaba2; 01-21-2013 at 12:00 PM.
 
Old 01-21-2013, 02:00 PM   #20
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 99
You would have to change /etc/fstab, then unmount the current mount to .51, then run
Code:
 mount -a
 
  


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
getting errors related to hostname -- security problem? ok to change hostname? sneakyimp Linux - Server 2 11-18-2012 05:25 PM
New Unix/Linux user - trying to a write a bash script to change the hostname on RHEL *unix* Linux - Newbie 2 08-08-2012 08:21 AM
Bash Script to change hostname for RHEL wegadnie Linux - General 7 06-22-2011 05:37 AM
Redhat Cluster Suite on RHEL 5.2(Virtual Hostname) scbops Red Hat 3 08-13-2009 12:55 PM
after hostname change, syslogd still output previous hostname to messages file tiger2000 Linux - General 3 07-22-2009 09:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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