I have a sandbox lpar (GDI) exporting a directory for testing this issue.
EXPORTFS OPTIONS('-I -O') DIR('/tmp')
strNFSSVR SERVER(*ALL)

I have another lpar mounting over this
md '/gdi'
md '/gdi/tmp'
MOUNT TYPE(*NFS) MFS('gdi:/tmp') MNTOVRDIR('/gdi/tmp')
OPTIONS('rw,suid,retry=5,rsize=32768,wsize=32768,timeo=20,retrans=5,
acregmin=30,acregmax=60,acdirmin=30,acdirmax=60,soft,async,
sec=sys,vers=3:2,nocache')
Then I use it with:
edtf '/gdi/tmp/test.txt'

From another session I am trying to see if I can tell who is using that mount.

The following returns nothing:
SELECT * FROM TABLE(QSYS2.IFS_OBJECT_LOCK_INFO(PATH_NAME => '/gdi/tmp'));

The following returns data, but I may not know the exact file they are working on:
SELECT * FROM TABLE(QSYS2.IFS_OBJECT_LOCK_INFO(PATH_NAME => '/gdi/tmp/test.txt'));

This doesn't return a hit:
SELECT * FROM QSYS2.NETSTAT_INFO
WHERE REMOTE_ADDRESS = '10.10.6.144';
unless I start some other communication to that lpar.

The old Navigator has this:
https://www.ibm.com/docs/en/i/7.4?topic=i-working-dynamically-mounted-file-systems
But the new Navigator does not so I'm guessing there's currently no sql service for this information.
The information from the old Navigator does list the mount but does not say whether or not it is in use or by whom.

The problem is that if I go to unmount that, it pitches a fit because it is in use. I'm trying to figure out who is using it.


Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 7310 Innovation Blvd, Suite 104
Ft. Wayne, IN 46818
Ship to: 7310 Innovation Blvd, Dock 9C
Ft. Wayne, IN 46818
http://www.dekko.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.