🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.current
3 messages
3 total messages Started by Warner Losh Mon, 19 Oct 2026 17:31
Re: Filesystem errors on armv7 -current
#59
Author: Warner Losh
Date: Mon, 19 Oct 2026 17:31
352 lines
18977 bytes
--00000000000085ef09065e34e46b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Mon, Oct 19, 2026 at 11:16=E2=80=AFAM bob prohaska <fbsd@www.zefox.net> =
wrote:

> On Mon, Oct 19, 2026 at 09:57:34AM -0600, Warner Losh wrote:
> > On Mon, Oct 19, 2026 at 9:40=E2=80=AFAM bob prohaska <fbsd@www.zefox.ne=
t> wrote:
> >
> > > A Pi2B running
> > > FreeBSD pelorus.zefox.org 16.0-CURRENT FreeBSD 16.0-CURRENT #76
> > > main-n289925-6c305c3c3129: Sun Oct 11 15:20:02 PDT 2026
> > >  bob@pelorus.zefox.org:/usr/obj/usr/src/arm.armv7/sys/GENERIC arm
> armv7
> > > 1600027 1600028
> > >
> > > is reporting errors during installworld of the form
> > >
> > > /usr: inode 67896768: check-hash failed
> > >
> > > and
> > >
> > > UFS /dev/da0s2d (/usr) cylinder checkhash failed: cg 846, cgp:
> 0xce917fd
> > > !=3D bp: 0x4e2a15c5
> > >
> >
> > So this is a data corruption bug. Almost certainly. It may be related t=
o
> > caching (or memory observability), or it may be something else. If the
> > errors are on boot, then something is writing it before the system went
> > down. If this occurs at runtime, it is likely a transfer error.
> >
> >
> > > There's an old bug report,
> > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267654
> > >
> > > which looks somewhat similar but is marked "Closed FIXED".
> > >
> >
> > So symptoms may be the same, but the root cause is likely different.
> >
> >
> > > So far, the errors have not resulted in any build or install stoppage=
s,
> > > but the install and reboot haven't completed yet.
> > >
> > > Is it worth reporting this behavior as a new bug? Old bug? Other? Not=
?
> > >
> >
> > New bug. For the love of all that's holy, do not reopen the old bug.
> >
> 8-)
>
> >
> > > It's true that the kernel lags world by one index digit. Not sure how
> > > that happened.
> > >
> > > I can post console output, but it's mostly repetitive, as if the
> > > errors correct eventually or are ignored.
> > >
> > > /etc/fstab contains
> > >
> > > # more /etc/fstab
> > > # Custom /etc/fstab for FreeBSD embedded images
> > > #/dev/ufs/rootfs                /               ufs     rw
>   1
> > >             1
> > > #/dev/msdosfs/EFI               /boot/efi       msdosfs rw,noatime
>   0
> > >             0
> > > #tmpfs                  /tmp            tmpfs   rw,mode=3D1777    0
>  0
> > >
> > > /dev/da0s2a     /       ufs     rw      1       1
> > > /dev/da0s2d    /usr    ufs     rw      1       1
> > > /dev/da0s1      /boot/msdos msdosfs rw,noatime 0 0
> > > /dev/da0s2b     none    swap    sw
> > >
> > > Swap is
> > >
> > > # swapinfo
> > > Device          1K-blocks     Used    Avail Capacity
> > > /dev/da0s2b       1843200    15644  1827556     1%
> > > so below the warning limit
> > >
> > > The storage device is SATA spinning rust on
> > > ugen0.6: <JMS578 SATA 6Gb/s JMicron Technology Corp. / JMicron USA
> > > Technology Corp.> at usbus0, cfg=3D0 md=3DHOST spd=3DHIGH (480Mbps) p=
wr=3DON
> (500mA)
> > >
> >
> > So  what's the actual disk? It could be that the disk is going bad too.
> If I'm not mistaken, it's a Seagate, 1TB, bought from Amazon.
>
> > Though JMicron has a history of dodgy adapters (though that history
> > pre-dates this one, I think).
> >
> > tl;dr: This is rare data corruption, but any is bad. So far, though,
> there
> > doesn't seem to be enough to trace the problem.  I suggest A/B tests if
> you
> > can, starting with a different non-JMicron-based USB adapter.
>
> I do have a StarTech usb2-only usb-sata adapter which can be tried.
>
> Oddly enough, in the last few reboots the most common problem, disk
> detection failure in uboot, has been absent.
>

OK, Change in behavior also suggests a wider array of things to look at...


