On the Storage System (RDR400X)
In this example, we need to create a user profile on the
Storage System with the same UID as the instance profile on the Archive
System. Objects created on the Storage System will be owned by this
user profile. On the Archive System, QUSROND has a UID of 588. You
can use the Create User Profile (CRTUSRPRF) command as shown to create
the companion user profile on the Storage System. Note that we specify
the same language parameters as used on the Archive System.
CRTUSRPRF USRPRF(YQUSROND) USRCLS(*PGMR) INLPGM(*NONE) INLMNU(*SIGNOFF)
LMTCPB(*NO) TEXT('ONDEMAND NFS MOUNT PROFILE') SPCAUT(*IOSYSCFG
*JOBCTL *SAVSYS) GRPPRF(QRDARS400) LANGID(ENU) CNTRYID(US) CCSID(37)
CHRIDCTL(*JOBCCSID) SETJOBATR(*CCSID *DATFMT *DATSEP *DECFMT *SRTSEQ *TIMSEP)
LOCALE('/QSYS.LIB/EN_US.LOCALE') UID(588)
If the needed
UID is already in use, see Special consideration for UIDs for information on changing
the UID of an existing user profile.We then create the following
directories and subdirectories in IFS on the Storage System for use
with NFS:
/NFSSTG/YQUSROND/PRIMARY
/NFSSTG/YQUSROND/BACKUP
To automatically export the file systems when the NFS server is started, update the /etc/EXPORTS file in IFS on the Storage System (which is ABC in our example).
The /etc/EXPORTS file for our example would
look like the following:
/NFSSTG/YQUSROND/PRIMARY root=ABC.EXAMPLE.COM, \
access=ABC.EXAMPLE.COM, \
rw=ABC.EXAMPLE.COM \
#HOSTOPT HostName=ABC.EXAMPLE.COM, \
NoWaitForWrites
/NFSSTG/YQUSROND/BACKUP root=ABC.EXAMPLE.COM, \
access=ABC.EXAMPLE.COM, \
rw=ABC.EXAMPLE.COM \
#HOSTOPT HostName=ABC.EXAMPLE.COM, \
NoWaitForWrites
Start
the NFS servers using the Start NFS Server command:
STRNFSSVR SERVER(*ALL)
The
job log contains these messages:
Start of NFS server daemon or daemons of type *RPC was successful.
Start of NFS server daemon or daemons of type *BIO was successful.
2 entries exported, 0 entries not exported.
Start of NFS server daemon or daemons of type *SVR was successful.
Start of NFS server daemon or daemons of type *MNT was successful.
Start of NFS server daemon or daemons of type *NSM was successful.
Start of NFS server daemon or daemons of type *NLM was successful.
Start NFS server command completed successfully.
Notes:
- The user starting NFS servers must have input/output (I/O) system configuration (*IOSYSCFG) special authority to use this command.
- The user starting NFS servers must be enrolled in the system distribution directory. Use the Add Directory Entry (ADDDIRE) command to enroll the user.
To determine if an NFS server is running, use the Work
with Active Jobs (WRKACTJOB) command and look in the subsystem QSYSWRK
for existence of the following jobs:
- QNFSRPCD - the RPCBind daemon
- QNFSBIOD - the block I/O (BIO) daemon
- QNFSNFSD - the NFS server (SVR) daemon
- QNFSMNTD - the mount (MNT) daemon
- QNFSNSMD - the network status monitor (NSM) daemon
- QNFSNLMD - the network lock manager (NLM) daemon
If necessary, you can manually export or unexport the
directories. To export all entries in /etc/EXPORTS:
EXPORTFS OPTIONS('-A')
To
unexport all entries in /etc/EXPORTS:
EXPORTFS OPTIONS('-A -U')