[Lustre-discuss] LSOF for Lustre

Andreas Dilger adilger at whamcloud.com
Thu Dec 15 16:25:02 PST 2011


On 2011-12-15, at 4:34 PM, Mark Day wrote:
> We'd like to know what files are currently being accessed on an OST from all clients. 
> Is it possible to query the MDS/T or OSS/T for this information?

The OST doesn't have any open/close information.

As yet there is no open file information accessible on the MDT by
userspace, though this is something that has been requested in the
past and probably makes sense to implement at some point.

> From: "Peter Kjellström" <cap at nsc.liu.se>
> To: lustre-discuss at lists.lustre.org
> Sent: Thursday, 15 December, 2011 11:29:46 PM
> Subject: Re: [Lustre-discuss] LSOF for Lustre
> 
> On Thursday, December 15, 2011 02:49:41 AM Mark Day wrote:
> > Hi,
> > 
> > Is there a lustre tool similar to LSOF -N (for NFS) to help identify open
> > files on an OSS/OST ? We are seeing some unusual load patterns and have
> > run out of ideas on diagnosing it and tracing the issue back to the
> > source.
> 
> Exactly what are you looking for?
> 
> The -N option to lsof is nothing special (adds no NFS specific data) other 
> than displaying only NFS files. If this is what you're looking for then you 
> can simply give lsof the mountpoint to your lustre filesystem:
> 
>  "lsof /path/to/lustre" (Note: trailing / not allowed)
> 
> and only open files on that filesystem will be shown. Without any options lsof 
> will show open files on any type of filesystem.
> 
> /Peter
> 
> _______________________________________________
> Lustre-discuss mailing list
> Lustre-discuss at lists.lustre.org
> http://lists.lustre.org/mailman/listinfo/lustre-discuss
> 
> _______________________________________________
> Lustre-discuss mailing list
> Lustre-discuss at lists.lustre.org
> http://lists.lustre.org/mailman/listinfo/lustre-discuss


Cheers, Andreas
--
Andreas Dilger 
Principal Engineer
Whamcloud, Inc.






More information about the lustre-discuss mailing list