Thursday, February 9, 2017

Check if the file is on a NFS mount or on local filesystem mount

How to know if the file is available on a NFS mount or is part of the local filesystem mount?

df -PT <filename>

Eg: df -PT my_application.log
Filesystem    Type 1024-blocks      Used Available Capacity Mounted on
nfsbackup100.in.local:/my_app_log nfs 734003200 610560920 123442280      84% /a/nfsbackup30/my_app_log

So the above file my_application.log belongs to NFS mount

No comments:

Post a Comment