> Installworld completed successfully, no reported errors.
>
> The first reboot to multi-user ended in a panic during shutdown, an
> old problem. It started with
> ...
> smscphy0: detached
> smsc0: warning: MII is busy
> Kernel page faultmiibus0: detached
>  with the following non-sleepable locks held:
> exclusive sleep mutex smsc0 (smsc0) r =3D 0 (0xd739ff70) locked @
> /usr/src/sys/dev/usb/net/if_smsc.c:665
> stack backtrace:
>

So we're panicking elsewhere. This suggests maybe it's not a storage
problem, or a dma/cache problem at all. It suggests maybe a power issue and
power drops just enough to cause data corruption. Perhaps you can find a
more powerful power supply to test this theory?

Warner


> ....
> and went downhill from there 8-)
>
> Rebooting from the debugger to single user and starting fsck -fy
> stimulated a string of errors and corrections, a re-run came up clean.
> However, /usr/lost+found is now populated with about 50 files.
>
> The system now reports
> # uname -apKU
> FreeBSD pelorus.zefox.org 16.0-CURRENT FreeBSD 16.0-CURRENT #1
> main-5bf3e2a14111: Mon Oct 19 00:03:30 PDT 2026     bob@pelorus.zefox.org=
:/usr/obj/usr/src/arm.armv7/sys/GENERIC
> arm armv7 1600028 1600028
>
> As a sanity check I'm re-running buildworld, just to see if it
> completes. I'll try the Startech usb-sata adapter if trouble persists.
>
> Thanks for writing!
>
> bob prohaska
>
>

--00000000000085ef09065e34e46b
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 Mon, Oct 19,=
 2026 at 11:16=E2=80=AFAM bob prohaska &lt;<a href=3D"mailto:fbsd@www.zefox=
.net">fbsd@www.zefox.net</a>&gt; wrote:<br></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">On Mon, Oct 19, 2026 at 09:57:34AM -0600, Warner Lo=
sh wrote:<br>
&gt; On Mon, Oct 19, 2026 at 9:40=E2=80=AFAM bob prohaska &lt;<a href=3D"ma=
ilto:fbsd@www.zefox.net" target=3D"_blank">fbsd@www.zefox.net</a>&gt; wrote=
:<br>
&gt; <br>
&gt; &gt; A Pi2B running<br>
&gt; &gt; FreeBSD <a href=3D"http://pelorus.zefox.org" rel=3D"noreferrer" t=
arget=3D"_blank">pelorus.zefox.org</a> 16.0-CURRENT FreeBSD 16.0-CURRENT #7=
6<br>
&gt; &gt; main-n289925-6c305c3c3129: Sun Oct 11 15:20:02 PDT 2026<br>
&gt; &gt;=C2=A0 bob@pelorus.zefox.org:/usr/obj/usr/src/arm.armv7/sys/GENERI=
C arm armv7<br>
&gt; &gt; 1600027 1600028<br>
&gt; &gt;<br>
&gt; &gt; is reporting errors during installworld of the form<br>
&gt; &gt;<br>
&gt; &gt; /usr: inode 67896768: check-hash failed<br>
&gt; &gt;<br>
&gt; &gt; and<br>
&gt; &gt;<br>
&gt; &gt; UFS /dev/da0s2d (/usr) cylinder checkhash failed: cg 846, cgp: 0x=
ce917fd<br>
&gt; &gt; !=3D bp: 0x4e2a15c5<br>
&gt; &gt;<br>
&gt; <br>
&gt; So this is a data corruption bug. Almost certainly. It may be related =
to<br>
&gt; caching (or memory observability), or it may be something else. If the=
<br>
&gt; errors are on boot, then something is writing it before the system wen=
t<br>
&gt; down. If this occurs at runtime, it is likely a transfer error.<br>
&gt; <br>
&gt; <br>
&gt; &gt; There&#39;s an old bug report,<br>
&gt; &gt; <a href=3D"https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D26=
7654" rel=3D"noreferrer" target=3D"_blank">https://bugs.freebsd.org/bugzill=
a/show_bug.cgi?id=3D267654</a><br>
&gt; &gt;<br>
&gt; &gt; which looks somewhat similar but is marked &quot;Closed FIXED&quo=
t;.<br>
&gt; &gt;<br>
&gt; <br>
&gt; So symptoms may be the same, but the root cause is likely different.<b=
r>
&gt; <br>
&gt; <br>
&gt; &gt; So far, the errors have not resulted in any build or install stop=
pages,<br>
&gt; &gt; but the install and reboot haven&#39;t completed yet.<br>
&gt; &gt;<br>
&gt; &gt; Is it worth reporting this behavior as a new bug? Old bug? Other?=
 Not?<br>
