LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   RHEL 6.3 IP/Hostname change difficulties (https://www.linuxquestions.org/questions/red-hat-31/rhel-6-3-ip-hostname-change-difficulties-4175445139/)

chrism01 01-21-2013 12:54 AM

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.

netnix99 01-21-2013 11:39 AM

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).

Jsaba2 01-21-2013 11:43 AM

Quote:

Originally Posted by Jsaba2 (Post 4873605)
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.

Jsaba2 01-21-2013 11:48 AM

Quote:

Originally Posted by netnix99 (Post 4874809)
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:E4:D0
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.

netnix99 01-21-2013 02:00 PM

You would have to change /etc/fstab, then unmount the current mount to .51, then run
Code:

mount -a


All times are GMT -5. The time now is 11:14 PM.