Help with NFS shares

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Help with NFS shares
# 1  
Old 12-04-2013
Help with NFS shares

Hi,

I have got nfs shares that were shared from storage (Netapp) to linux servers (RHEL 4) that were on automount.

All the share were visible and mounted on the linux serves eventhough they were on auto mount.

But recently one of the server was rebooted and mount points were disappeard and i can see from fstab file that has been edited as well. so i have keept it back similar to other servers where it works.

Some mount points are missing . They are not shown in df output or under mount point but seems to be present logically.

As i know the location when i cd into that directory the mount point reappears and disappears again when i come out of the directory.

when i try to manually mount it, i get a message saying that it is already mount and it is busy.

Other servers doesnt face this problem even after reboot. All th auto mount points are always visible on them.

Even though these are on auto mount is there any option that made them always visible. If so could any one provide the info?

Thanks,
P

Last edited by Scott; 12-04-2013 at 09:56 AM.. Reason: Removed formatting
# 2  
Old 12-04-2013
Can you paste the share configuration (/etc/exports ?) from the server and the mount definitions on the clients (/etc/fstab or any scripts that run to mount them manually)

It would be useful to see if any of the directories are under a filesystem that has not mounted for another reason. Do you have old versions of /etc/fstab available?



Please paste your output in CODE tags.



Robin

Last edited by rbatte1; 12-04-2013 at 07:34 AM.. Reason: Please paste your output in CODE tags.
# 3  
Old 12-04-2013
If you can cd into the folder and df -h . shows that it is NFS, there is nothing strange or missing.

Automount will umount the NFS share if it is not used for configured time of seconds (check man automount).

It will also mount the NFS if an application / user wants to access the specified mountpoint.

What is strange here if you are using automount, you should not use /etc/fstab entries or mount it by hand !
# 4  
Old 12-04-2013
Quote:
Originally Posted by Peasant
If you can cd into the folder and df -h . shows that it is NFS, there is nothing strange or missing.

Automount will umount the NFS share if it is not used for configured time of seconds (check man automount).

It will also mount the NFS if an application / user wants to access the specified mountpoint.

What is strange here if you are using automount, you should not use /etc/fstab entries or mount it by hand !
Hi,
Thanks for reply and that is what it bothers me as well. You don't need to have auto mount when you are going to mount it permanently. Since it was configure long time ago by someone who left the company and no one has bothered to ask about it.

I also understand how auto mount works and from configuration i can see that it gets unmounted after 600 sec as specified.

Informed my supervisor and he told me that there was one option that made them always visible which i am not aware of.

Any idea what that option could be ?

Thanks,
P

---------- Post updated at 01:51 PM ---------- Previous update was at 01:46 PM ----------

Quote:
Originally Posted by rbatte1
Can you paste the share configuration (/etc/exports ?) from the server and the mount definitions on the clients (/etc/fstab or any scripts that run to mount them manually)

It would be useful to see if any of the directories are under a filesystem that has not mounted for another reason. Do you have old versions of /etc/fstab available?



Please paste your output in CODE tags.



Robin
Hi Robin,

Thanks for reply. These mount points were working fine until system got rebooted and we dont have a proper reason on first place why it was rebooted. After rebooting only this issue was occurred.

Mount points are logically present but not able to view them when df is used. when tried to manually mount them it says it is already mounted and and busy.

I dont have any older versions of fstab as well.

Here i am looking to find if there is any option that i am not aware of that made them always visible on the client.

Any info would be great.

Thanks,
P
# 5  
Old 12-04-2013
To make permanent mounts, I put the entries in /etc/fstab and ignore the auto-mount daemon completely.

I was concerned that if you have a mount point /a/b/c/d and when the server is booting, /a/b fails to mount, then the mount point will not be there. It could also be that the mount sequence is incorrect, so it tries to mount /a/b/c/d first and fails then mounts /a/b and you are left wondering why.


As I requested before, can you paste /etc/fstab into the thread?


Regards,
Robin
# 6  
Old 12-06-2013
Quote:
Originally Posted by rbatte1
To make permanent mounts, I put the entries in /etc/fstab and ignore the auto-mount daemon completely.

I was concerned that if you have a mount point /a/b/c/d and when the server is booting, /a/b fails to mount, then the mount point will not be there. It could also be that the mount sequence is incorrect, so it tries to mount /a/b/c/d first and fails then mounts /a/b and you are left wondering why.


As I requested before, can you paste /etc/fstab into the thread?


Regards,
Robin
Hi Robin,

Sorry for delay in posting the output. I was off and below is the output of /etc/fstab

