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