Operating System - HP-UX
1834354 Members
2261 Online
110066 Solutions
New Discussion

how to mount NFS file system automatically ??

 
SOLVED
Go to solution
Cat_4
Advisor

how to mount NFS file system automatically ??

how to mount NFS file system automatically ??
6 REPLIES 6
steven Burgess_2
Honored Contributor

Re: how to mount NFS file system automatically ??

Hi

It's quite an indepth subject

man automount

will give you more details

Also do a search for more links

Regards

Steve
take your time and think things through
harry d brown jr
Honored Contributor
Solution

Re: how to mount NFS file system automatically ??


You can have the filesystem mounted at boot time by placing an entry into /etc/fstab:

HOSTNAME:/DIRECTORY2MOUNT /LOCALDIRECTORY2MOUNTON nfs OPTIONS 0 3

Where OPTIONS can be like rw (read/write), ro (read only). Do a man on nfs_mount.

live free or die
harry
Live Free or Die

Re: how to mount NFS file system automatically ??

Do you mean at boot time?

- In which case you just add an entry to /etc/fstab e.g.

server:/mnt /mnt nfs rw,hard 0 0

Or do you mean when someone tries to access a specific directory?

- In which case you need to set up the automounter - see this link for info on setting this up:

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B1031-90048/B1031-90048_top.html&con=/hpux/onlinedocs/B1031-90048/00/00/6-con.html&toc=/hpux/onlinedocs/B1031-90048/00/00/6-toc.html&searchterms=automount%7cnfs&queryid=20020625-040812

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Shahul
Esteemed Contributor

Re: how to mount NFS file system automatically ??

Hi

U want NFS FS to be mounted while booting.. Right? This can be achieved by adding the entry in /etc/fstab. I suggest U to go for automounting. Here even if ur NFS server is down while client comes up, Exported FS will be mounted once NFS server comes up. Where as in earlier case NFS server should be alive while client comes up.. Got it??

How to setup automounting? See below

I hope U have setup the NFS server properly. Come to the client side

#cd /etc/rc.config.d

Edit nfsconf file and make sure that NFS_CLIENT and AUTOMOUNT are set to 1

Then go to SAM-networking and communication

Here U can see remotely mounted files option, Go to action, here U can setup automount option for NFS filesystem.

Or U can manually edit /etc/auto.direct file. Better U do it thru sam. After this

#cd /sbin/init.d
#./nfs.client stop
#./nfs.client start

#bdf

See whether remote file systems are mounted or not? If not, please cross check ur procedure once again.

Best of luck
Shahul
George Abraham_1
Regular Advisor

Re: how to mount NFS file system automatically ??