Setting Up NFS File Sharing on an AS/400 - iSeries System for use with WebDocs iSeries Edition
A WebDocs iSeries Edition customer wants to store and share document files via NFS from a secondary AS/400 - iSeries system. We have tried the QFILESVR.400 file file system, but it seems to be dependent upon user IDs and passwords matching between system.
Listed below are the steps that can be used to start the NFS Server on the secondary iSeries system where the documents will be stored.
Note: On the iSeries where WebDocs iSeries Edition software is running, the DOCMOUNT and DOCUNMOUNT commands will need to be used to connect to the shared IFS folder on the secondary iSeries system.
NFS Server Startup Steps on iSeries Where Documents will be Stored
The IFS folder that will be shared needs to be exported from the iSeries that will store the documents. This example exports an IFS directory named: /RJSIMAGEDOCNFS with a share name of /RJSIMAGEDOCNFS.
Make sure the IFS directory exists (Create only if it does not exist)
MKDIR DIR('/RJSIMAGEDOCNFS') DTAAUT(*RWX) OBJAUT(*ALL)
Export the IFS Directory as an NFS Share
CHGNFSEXP OPTIONS('-I -O RW=,ANON=0') DIR('/RJSIMAGEDOCNFS')
Start the NFS Server on the iSeries system where documents will be stored
Note: This startup command should be added to the iSeries system startup because the NFS server does not auto-start.
NFS Server Shutdown Steps
Stop the NFS server
Unsharing an IFS Folder via NFS
Unshare an IFS folder that has been shared via NFS
CHGNFSEXP OPTIONS('-U') DIR('/RJSIMAGEDOCNFS')
After unsharing an NFS folder the NFS Server should be stopped and re-started.
STRNFSSVR SERVER(*ALL)ENDNFSSVR SERVER(*ALL)
Using the NFS File Share from the System where WebDocs iSeries Edition is Installed
Mounting the shared drive from the iSeries system running the WebDocs iSeries Edition Software
Mounting the NFS Share from the 220.127.116.11 system where WebDocs is Running
DOCMOUNT HOST('18.104.22.168') NFSSHARE('/RJSIMAGEDOCNFS') IFSDIR('/RJSIMAGEDOCNFS') CRTDIR(*YES)
Unmounting the NFS Share from the 22.214.171.124 system where WebDocs is Running
Note: When creating a WebDocs virtual folder, you would use /RJSIMAGEDOCNFS as the IFS folder name to store documents.