[lustre-discuss] fstatfs with errno=EAGAIN on Lustre

John Bauer bauerj at iodoctors.com
Sun Apr 13 20:22:51 PDT 2025


Hi all,

I have run into an issue where a call to fstatfs for a file on a Lustre 
file system will occasionally return -1 with errno=11 , EAGAIN  
"Resource temporarily unavailable". Doing a man 2 fstatfs does not show 
EAGAIN as a potential errno for fstatfs.  Would this be a Lustre issue 
or kernel issue?

The following is a debug print I put in immediately after the fstatfs call.

-1=fstatfs(21) 
name=/nobackupp17/jbauer2/iolreader.22013671/floorpan_1mm.T17167_50.OBJSCR 
11 Resource temporarily unavailable

I fixed it by putting the call in ado { ret=fstatfs() } while(ret==-1 && 
errno==EAGAIN) loop with a counter.

Thanks,

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20250413/5cbd196a/attachment.htm>


More information about the lustre-discuss mailing list