OpenVMS
1752795 會員
5867 線上
108789 解決方案
發表新文章

請問怎樣在VMS 上建立NFS server,再讓Unix 來Mount

 
watermelonyu
教授

請問怎樣在VMS 上建立NFS server,再讓Unix 來Mount

請問怎樣在VMS 上建立NFS server,再讓Unix 來Mount

是否有文件或範例可以分享呢?

謝謝
1則回覆 1
watermelonyu
教授

請問怎樣在VMS 上建立NFS server,再讓Unix 來Mount

(TCPIP Management book should always help!)



In essence, to set up the NFS server you need to perform the following operations :-



Services

1) Ensure that the services NFS, MOUNT and PORTMAPPER have been configured by the SYS$MANAGER:TCPIP$CONFIG.COM procedure (see the Installation and Configuration Manual to configure them if they are not present)



eg TCPIP> SHOW SERVICE



Service Port Proto Process Address State



BIND 53 TCP,UDP TCPIP$BIND 0.0.0.0 Disabled

...

MOUNT 10 UDP TCPIP$NFS_M 0.0.0.0 Enabled

NFS 2049 UDP TCPIP$NFS 0.0.0.0 Enabled

PORTMAPPER 111 TCP,UDP TCPIP$PORTM 0.0.0.0 Enabled

etc.



Client Hostname setup

2) Ensure that the client host is in the local host table



eg TCPIP> SET HOST "unixhost"/ADDRESS=194.28.0.30/ALIAS=UNIXHOST



Setup Disk Mapping

3) Map the disk you wish to export to a Unix-style pathname -



eg TCPIP> MAP "/dka0" $1$DKA0:



4) Save the mapping in the configuration database



eg TCPIP> SET CONFIGURATION MAP "/dka0" $1$DKA0:



Setup Exports

5) Add the directories on the disk to the export database using Unix-style syntax



eg TCPIP> ADD EXPORT "/dka0/fred" /HOST=*



Setup Network Proxies

6) Add NFS proxies for your users and for "root" and "nobody"



eg TCPIP> ADD PROXY TCPIP$NFS /UID=0/GID=1/HOST=*

TCPIP> ADD PROXY TCPIP$NOBODY /UID=-2/GID=-2/HOST=*

TCPIP> ADD PROXY FRED /UID=100/GID=15/HOST=*

(the UID/GID for the users must match their accounts on the U*ix system)



Unix Client Mount

7) Create a mount point on the U*ix file system and mount the exported directory



eg # mkdir vms

# mount vms_host:/dka0/fred /usr/users/fred/vms



Mount Command for a VMS NFS Client

To use NFS client there must be exported file