I doubt there is a way to really know who is using a preset mount. They
just use the GID/UID from the mount command.

I set up a mount for /home/anyone using profile anyone (UID 21567/GID
21999). Then other folks access the files in that mounted directory. They
are going to do it as profile anyone, not their own profile. The target
must have UID/GID that is the same as anyuser, but it could be any other
profile, as long as the GID/UID are the same.

--
Jim Oberholtzer
Chief Technical Architect
Agile Technology Architects


On Wed, Nov 3, 2021 at 12:08 PM Rob Berendt <rob@xxxxxxxxx> wrote:

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

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.