<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-02-08 15:35 GMT+01:00 Brian Foster <span dir="ltr"><<a href="mailto:bfoster@redhat.com" target="_blank">bfoster@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><span class="">On Mon, Feb 08, 2016 at 02:09:15PM +0100, Michel Verbraak wrote:<br>
> 2016-02-05 23:30 GMT+01:00 Dave Chinner <<a href="mailto:david@fromorbit.com">david@fromorbit.com</a>>:<br>
><br>
> > On Fri, Feb 05, 2016 at 02:13:00PM +0100, Michel Verbraak wrote:<br>
> > > All,<br>
> > ><br>
> > > Recently we ran into a problem where our filesystem (300GB in size)<br>
> > > reported 'no space left on device' (ENOSPC) but when we looked at disk<br>
> > > space usage and inode usage it was around 52% for disk space and 11% for<br>
> > .......<br>
><br>
><br>
> ><br>
> > > Store 03 (root@server):~# xfs_db -c freesp /dev/sdb<br>
> > >    from      to extents  blocks    pct<br>
> > >       1       1 3282633 3282633   9.03<br>
> > >       2       3 3416223 8372325  23.03<br>
> > >       4       7 6175009 24700036  67.94<br>
> ><br>
> > Yup, no more aligned 4 block extents in the filesystem.<br>
> ><br>
> > Dave Thank you for your answer but are you able to explain a bit more on<br>
> how you determine there are no aligned 4 block extends available?<br>
> It apparently is not the 'from 4 to 7' line telling there are at least<br>
> continuous extents of 4 blocks big. Or is it because 24700036 divided<br>
> by 6175009<br>
> is exactly 4 and not a bit more?<br>
> When I calculate the ratio between the individual AG freesp they were all<br>
> four exactly 4.<br>
><br>
<br>
</span>I'm not sure there is a way to determine whether these extents are<br>
aligned or not short of walking the free space btree structures with<br></div>
..<snip> </blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
BTW, a metadump of your fs while it's in this ENOSPC state would be<br>
useful towards testing something like that, if you'd be willing to<br>
provide one. Note that xfs_metadump has obfuscation that hides filenames<br>
and whatnot for privacy purposes.<br>
<br></div></blockquote><div>If we do run into problem again, we do hope not as it is on a production system, we will create the xfs_metadump and provide it to this list.<br><br></div><div>Thank you for the extra explanation.<br><br></div><div>Cheers Michel.<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
Brian<br>
<span class=""><br>
> As said we would like to detect this problem from happening again. And we<br>
> would like this detection to be done by our monitoring service.<br>
> One of my colleagues mentions the following calculation to find out if<br>
> there are enough aligned 4 block extents:<br>
><br>
> Starting from line "from 4 to 7" calculate: <blocks-column> - (4 *<br>
> <extents-column>) > 0. When not there is not enough free space for new<br>
> inodes.<br>
><br>
> On another system we have which does not see these problems yet we have:<br>
><br>
>    from      to extents  blocks    pct<br>
>       1       1 3483987 3483987   7.83<br>
>       2       3 3560607 8709838  19.58<br>
>       4       7 6402893 26486634  59.55<br>
>       8      15  418450 5799206  13.04<br>
><br>
> 26486634 / 6402893 = 4.136666 and<br>
> 26486634 - (4 * 6402893) = 875062 > 0 and<br>
> 5799205 - (4 * 418450) = 4125405 > 0<br>
><br>
><br>
> > into this condition.<br>
> ><br>
> > Cheers,<br>
> ><br>
> > Dave.<br>
> > --<br>
> > Dave Chinner<br>
> > <a href="mailto:david@fromorbit.com">david@fromorbit.com</a><br>
> ><br>
><br>
> Michel.<br>
<br>
</span>> _______________________________________________<br>
> xfs mailing list<br>
> <a href="mailto:xfs@oss.sgi.com">xfs@oss.sgi.com</a><br>
> <a href="http://oss.sgi.com/mailman/listinfo/xfs" rel="noreferrer" target="_blank">http://oss.sgi.com/mailman/listinfo/xfs</a><br>
<br>
</div></blockquote></div><br></div></div>