IBM
Page
IBM
Second Edition May
Contents
Using the Network File System with AS/400 File Systems
NFS Startup, Shutdown, and Recovery
Client Mounting of File Systems
Integrated File System APIs and the Network File System
Readers Comments Ð Wed Like to Hear from You
Vi OS/400 Network File System Support V4R4
Figures
Viii OS/400 Network File System Support V4R4
Tables
OS/400 Network File System Support V4R4
About OS/400 Network File System Support SC41-5714
Who should read this book
AS/400 Operations Navigator
Installing Operations Navigator
Prerequisite and related information
About OS/400 Network File System Support SC41-5714
Xiv OS/400 Network File System Support V4R4
Summary of Changes
Xvi OS/400 Network File System Support V4R4
What is the Network File System?
Introduction
Local client mounts data from a remote server
Brief History
Network File System as a File System
Stateless Network Protocol
Overview of the Tulab Scenario
Tulab network namespace
OS/400 Network File System Support V4R4
Network File System Client/Server Model
Network File System Client/Server Communication Design
Network File System Process Layout
Network File System Stack Description
AS/400 as a Network File System Server
Network File System Server-Side Daemons
RPC Binder Daemon Rpcd
NFS Server Daemons Nfsd
Mount Daemon Mntd
AS/400 as a Network File System Client
Network Status Monitor Daemon Nsmd
Network Lock Manager Daemon Nlmd
Network File System Client-Side Daemons
NFS Client-Side Caches
Block I/O Daemon Biod
Directory and File Attribute Cache
Data cache
Client Timeout
Data Cache
NFS and the User-Dened File System Udfs
User File System Management
Create a User-Dened File System
Restrictions
Crtudfs Display
Examples
Example 1 Create Udfs in System ASP on TULAB2
Example 2 Create Udfs in user ASP on TULAB2
Display a User-Dened File System
Dspudfs Display
Delete a User-Dened File System
Example
Display Udfs in user ASP on TULAB2
Mount a User-Dened File System
Dltudfs Display
Unmount and Delete a Udfs in the user ASP on TULAB2
Unmount a User-Dened File System
ADDMFS/MOUNT Display
RMVMFS/UNMOUNT Display
Mount and Export a Udfs on TULAB2
Saving and Restoring a User-Dened File System
Graphical User Interface
Windows 95 view of using the Dspudfs Display Udfs command
User-Dened File System Functions in the Network File System
Using User-Dened File Systems with Auxiliary Storage Pools
Recovery with the Network File System
Exportfs OPTIONS-I -O ROOT=TUclient52X DIR/DEV
What is Exporting?
Server Exporting of File Systems
Why Should I Export?
Tulab Scenario
What File Systems Can I Export?
Before the server has exported information
How Do I Export File Systems?
Rules for Exporting File Systems
Sub-directory exists on a different local le system
Chgnfsexp Change Network File System Export Command
Purpose
CHGNFSEXP/EXPORTFS Display
Change NFS Export Chgnfsexp
Example 1 Exporting all entries from /etc/exports
Example 2 Exporting one directory with options
Exporting from Operations Navigator
Example 3 Exporting a directory to many netgroups
Example 4 Forcing read-only permissions on an export
Operations Navigator interface
Click Customize to congure thePath Code Page and Data Code
Finding out what is exported
Operations Navigator
Unix showmount command
Retrieve Network File System Export Entries Qznfrtve API
Mounted File System Loops Solution
Symbolic Links
Exporting Considerations
Mounted File System Loops
What Is Mounting?
Client Mounting of File Systems
Local client mounting le systems from a remote server
Why Should I Mount File Systems?
Local client mounts over a high-level directory
Where Can I Mount File Systems?
What File Systems Can I Mount?
Network File Systems
User-Dened File Systems
Views of the local client and remote server
Remote server exports /engdata
Addmfs Add Mounted File System Command
Mount Points
How Do I Mount File Systems?
Using the Add Mounted FS Addmfs display
Graphical User Interface
Example 1 Mounting a User-Dened File System
Example 2 Mounting a Network File System from TULAB2
Example 3 Mounting a Network File System with Options
Rmvmfs Remove Mounted File System Command
Example 4 Mounting a NetWare File System with Options
Using the Remove Mounted FS Rmvmfs display
Dspmfsinf Display Mounted File System Information Command
DSPMFSINF/STATFS Display
Example 1 Unmounting a Directory
Example 2 Unmounting a User-Dened File System
Using the Display Mounted FS Information Dspmfsinf display
Display Mounted FS Information Dspmfsinf output 1/2
Example 1 Displaying Statistics of a Mounted File System
Example 2 Displaying /QSYS.LIB File System Statistics
54 OS/400 Network File System Support V4R4
Using the Network File System with AS/400 File
Systems
″Root″ File System
Network File System Differences
Open Systems File System QOpenSys
Case-Sensitivity
Read/Write Options
Library File System QSYS.LIB
Exporting and QSYS.LIB
Qpwfserver Authorization List
Mounting and QSYS.LIB
Support for User Spaces
File Modes of Database Members
Byte-Range Locks
Document Library Services File System Qdls
Mounting and Qdls
File Creation
Path Name Length
Optical File System Qopt
Mounting and Qopt
Security and Authorization
User-Dened File System Udfs
System and User Auxiliary Storage Pools
Directory Authority
64 OS/400 Network File System Support V4R4
NFS Startup, Shutdown, and Recovery
Conguring TCP/IP
Implications of Improper Startup and Shutdown
Proper Startup Scenario
Strnfssvr Start Network File System Server Command
Displaying NFS Server Daemons
Status Consideration
Strnfssvr Display
Example 1 Start All NFS Daemons
Example 2 Start Only One Daemon
Endnfssvr End Network File System Server Command
TCP/UDP Timeout Con¯ict
Proper Shutdown Scenario
Shutdown Consideration
Displaying NFS Client Daemons
Endnfssvr Display
Starting or stopping NFS from Operations Navigator
Example 1 End All Daemons
Example 2 End a Single Daemon
Start Operations Navigator
This brings up the following dialog box
Locks and Recovery
Why Should I Lock a File?
How Do I Lock a File?
Stateless System Versus Stateful Operation
Rlsifslck Release Integrated File System Locks Command
Rlsifslck Display
Example 1 Releasing Locks for a Remote Client
Example 2 Releasing Locks for a Local Object
Integrated File System APIs and the Network File System
Client Timeout Solution
Open, create, and mkdir APIs
Fcntl API
Unchanged APIs
80 OS/400 Network File System Support V4R4
Network File System Security Considerations
Trusted Community
Network Data Encryption
User Authorities
User Identications UIDs
Group Identications GIDs
Administrating User Identications
Mapping User Identications
Potential User Identication Mapping Scenarios
UID Mapping Examples
Proper UID Mapping
Securely Exporting File Systems
Export Options
Exporting to ″The World″
Root User Mappings
90 OS/400 Network File System Support V4R4
Appendix A. Summary of Common Commands
Command Description
92 OS/400 Network File System Support V4R4
Editing stream les by using the Edit File Edtf command
Appendix B. Understanding the /etc Files
Editing les within the /etc directory
Absolute Path Name
Editing stream les by using a PC based editor
Editing stream les by using a Unix editor via NFS
Etc/exports File
Formatting Entries in the /etc/exports File
Formatting the Hostopt Host Options Parameter
HostName
PathNameCodePage
DataFileCodePage
Examples of Formatting /etc/exports with Hostopt Parameter
Etc/netgroup File
Example 1 Exporting to a host and specifying all options
Netgroup-name host-name,user-name,domain-name
Etc/rpcbtab File
Etc/statd File
Host-name
User-name
98 OS/400 Network File System Support V4R4
Copyright IBM Corp
Copyright License
Programming Interface Information
Trademarks
102 OS/400 Network File System Support V4R4
Bibliography
CL Reference, SC41-4722
104 OS/400 Network File System Support V4R4
Index Special Characters
Qsychgid
Caches 14 Denition Directory and le attribute cache
Error Conditions Estale error condition
Order of shutdown
74, 9, 10, 11, 12, 13, 14
Qsychgid API
Startup
Case-sensitivity Network File System functions
Readers Comments Ð Wed Like to Hear from You
How satised are you that the information in this book is
Business Reply Mail
Page
Ibmr
IBM