Hi Chris
there is an 'API' to find locks on IFS objects, I never tryed it in this
particular case, but it could do the job...
CALL PGM(QP0FPTOS) PARM(*LSTOBJREF '/RMTHC01' *FORMAT2)
this will produce a spooled file with more information about the locks...
NETSTAT cannot help as the connection is probably closed by the
NAS/network problem...
the difference betwwen hard and soft is in the doc..
http://www.ibm.com/support/knowledgecenter/ssw_ibm_i_61/cl/mount.htm
hard|soft
For the mount of a Network File System, specifies whether NFS file systems
are hard or soft mounted. Hard mounted means that operations on them are
retried until they are acknowledged by the server. Soft mounted means that
a timeout error is returned if a remote operation fails the number of
times specified on the retrans option. If neither is specified, hard is
assumed.
From: Chris Bipes <chris.bipes@xxxxxxxxxxxxxxx>
To: "'Midrange Systems Technical Discussion'"
<midrange-l@xxxxxxxxxxxx>
Date: 20/09/2016 21:14
Subject: RE: UNMOUNT *NFS SHARE - OBJECT IN USE
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
Here is the mount command I use: MOUNT TYPE(*NFS) MFS('CCiNAS1:/IMSHCS01')
MNTOVRDIR('/RMTHC01')
I just take the defaults. If prompted it looks like this:
Mount options . . . . . . . . .
'rw,suid,retry=5,rsize=32768,wsize=32768,timeo=20,retrans=5,acregmin=30,acregmax=60,acdirmin=30,acdirmax=60,hard,async,sec=s
ys,vers=3:2,nocache'
Guess the "hard" keyword makes it a hard mount. So can I ask this, why
would one use soft over hard? What is the difference?
Chris Bipes
Director of Information Services
CrossCheck, Inc.
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Paul Roy
Sent: Tuesday, September 20, 2016 11:54 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: RE: UNMOUNT *NFS SHARE - OBJECT IN USE
NFS recovery and error handling can be tricky... Depending on how you
mounted the share (soft or hard) the situation could be very different.
for example if you use 'hard mount' , the stat() function is just waiting
infinetly that the NAS is available...
I would then suggest to try to find the job that use NFS and end it
immediately...
Paul
As an Amazon Associate we earn from qualifying purchases.