Operating System - HP-UX
1833786 Members
2619 Online
110063 Solutions
New Discussion

How to change automount to hard nfs

 
Platinum
Occasional Advisor

How to change automount to hard nfs

As I know, by default, the type of automount mount is soft nfs mount. For some reason, I want to change it to hard nfs mount. Is that possible? and how to make it?

Thx!
5 REPLIES 5
Karthik S S
Honored Contributor

Re: How to change automount to hard nfs

It is not possible to make it hard nfs mount as it defeats the purpose of using the automounter. However you can increase the timeout calue for unmounts using,

automount -f master_file -t time_in_seconds -v

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Mark Grant
Honored Contributor

Re: How to change automount to hard nfs

I could have sworn that the default was for a hard NFS mount and you had to mount it soft with "-soft".

Never preceed any demonstration with anything more predictive than "watch this"
cl_5
Frequent Advisor

Re: How to change automount to hard nfs

Hi

You can mount it hard by typing your NFS Filesystem in /etc/fstab.
But take care about this, because if it goes something wrong with NFS your client system could be hang up or getting unstable.

HTH
cl

Sridhar Bhaskarla
Honored Contributor

Re: How to change automount to hard nfs

Hi,

There are two types of maps within automount - direct and indirect. Direct can be somewhat correlated to hardmount and indirect is like softmount. So, it depends on how your auto* files are setup.

If you are talking about hardmount and soft mount under NFS, then hardmount is something you do like "mount server:/exported_dir /local_dir". Hardmounts won't disappear upon inactivity. Softmounts do.

Add NFS mounts to your /etc/fstab and disable AUTOMOUNT from /etc/rc.config.d/nfsconf.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Seth Parker
Trusted Contributor

Re: How to change automount to hard nfs

CL raises a good point. Several years ago, we had an NFS mount in our /etc/fstab and if the NFS share wasn't available at boot time, the system would hang. Life may be different now, as this was on HP-UX 10.20, but it could still be an issue.

Regards,
Seth