identify fs using a particular port
Subsystems (2)
Silly question that I can't find the answer to... is it possible to identify which mounted filesystem is using a particular port?
$ netstat -an | grep :782
tcp 0 0 10.125.0.200:782 10.125.0.193:2049 ESTABLISHED
^^^ I need this port for another daemonI have a 14 filesystems mounted from that machine, all busy with user processes. So I'm trying to figure out which filesystem needs to be unmounted to free port 782.
Signature · 2 lines
Garrick Staples, Linux/HPCC Administrator University of Southern California
If it's an rpc service, you can likely get what's using the port from rpcinfo -p.
If it's not an rpc service, you may be able to get it from /etc/services.
Also check out netstat -p.
Quoted 10 lines · Garrick Staples
Silly question that I can't find the answer to... is it possible to identify which mounted filesystem is using a particular port?
$ netstat -an | grep :782 tcp 0 0 10.125.0.200:782 10.125.0.193:2049 ESTABLISHED ^^^ I need this port for another daemonI have a 14 filesystems mounted from that machine, all busy with user processes. So I'm trying to figure out which filesystem needs to be unmounted to free port 782.
Signature · 1 line
Dan Stromberg DCS/NACS/UCI <[email protected]>
On Fri, Oct 08, 2004 at 02:31:15PM -0700, Dan Stromberg alleged:
Quoted 3 lines
If it's an rpc service, you can likely get what's using the port from rpcinfo -p.
NFS clients don't register themselves as an RPC server in portmapper.
Quoted 4 lines
If it's not an rpc service, you may be able to get it from
/etc/services.Also check out netstat -p.
I already know it is a kernel nfs thread, but that doesn't tell me which filesystem.
Quoted 14 lines · Garrick Staples
Quoted 10 lines
Silly question that I can't find the answer to... is it possible to identify which mounted filesystem is using a particular port?
$ netstat -an | grep :782 tcp 0 0 10.125.0.200:782 10.125.0.193:2049 ESTABLISHED ^^^ I need this port for another daemonI have a 14 filesystems mounted from that machine, all busy with user processes. So I'm trying to figure out which filesystem needs to be unmounted to free port 782.
Signature · 1 line
Dan Stromberg DCS/NACS/UCI <[email protected]>
Signature · 2 lines
Garrick Staples, Linux/HPCC Administrator University of Southern California
Quoted 8 lines · Garrick Staples
On Fri, Oct 08, 2004 at 02:31:15PM -0700, Dan Stromberg alleged:
Quoted 3 lines
If it's an rpc service, you can likely get what's using the port from rpcinfo -p.
NFS clients don't register themselves as an RPC server in portmapper.
Quoted 7 lines
Quoted 4 lines
If it's not an rpc service, you may be able to get it from
/etc/services.Also check out netstat -p.
I already know it is a kernel nfs thread, but that doesn't tell me which filesystem.
OK. How about firing up a tethereal/ethereal on that port, and watching for filenames going by?
Quoted 15 lines
Quoted 15 lines · Garrick Staples
Quoted 10 lines
Silly question that I can't find the answer to... is it possible to identify which mounted filesystem is using a particular port?
$ netstat -an | grep :782 tcp 0 0 10.125.0.200:782 10.125.0.193:2049 ESTABLISHED ^^^ I need this port for another daemonI have a 14 filesystems mounted from that machine, all busy with user processes. So I'm trying to figure out which filesystem needs to be unmounted to free port 782.
Signature · 1 line
Dan Stromberg DCS/NACS/UCI <[email protected]>
Signature · 1 line
Dan Stromberg DCS/NACS/UCI <[email protected]>