Code:
[root@node1 ~]#cat /etc/fstab

# This file is edited by fstab-sync - see 'man fstab-sync' for details

/dev/sda2                 /                       ext3    defaults        1 1
/dev/sda1             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/sda3         swap                    swap    defaults        0 0
/dev/sda5          /scratch                ext3    defaults        1 2

/dev/hda                /media/cdrecorder       auto    pamconsole,exec,noauto,managed 0 0



#filer01b
filer01b:/vol/am1  /data/am1  nfs     defaults,nfsvers=3        1       2
filer01b:/vol/pro1 /data/pro1 nfs     defaults,nfsvers=3        1       2
filer01b:/vol/pro2 /data/pro2 nfs     defaults,nfsvers=3        1       2
filer01b:/vol/amscratch /data/amscratch nfs     defaults,nfsvers=3        1       2
filer01b:/vol/am3 /data/am3 nfs     defaults,nfsvers=3        1       2

When the reboot took place i believe some thing has written or changed the fstab file and in turn filer01b mount points were missing inside fstab. I have manually edited the fstab file after the reboot.

Thanks,
P
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

File shares in UNIX

a) what are the different ways to share files ? b) How can I get list of file shares on Unix box in my company? c) How can I get list of files and their content present on all the Unix File shares? (1 Reply)
Discussion started by: vipintanwar
1 Replies

2. UNIX for Dummies Questions & Answers

Help mounting Samba shares

I have these two shares on my Ubuntu Server: path = /media/share read only = no guest ok = yes path = /var/www read only = noI want to mount them to the directories that I created on my Desktop called "shared" and "www" how do I do this? I ran the command: smbclient -L... (1 Reply)
Discussion started by: shadowcat
1 Replies

3. UNIX for Dummies Questions & Answers

Samba - Creating shares

So I have Samba installed on my server and I have to create two shares. Make a backup of your smb.conf - call it smb.conf.orig. Create a share called shared that allows read and write permissions for everyone and points to /media/shared. Create another share called www that points to the... (1 Reply)
Discussion started by: shadowcat
1 Replies

4. Red Hat

NFS Shares

Hi, Is there any command in linux to check the remote NFS shares from client machine just like we have dfshares in solaris. Thanks, Trimurtulu (1 Reply)
Discussion started by: ktrimu
1 Replies

5. Shell Programming and Scripting

Help creating a script to relocate shares

I have a single Linux Red Hat 8.0 server with two external disk arrays (each a raid) connected via SCSI. The OS/boot/swap is on an internal set of disks and should not be affected by this process. I need to move all of my data from one disk array to another while keeping all of my 30 or so... (0 Replies)
Discussion started by: kenisswell
0 Replies

6. IP Networking

How to enumerate samba shares with client

I have a samba server node and I want to mount the samba (CIFS) shares from a second (client) unix machine. However, the unix mount command requires I specify the name of the share. What if I don't know the name of the share? How can I enumerate all the shares from the samba client machine? ... (1 Reply)
Discussion started by: siegfried
1 Replies

7. UNIX for Advanced & Expert Users

File Server Pc Shares

Hi Everybody, I just want to know if anyone can help me to increase disk space for my users shared folder... it running out of free space... Any command that i can use or any otherway to prevent losing disk space from each folder? Please help... Thank you. (2 Replies)
Discussion started by: bvillante
2 Replies

8. Shell Programming and Scripting

[smbtar] Backup more shares in one command

Hi, is it possible backup more pc share run only one smbtar (like the exclusion)? This workssmbtar -v -s pc13 -u usr -p pc13 -x test_share -t - -X test_nobackup | gzip -c > steapc13.tar.gz also that smbtar -v -s pc13 -u usr -p pc13 -x test_share -t - -X test_nobackup test2_nobackup | gzip -c >... (0 Replies)
Discussion started by: mbarberis
0 Replies

9. SCO

Using NFS shares from RMCobol

I have set up a directory on a PC using smb and can access the directory using all normal unix commands. I want to be able to access files in the directory from RMCobol programs but get system error 46 which appears to be "no record locks available". Does anybody know what I need to do to... (3 Replies)
Discussion started by: rongrout
3 Replies

10. IP Networking

Mounting shares from a Windows PC

Hi... I can ping my Windows PC using both the IP address and NetBios name and I can ping my Linux box the same, IP address and NetBios name. I can even use smbclient to see the shares on my Windows PC. But I can't map the shares so that Linux sees it as a drive. How do I do that? (5 Replies)
Discussion started by: SeCBerm
5 Replies
Login or Register to Ask a Question