Thread View: muc.lists.freebsd.current
1 messages
1 total messages
Started by Warner Losh
Fri, 23 Oct 2026 18:28
Re: Filesystem errors on armv7 -current
Author: Warner Losh
Date: Fri, 23 Oct 2026 18:28
Date: Fri, 23 Oct 2026 18:28
417 lines
23689 bytes
23689 bytes
--0000000000009978ae065e862699 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Oct 23, 2026 at 11:42=E2=80=AFAM Mark Millard <marklmi@yahoo.com> w= rote: > On 10/23/26 09:37, bob prohaska wrote: > > On Thu, Oct 22, 2026 at 11:23:35PM -0700, Mark Millard wrote: > >> On 10/22/26 19:26, bob prohaska wrote: > >>> On Thu, Oct 22, 2026 at 06:40:02PM -0700, Mark Millard wrote: > >>>> On 10/22/26 18:03, bob prohaska wrote: > >>>>> On Thu, Oct 22, 2026 at 02:45:53PM -0700, Bakul Shah wrote: > >>>>>> On Oct 22, 2026, at 6:35=E2=80=AFAM, bob prohaska <fbsd@www.zefox.= net> > wrote: > >>>>>>> > >>>>>>> On Wed, Oct 21, 2026 at 10:32:07PM -0700, Bakul Shah wrote: > >>>>>>>> > >>>>>>>> One can buy a cheap inline USB power meter or tester to see > >>>>>>>> what sort of voltage/current is in use. Fancier ones such as > >>>>>>>> FNIRSI FNB48P that will let you see a realtime graph of > >>>>>>>> voltage/current at various sampling rates + you can upload > >>>>>>>> this data (+ there is vibe coded s/w to run on linux/mac for > >>>>>>>> this as well). Very useful for debugging this sort of > >>>>>>>> problems. > >>>>>>> > >>>>>>> I have chopped a USB cable to bring out the power leads and > >>>>>>> connected them to a voltmeter in the past. That would seem > >>>>>>> adequate to identify a faulty power supply. I haven't tried > >>>>>>> it in this specific case, but given the absence of messages > >>>>>>> from umass other than those at boot, is there any point? > >>>>>> > >>>>>> The boot umass messages were fine. > >>>>>> > >>>>>> The problem is you are dealing with potentially marginal > >>>>>> devices that may misbehave under load and no guarantee that > >>>>>> software or firmware will catch such errors. By default the > >>>>>> pi2b limits total current (across all 4 USB ports) to 600 > >>>>>> mA. You can add 'max_usb_current=3D1' to config.txt to > >>>>>> increase it to 1.2A (IIRC) - provided Pi's power supply is > >>>>>> capable. [Some earlier HDD USB disks came up with weird USB > >>>>>> cables for plugging into *two* ports to get enough power!] > >>>>>> > >>>>>> It may be that the problem you're seeing is software related > >>>>>> but such USB measurements can clearly eliminate power as an > >>>>>> issue. > >>>>> > >>>>> The disk is not powered by the Pi2, but rather by its own > >>>>> powered hub. A USB cable plugged into the hub shows 5.15 > >>>>> volts on a DVM, an oscilloscope reveals fluctuations down > >>>>> to about 4.86 volts over tens of milliseconds. ISTR the Pi > >>>>> should work down to about 4.75 volts, haven't found a number > >>>>> for the disk. > >>>>> > >>>>> Just for fun, I wiggled the DC jack on the powered hub and > >>>>> the DC voltage came up to 5.23 volts with about 70 mV P-P > >>>>> of roughly 2 kHz hash on the line. Maybe that's the switching > >>>>> frequency, I've never made this measurement before. > >>>>> > >>>>> The machine is still running buildworld, so far without obvious > >>>>> errors or faults. > >>>> > >>>> Failing parts of the disk that are supposed to have directory relate= d > >>>> content but that are not being accessed are not going to report thos= e > >>>> known errors. > >>>> > >>>> A more effective test would be something that would read every (most > >>>> every?) block of the disk and report any failed-to-read blocks. (I > limit > >>>> to read only testing to avoid destroying data. Other than if you hav= e > >>>> atime updating enabled, find likely would be complaining about read > >>>> activity to exclusion as well --but on a subset of the blocks.) > >>> > >>> For the moment I'm more concerned about the amount of noise/hash > >>> on the power supply lines. A similar measurement on a second Pi2B > >>> setup seems to show about an order of magnitude less rubbish. I > >>> don't know how much is too much, but the troublesome Pi/hub/disk > >>> is quite noticeably worse than the second one tested. The comparison > >>> hasn't been done with enough care yet to have much confidence > >>> either way, I hope to remedy that situation in the next few days. > >>> > >>> If you're suggesting the disk itself might be the culprit, that's > >>> something I hadn't considered until just now....hmmmm. > >> > >> I've been suggesting that since you supplied a log file that showed > >> multiple, distinct find commands getting the same error messages for t= he > >> same files, the messages indicating EIO class errors. The repetition v= ia > >> ls then indicating more repeatability and that the disk space for such > >> examples happens to be for directory related information, not data fi= le > >> content. > >> > >> You also had reported corrupt data file content. > >> > >> Warner also suggested such, if I remember right. > >> > >> (None of that addresses how the errors got there, just that they are n= ow > >> there --and visible as long as you do not delete the files or cause th= em > >> to land in lost+found/ or such.) > > > > To address the "how" issue I've put traces of power supply voltage > > from both the troublesome host and one that seems to work better. > > The traces and a readme file are at > > http://www.zefox.net/~fbsd/rpi2/disktrouble/ > > QUOTE > The "badpower" host seems to experience subtle corruption but not > outright failures > END QUOTE > > Getting EIO errors is not something that I would call subtle. As I > understand, EIO indicates that the drive's internal controller reported > that it could not deal with what is happening. The problem is not just > some number of bits of user data having the wrong value compared to what > was originally intended to be written. The problem is an outright error > as I understand. > EIO is complicated. And comes from many sources. And knowing what the exact details matters. EIO might mean that we tried and tried and the drive tried and tried and that we just couldn't read the sectors. It could also mean that the connection to the drive had issues. > Remember that you have repeatable EIO errors for the same directory > accesses (as long as to do not change where the directories are stored). > I've not seen the CAM messages from these to know if this is a bad spot on the disk, or if I'm postulating that the power needed to access those sectors is too much. But being repeatable biases towards the 'drive wrote the data in a way it can't read it now' end of the spectrum. Warner > > > > There's a definite difference in waveform, but never having looked > > at this sort of data before it's unclear to me if the difference > > matters, it's much less than I initially thought. > > An interesting test could be swapping which RPi2B is used with which USB > drive: does the problem stay with the same RPi2B? With the same USB > drive? (This wording is just suggestive since there are more stages of > connections (USB and Power) and more swapping of combinations is > possible than I listed.) > > If you can isolate a device/cable/power/??? that the signal noise level > follows, it might contribute to learning some of what to replace. > > > > > Thanks for reading! > > > > bob prohaska > > > > > > > > > -- > =3D=3D=3D > Mark Millard > marklmi at yahoo.com > > --0000000000009978ae065e862699 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote g= mail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Oct 23,= 2026 at 11:42=E2=80=AFAM Mark Millard <<a href=3D"mailto:marklmi@yahoo.= com">marklmi@yahoo.com</a>> wrote:<br></div><blockquote class=3D"gmail_q= uote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,2= 04);padding-left:1ex">On 10/23/26 09:37, bob prohaska wrote:<br> > On Thu, Oct 22, 2026 at 11:23:35PM -0700, Mark Millard wrote:<br> >> On 10/22/26 19:26, bob prohaska wrote:<br> >>> On Thu, Oct 22, 2026 at 06:40:02PM -0700, Mark Millard wrote:<= br> >>>> On 10/22/26 18:03, bob prohaska wrote:<br> >>>>> On Thu, Oct 22, 2026 at 02:45:53PM -0700, Bakul Shah w= rote:<br> >>>>>> On Oct 22, 2026, at 6:35=E2=80=AFAM, bob prohaska = <<a href=3D"mailto:fbsd@www.zefox.net" target=3D"_blank">fbsd@www.zefox.= net</a>> wrote:<br> >>>>>>><br> >>>>>>> On Wed, Oct 21, 2026 at 10:32:07PM -0700, Baku= l Shah wrote:<br> >>>>>>>><br> >>>>>>>> One can buy a cheap inline USB power meter= or tester to see<br> >>>>>>>> what sort of voltage/current is in use. Fa= ncier ones such as<br> >>>>>>>> FNIRSI FNB48P that will let you see a real= time graph of<br> >>>>>>>> voltage/current at various sampling rates = + you can upload<br> >>>>>>>> this data (+ there is vibe coded s/w to ru= n on linux/mac for<br> >>>>>>>> this as well). Very useful for debugging t= his sort of<br> >>>>>>>> problems.<br> >>>>>>><br> >>>>>>> I have chopped a USB cable to bring out the po= wer leads and<br> >>>>>>> connected them to a voltmeter in the past. Tha= t would seem<br> >>>>>>> adequate to identify a faulty power supply. I = haven't tried<br> >>>>>>> it in this specific case, but=C2=A0 given the = absence of messages<br> >>>>>>> from umass other than those at boot, is there = any point?<br> >>>>>><br> >>>>>> The boot umass messages were fine.<br> >>>>>><br> >>>>>> The problem is you are dealing with potentially ma= rginal<br> >>>>>> devices that may misbehave under load and no guara= ntee that<br> >>>>>> software or firmware will catch such errors. By de= fault the<br> >>>>>> pi2b=C2=A0 limits total current (across all 4 USB = ports) to 600<br> >>>>>> mA.=C2=A0 You can add 'max_usb_current=3D1'= ; to config.txt to<br> >>>>>> increase it to 1.2A (IIRC) - provided Pi's pow= er supply is<br> >>>>>> capable.=C2=A0 [Some earlier HDD USB disks came up= with weird USB<br> >>>>>> cables for plugging into *two* ports to get enough= power!]<br> >>>>>><br> >>>>>> It may be that the problem you're seeing is so= ftware related<br> >>>>>> but such USB measurements can clearly eliminate po= wer as an<br> >>>>>> issue.<br> >>>>><br> >>>>> The disk is not powered by the Pi2, but rather by its = own <br> >>>>> powered hub.=C2=A0 A USB cable plugged into the hub sh= ows 5.15 <br> >>>>> volts on a DVM, an oscilloscope reveals fluctuations d= own <br> >>>>> to about 4.86 volts over tens of milliseconds. ISTR th= e Pi<br> >>>>> should work down to about 4.75 volts, haven't foun= d a number<br> >>>>> for the disk.<br> >>>>><br> >>>>> Just for fun, I wiggled the DC jack on the powered hub= and<br> >>>>> the DC voltage came up to 5.23 volts with about 70 mV = P-P<br> >>>>> of roughly 2 kHz hash on the line. Maybe that's th= e switching<br> >>>>> frequency, I've never made this measurement before= .<br> >>>>><br> >>>>> The machine is still running buildworld, so far withou= t obvious<br> >>>>> errors or faults.<br> >>>><br> >>>> Failing parts of the disk that are supposed to have direct= ory related<br> >>>> content but that are not being accessed are not going to r= eport those<br> >>>> known errors.<br> >>>><br> >>>> A more effective test would be something that would read e= very (most<br> >>>> every?) block of the disk and report any failed-to-read bl= ocks. (I limit<br> >>>> to read only testing to avoid destroying data. Other than = if you have<br> >>>> atime updating enabled, find likely would be complaining a= bout read<br> >>>> activity to exclusion as well --but on a subset of the blo= cks.)<br> >>><br> >>> For the moment I'm more concerned about the amount of nois= e/hash<br> >>> on the power supply lines. A similar measurement on a second P= i2B<br> >>> setup seems to show about an order of magnitude less rubbish. = I<br> >>> don't know how much is too much, but the troublesome Pi/hu= b/disk<br> >>> is quite noticeably worse than the second one tested. The comp= arison<br> >>> hasn't been done with enough care yet to have much confide= nce<br> >>> either way, I hope to remedy that situation in the next few da= ys.<br> >>><br> >>> If you're suggesting the disk itself might be the culprit,= that's<br> >>> something I hadn't considered until just now....hmmmm.<br> >><br> >> I've been suggesting that since you supplied a log file that s= howed<br> >> multiple, distinct find commands getting the same error messages f= or the<br> >> same files, the messages indicating EIO class errors. The repetiti= on via<br> >> ls then indicating more repeatability and that the disk space for = such<br> >> examples happens to be for directory related=C2=A0 information, no= t data file<br> >> content.<br> >><br> >> You also had reported corrupt data file content.<br> >><br> >> Warner also suggested such, if I remember right.<br> >><br> >> (None of that addresses how the errors got there, just that they a= re now<br> >> there --and visible as long as you do not delete the files or caus= e them<br> >> to land in lost+found/ or such.)<br> > <br> > To address the "how" issue I've put traces of power supp= ly voltage<br> > from both the troublesome host=C2=A0 and one that seems to work better= .<br> > The traces and a readme file are at<br> > <a href=3D"http://www.zefox.net/~fbsd/rpi2/disktrouble/" rel=3D"norefe= rrer" target=3D"_blank">http://www.zefox.net/~fbsd/rpi2/disktrouble/</a><br= > <br> QUOTE<br> The "badpower" host seems to experience subtle corruption but not= <br> outright failures<br> END QUOTE<br> <br> Getting EIO errors is not something that I would call subtle. As I<br> understand, EIO indicates that the drive's internal controller reported= <br> that it could not deal with what is happening. The problem is not just<br> some number of bits of user data having the wrong value compared to what<br= > was originally intended to be written. The problem is an outright error<br> as I understand.<br></blockquote><div><br></div><div>EIO is complicated. An= d comes from many sources. And knowing what the exact details</div><div>mat= ters.</div><div><br></div><div>EIO might mean that we tried and tried and t= he drive tried and tried and that we just</div><div>couldn't read the s= ectors.</div><div><br></div><div>It could also mean that the connection to = the drive had issues.</div><div>=C2=A0</div><blockquote class=3D"gmail_quot= e" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204)= ;padding-left:1ex"> Remember that you have repeatable EIO errors for the same directory<br> accesses (as long as to do not change where the directories are stored).<br= ></blockquote><div><br></div><div>I've not seen the CAM messages from t= hese to know if this is a bad spot on</div><div>the disk, or if I'm pos= tulating that the power needed to access those sectors</div><div>is too muc= h. But being repeatable biases towards the 'drive wrote the data</div><= div>in a way it can't read it now' end of the spectrum.</div><div><= br></div><div>Warner</div><div>=C2=A0</div><blockquote class=3D"gmail_quote= " style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);= padding-left:1ex"> > <br> > There's a definite difference in waveform, but never having looked= <br> > at this sort of data before it's unclear to me if the difference<b= r> > matters, it's much less than I initially thought. <br> <br> An interesting test could be swapping which RPi2B is used with which USB<br= > drive: does the problem stay with the same RPi2B? With the same USB<br> drive? (This wording is just suggestive since there are more stages of<br> connections (USB and Power) and more swapping of combinations is<br> possible than I listed.)<br> <br> If you can isolate a device/cable/power/??? that the signal noise level<br> follows, it might contribute to learning some of what to replace.<br> <br> > <br> > Thanks for reading!<br> > <br> > bob prohaska<br> > <br> > <br> > <br> <br> <br> -- <br> =3D=3D=3D<br> Mark Millard<br> marklmi at <a href=3D"http://yahoo.com" rel=3D"noreferrer" target=3D"_blank= ">yahoo.com</a><br> <br> </blockquote></div></div> --0000000000009978ae065e862699-- -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads