[ale] SLES 11 SP4 df
Brian Stanaland
brian at stanaland.org
Fri Aug 26 14:32:03 EDT 2016
Thanks everyone. My customer was using the df command to troubleshoot NFS
issues. They relied on df getting stuck to tell them there was a file
system issue. While it worked it was definitely not the intended use for
df. This will probably come down to "use something else" for that.
--Brian
On Fri, Aug 26, 2016 at 12:49 PM, Niel Bornstein <nbornstein at gmail.com>
wrote:
> From browsing the source code and talking with engineering, it looks
> like df calls read_file_system_list() to get the list of mounted
> filesystems and calls getmntent() on each one, and then df itself
> converts the mount_entry struct into something human-readable. df itself
> doesn't go through the filesystems one at a time. So like any other
> process, if read_file_system_list() attempts i/o to a filesystem, it
> will go into uninterruptible sleep until the i/o completes.
>
> There is a -l option to just show local filesystems, if that helps.
>
> Niel
>
> On 08/25/2016 07:23 PM, Brian Stanaland wrote:
> > Has anyone run across this situation?
> >
> > It seems the df command in sles 11 sp4 stats all the filesystems before
> > displaying anything. This means that when it gets stuck on a network
> > file system it just stops doing anything. It's waiting for a reply from
> > the file system that will never come. The user knows something is wrong
> > but if it displayed results as it went along, they'd know which file
> > system isn't responding.
> >
> > --Brian
> >
> > --
> > "Anyone who has never made a mistake has never tried anything new."
> > -Albert Einstein
> >
> >
> >
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://mail.ale.org/mailman/listinfo/ale
> > See JOBS, ANNOUNCE and SCHOOLS lists at
> > http://mail.ale.org/mailman/listinfo
> >
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
--
"Anyone who has never made a mistake has never tried anything new." -Albert
Einstein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20160826/08526fca/attachment.html>
More information about the Ale
mailing list