&gt; &gt;<br>
&gt; <br>
&gt; New bug. For the love of all that&#39;s holy, do not reopen the old bu=
g.<br>
&gt;<br>
8-)<br>
<br>
&gt; <br>
&gt; &gt; It&#39;s true that the kernel lags world by one index digit. Not =
sure how<br>
&gt; &gt; that happened.<br>
&gt; &gt;<br>
&gt; &gt; I can post console output, but it&#39;s mostly repetitive, as if =
the<br>
&gt; &gt; errors correct eventually or are ignored.<br>
&gt; &gt;<br>
&gt; &gt; /etc/fstab contains<br>
&gt; &gt;<br>
&gt; &gt; # more /etc/fstab<br>
&gt; &gt; # Custom /etc/fstab for FreeBSD embedded images<br>
&gt; &gt; #/dev/ufs/rootfs=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 /=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ufs=C2=A0 =
=C2=A0 =C2=A0rw=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01<br>
&gt; &gt; #/dev/msdosfs/EFI=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
 =C2=A0/boot/efi=C2=A0 =C2=A0 =C2=A0 =C2=A0msdosfs rw,noatime=C2=A0 =C2=A0 =
=C2=A0 0<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00<br>
&gt; &gt; #tmpfs=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 /tmp=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 tmpfs=C2=A0 =C2=A0rw,mode=
=3D1777=C2=A0 =C2=A0 0=C2=A0 =C2=A0 =C2=A0 =C2=A00<br>
&gt; &gt;<br>
&gt; &gt; /dev/da0s2a=C2=A0 =C2=A0 =C2=A0/=C2=A0 =C2=A0 =C2=A0 =C2=A0ufs=C2=
=A0 =C2=A0 =C2=A0rw=C2=A0 =C2=A0 =C2=A0 1=C2=A0 =C2=A0 =C2=A0 =C2=A01<br>
&gt; &gt; /dev/da0s2d=C2=A0 =C2=A0 /usr=C2=A0 =C2=A0 ufs=C2=A0 =C2=A0 =C2=
=A0rw=C2=A0 =C2=A0 =C2=A0 1=C2=A0 =C2=A0 =C2=A0 =C2=A01<br>
&gt; &gt; /dev/da0s1=C2=A0 =C2=A0 =C2=A0 /boot/msdos msdosfs rw,noatime 0 0=
<br>
&gt; &gt; /dev/da0s2b=C2=A0 =C2=A0 =C2=A0none=C2=A0 =C2=A0 swap=C2=A0 =C2=
=A0 sw<br>
&gt; &gt;<br>
&gt; &gt; Swap is<br>
&gt; &gt;<br>
&gt; &gt; # swapinfo<br>
&gt; &gt; Device=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1K-blocks=C2=A0 =C2=A0 =
=C2=A0Used=C2=A0 =C2=A0 Avail Capacity<br>
&gt; &gt; /dev/da0s2b=C2=A0 =C2=A0 =C2=A0 =C2=A01843200=C2=A0 =C2=A0 15644=
=C2=A0 1827556=C2=A0 =C2=A0 =C2=A01%<br>
&gt; &gt; so below the warning limit<br>
&gt; &gt;<br>
&gt; &gt; The storage device is SATA spinning rust on<br>
&gt; &gt; ugen0.6: &lt;JMS578 SATA 6Gb/s JMicron Technology Corp. / JMicron=
 USA<br>
&gt; &gt; Technology Corp.&gt; at usbus0, cfg=3D0 md=3DHOST spd=3DHIGH (480=
Mbps) pwr=3DON (500mA)<br>
&gt; &gt;<br>
&gt; <br>
&gt; So=C2=A0 what&#39;s the actual disk? It could be that the disk is goin=
g bad too.<br>
If I&#39;m not mistaken, it&#39;s a Seagate, 1TB, bought from Amazon. <br>
<br>
&gt; Though JMicron has a history of dodgy adapters (though that history<br=
>
&gt; pre-dates this one, I think).<br>
&gt; <br>
&gt; tl;dr: This is rare data corruption, but any is bad. So far, though, t=
here<br>
&gt; doesn&#39;t seem to be enough to trace the problem.=C2=A0 I suggest A/=
B tests if you<br>
&gt; can, starting with a different non-JMicron-based USB adapter.<br>
<br>
I do have a StarTech usb2-only usb-sata adapter which can be tried.<br>
<br>
Oddly enough, in the last few reboots the most common problem, disk<br>
detection failure in uboot, has been absent.<br></blockquote><div><br></div=
><div>OK,=C2=A0Change in behavior also suggests a wider array of things to =
look at...</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-le=
ft:1ex">
Installworld completed successfully, no reported errors.<br>
<br>
The first reboot to multi-user ended in a panic during shutdown, an<br>
old problem. It started with<br>
...<br>
smscphy0: detached<br>
smsc0: warning: MII is busy<br>
Kernel page faultmiibus0: detached<br>
=C2=A0with the following non-sleepable locks held:<br>
exclusive sleep mutex smsc0 (smsc0) r =3D 0 (0xd739ff70) locked @ /usr/src/=
sys/dev/usb/net/if_smsc.c:665<br>
stack backtrace:<br></blockquote><div><br></div><div>So we&#39;re panicking=
 elsewhere. This suggests maybe it&#39;s not a storage problem, or a dma/ca=
