Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

NFS mount at boot time

SOLVED
Go to solution
Tim Nelson
Honored Contributor

NFS mount at boot time

I apologize in advance if I missed the easy answer somewhere.

I would like an NFS mount to mount at boot.
I see a reference in the TCPIP document that the file sys$startup:tcpip$nfs_client_systartup.com is the place to put such a config.
After searching through startup files I do not see any startup that references this file nor can I find a good example ( I am sure I missed it).
Can anyone supply a best practice for the above scenario ?
I am thinking that the "tcpip mount...." command needs to be executed in this startup script ?

Thanks in advance.
Tim
7 REPLIES
Ian Miller.
Honored Contributor
Solution

Re: NFS mount at boot time

SYS$COMM0N:[SYSMGR]TCPIP$NFS_CLIENT_STARTUP.COM does look for and call
SYS$STARTUP:TCPIP$NFS_CLIENT_SYSTARTUP.COM
so I would use that.
(the name TCPIP$NFS_CLIENT_SYSTARTUP is constructed from symbols so you won't see it by searching the DCL but the key lines are
$ serv_id = f$parse(serv_proc,,,"name") - "_STARTUP"
$ serv_tailor = f$edit("sys$startup:''serv_id'_systartup.com","upcase")
...
$ if f$search(serv_tailor) .nes. ""
$ then
$ call log_info "%TCPIP-I-INFO, executing site-specific startup"
$ @'serv_tailor'
$ endif
____________________
Purely Personal Opinion
Tim Nelson
Honored Contributor

Re: NFS mount at boot time

Thanks Ian,

The sys$startup:tcpip$nfs_client_systartup.com would basically just be the mount commands ?i.e.
tcpip mount /structure=5 /system /noadf -dnfs1: /host="myhost"/path="/mypath" -
/background=delay:00:02:00,retry:10)/retries=5
Ian Miller.
Honored Contributor

Re: NFS mount at boot time

yes that looks fine
____________________
Purely Personal Opinion
Jan van den Ende
Honored Contributor

Re: NFS mount at boot time

Tim,

from your Forum Profile:


I have assigned points to 372 of 433 responses to my questions.


Maybe you can find some time to do some assigning?

Mind, I do NOT say you necessarily need to give lots of points. It is fully up to _YOU_ to decide how many. If you consider an answer is not deserving any points, you can also assign 0 ( = zero ) points, and then that answer will no longer be counted as unassigned.
Consider, that every poster took at least the trouble of posting for you!

To easily find your streams with unassigned points, click your own name somewhere.
This will bring up your profile.
Near the bottom of that page, under the caption < My Question(s) > you will find < questions or topics with unassigned points > Clicking that will give all, and only, your questions that still have unassigned postings.

Thanks on behalf of your Forum colleagues.

PS. Nothing personal in this. I try to post it to everyone with this kind of assignment ratio in this forum. If you have received a posting like this before, then please do not take offence, certainly none is intended!

Proost.

Have one on me.

Jan
Don't rust yours pelled jacker to fine doll missed aches.
Tim Nelson
Honored Contributor

Re: NFS mount at boot time

1 point for the reminder. :)

Thanks !
Lawrence Czlapinski
Trusted Contributor

Re: NFS mount at boot time

Tim:
1. At our site, we do the NFS mount in SYSTARTUP_VMS.COM. Just do it after TCPIP is started. That way it is easy for us and our successors to find and change when needed.
2. There is always a small possibility that the TCPIP file you put the mount in will be replaced/deleted in a future build.
Lawrence
Tim Nelson
Honored Contributor

Re: NFS mount at boot time

Good point Lawrence.
The TCPIP doc did specifically state that the TCPIP$NFS_CLIENT_SYSTARTUP.COM file would not be touched. (nor would swamp land in Florida ever be purchased by anyone).

For my test I did create the aforementioned file and rebooted. My NFS mount was mounted automatically on boot.

I guess there again is 12 ways to skin a cat.

Thanks all !