NFS automount on reboot


 
Thread Tools Search this Thread
Operating Systems AIX NFS automount on reboot
# 1  
Old 05-09-2014
NFS automount on reboot

Hi all,

I have mounted an NFS filesystem on a new build (AIX 6.1), and in the /etc/filsesystems set the mount to true, but after reboot the NFS filesystem does not mount automatically.

Thanks
# 2  
Old 05-09-2014
hi would be helpful if you post your details of /etc/filesystems mount point. typically i try to have people stay away from manually editting the /etc/filesystems but nothing that says it can't be done. just be sure to make a backup.

it should look like this:

Code:
/path/to/mount:
        dev             = /dev/mount
        vfs             = nfs
        log             = /dev/hd8
        mount           = true
        account         = false
        quota           = no

I usually do them manually or via smitty to speed things up but also take a look at the man page for:

Code:
man mknfsmnt

via smitty (I'd recommend this way)

Code:
smit nfs
  Network File System (NFS)
  Change / Show Attributes of an NFS File System
choose your nfs mount
find the line: 
* /etc/filesystems entry will mount the directory     yes                                                                                                            +
   on system restart.
(it should be "no" by default, change to yes)

ensure you look at each way before choosing which one you would like to try first. I have not tried mknfsmnt but I someone mentioned it to me a long time ago, just no need when i have the other two ways.
# 3  
Old 05-09-2014
This is how it looks like. I used smitty nfs to mount the nfs directory.

Code:
/local:
        dev             = "/dev/mount"
        vfs             = nfs
        nodename        = *****.com
        mount           = true
        options         = bg,soft,intr,vers=3,nosuid,sec=sys
        account         = false


Last edited by Don Cragun; 05-09-2014 at 09:30 PM.. Reason: Add CODE tags.
# 4  
Old 05-10-2014
Make sure the NFS-services are started.

First, if they are started at all:

Code:
lssrc -g nfs

Second, if they are started automatically at system start.

I hope this helps.

bakunin
# 5  
Old 05-10-2014
I guess that dev should be an exported path that is shown by
Code:
showmount -e *****.com

Normally it does not begin with /dev.
# 6  
Old 05-12-2014
Thanks all for the suggestions. The NFS services don't start on system start. But even without that, I can still mount the NFS FS manually.

I will try to add nfs to inittab to start the services on system start.

Thanks y'all
# 7  
Old 05-12-2014
The NFS client is not a real service like the NFS server.
The NFS client consists of a bunch of mount commands that terminate after execution, and therefore should not be in inittab (that restarts whatever terminates, thus would produce a high system load).
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

NFS write error on host xyz: Stale NFS file handle - Solaris 10

Oct 13 12:19:15 xyz nfs: NFS write error on host xyz: Stale NFS file handle. Oct 13 12:19:15 xyz nfs: (file handle: 68000000 1bc5492e 20000000 377c5e 1ce9395c 720a6203 40000000 bdfb0400) Oct 13 12:19:15 xyz nfs: NFS write error on host zyz: Stale NFS file handle. Oct 13 12:19:15 xyz nfs: ... (5 Replies)
Discussion started by: psychocandy
5 Replies

2. Shell Programming and Scripting

Mount NFS Share On NFS Client via bash script.

I need a help of good people with effective bash script to mount nfs shared, By the way I did the searches, since i haven't found that someone wrote a script like this in the past, I'm sure it will serve more people. The scenario as follow: An NFS Client with Daily CRON , running bash script... (4 Replies)
Discussion started by: Brian.t
4 Replies

3. AIX

NFS files after reboot

i Have a mount point from NAS and i mount it My AIX manually the system get rebooted by its self and it did not get mounted , how can i make it mounted with the system up in automated way ? (1 Reply)
Discussion started by: thecobra151
1 Replies

4. Solaris

Solaris 9 as a nfs client -- centos as a nfs server.

Hello, I have a centos as nfs server, its name is centos_A. After I finish the setup of the nfs server, the other linux can access this nfs server immediately via /net/centos_A/* But, My solaris 9 can not access /net/centos_A/* immediately. I have to leave /net/centos_A, and wait for about... (1 Reply)
Discussion started by: bruceharbin
1 Replies

5. Solaris

All dependicies of nfs service is online but nfs is offline

Hi all in my server all nfs dependices are online but nfs client is offline root@BIWAPP1 # svcs -a|grep nfs disabled Sep_05 svc:/network/nfs/server:default online Sep_05 svc:/network/nfs/rquota:default online Sep_05 svc:/network/nfs/mapid:default online ... (9 Replies)
Discussion started by: spandhan
9 Replies

6. Filesystems, Disks and Memory

Local NFS import / re-export using automount?

Hi, Can I do the following: On SunOS 5.8 /etc/vfstab: remote-host:/Volumes/webdata - /export/home/webdata nfs - yes rw,vers=3,soft,intr,bg,timeo=600 In /etc/auto_direct: /home/science $HOST:/export/home/webdata/science /home/science-edu ... (2 Replies)
Discussion started by: bloyall
2 Replies

7. Solaris

NFS write error on host : Stale NFS file handle

:confused:Hi all When i see in the /var/adm/messages, i saw the following error unix: NFS write error on host : Stale NFS file handle. unix: (file handle: 45ca415 3e7 a0000 2c7f6 3ebfc25f a0000 2 3e49) It is using sunOS 5.7. Is anybody know what is this error? Is is related to any network... (2 Replies)
Discussion started by: AirWalker83
2 Replies

8. Solaris

different between soft reboot and hard reboot

Hi Guru's Can any want here could explain to me the different between soft reboot and hard reboot . Best Regards Seelan (3 Replies)
Discussion started by: seelan3
3 Replies

9. UNIX for Advanced & Expert Users

Automount

My site has a few sun solaris server including out NIS server and NFS server on solaris machines. we also have few suse linux and redhat linux machine. All our home directory is on our NFS server(sun Solaris) and this is automounted through /etc/auto_master and /etc/auto_home this worked fine... (1 Reply)
Discussion started by: hassan2
1 Replies
Login or Register to Ask a Question