che problem at all. It suggests maybe a power issue and power drops just en=
ough to cause data corruption. Perhaps you can find a more powerful power s=
upply to test this theory?</div><div><br></div><div>Warner</div><div>=C2=A0=
</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;b=
order-left:1px solid rgb(204,204,204);padding-left:1ex">
....<br>
and went downhill from there 8-)<br>
<br>
Rebooting from the debugger to single user and starting fsck -fy <br>
stimulated a string of errors and corrections, a re-run came up clean.<br>
However, /usr/lost+found is now populated with about 50 files.<br>
<br>
The system now reports<br>
# uname -apKU<br>
FreeBSD <a href=3D"http://pelorus.zefox.org" rel=3D"noreferrer" target=3D"_=
blank">pelorus.zefox.org</a> 16.0-CURRENT FreeBSD 16.0-CURRENT #1 main-5bf3=
e2a14111: Mon Oct 19 00:03:30 PDT 2026=C2=A0 =C2=A0 =C2=A0bob@pelorus.zefox=
.org:/usr/obj/usr/src/arm.armv7/sys/GENERIC arm armv7 1600028 1600028<br>
<br>
As a sanity check I&#39;m re-running buildworld, just to see if it<br>
completes. I&#39;ll try the Startech usb-sata adapter if trouble persists. =
<br>
<br>
Thanks for writing!<br>
<br>
bob prohaska<br>
<br>
</blockquote></div></div>

--00000000000085ef09065e34e46b--


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Filesystem errors on armv7 -current
#60
Author: bob prohaska
Date: Mon, 19 Oct 2026 18:45
24 lines
3649 bytes
On Mon, Oct 19, 2026 at 11:31:54AM -0600, Warner Losh wrote:
> 
> So we're panicking elsewhere. This suggests maybe it's not a storage
> problem, or a dma/cache problem at all. It suggests maybe a power issue and
> power drops just enough to cause data corruption. Perhaps you can find a
> more powerful power supply to test this theory?
 
A voltmeter across the GPIO +5 and GND pins reports 5.11 volts
steady-state while a -j3 buildworld is running. The disk is
connected via its own powered hub, so it shouldn't have much
effect.

I'll watch voltage during shutdown and reboot to see if anything
surprising happens.

Thanks for writing!

bob prohaska



--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Filesystem errors on armv7 -current
#62
Author: Sulev-Madis Silber
Date: Mon, 19 Oct 2026 19:22
52 lines
5940 bytes

On October 19, 2026 9:45:58 PM GMT+03:00, bob prohaska <fbsd@www.zefox.net> wrote:
>On Mon, Oct 19, 2026 at 11:31:54AM -0600, Warner Losh wrote:
>> 
>> So we're panicking elsewhere. This suggests maybe it's not a storage
>> problem, or a dma/cache problem at all. It suggests maybe a power issue and
>> power drops just enough to cause data corruption. Perhaps you can find a
>> more powerful power supply to test this theory?
> 
>A voltmeter across the GPIO +5 and GND pins reports 5.11 volts
>steady-state while a -j3 buildworld is running. The disk is
>connected via its own powered hub, so it shouldn't have much
>effect.
>
>I'll watch voltage during shutdown and reboot to see if anything
>surprising happens.
>
>Thanks for writing!
>
>bob prohaska
>
>

possibly need scope too

this is computer system after all

because what about noise or fast dips


i'm not surprised of hw, that is, sbc, usb-sata adapter, hdd going shit

is there s.m.a.r.t. passthrough in usb bridge? but it might not help either. i now put my old/new disks through my custom test procedure. maybe this is due

sadly can't run memtest86+ on that platform

the hell, it could be everywhere


i've noticed you run on some tight owner/power budget hw there for long time for some reason. now it "pays" back


--
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