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
Author: Warner Losh
Date: Mon, 19 Oct 2026 17:31
Date: Mon, 19 Oct 2026 17:31
352 lines
18977 bytes
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 <<a href=3D"mailto:fbsd@www.zefox= .net">fbsd@www.zefox.net</a>> 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> > On Mon, Oct 19, 2026 at 9:40=E2=80=AFAM bob prohaska <<a href=3D"ma= ilto:fbsd@www.zefox.net" target=3D"_blank">fbsd@www.zefox.net</a>> wrote= :<br> > <br> > > A Pi2B running<br> > > 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> > > main-n289925-6c305c3c3129: Sun Oct 11 15:20:02 PDT 2026<br> > >=C2=A0 bob@pelorus.zefox.org:/usr/obj/usr/src/arm.armv7/sys/GENERI= C arm armv7<br> > > 1600027 1600028<br> > ><br> > > is reporting errors during installworld of the form<br> > ><br> > > /usr: inode 67896768: check-hash failed<br> > ><br> > > and<br> > ><br> > > UFS /dev/da0s2d (/usr) cylinder checkhash failed: cg 846, cgp: 0x= ce917fd<br> > > !=3D bp: 0x4e2a15c5<br> > ><br> > <br> > So this is a data corruption bug. Almost certainly. It may be related = to<br> > caching (or memory observability), or it may be something else. If the= <br> > errors are on boot, then something is writing it before the system wen= t<br> > down. If this occurs at runtime, it is likely a transfer error.<br> > <br> > <br> > > There's an old bug report,<br> > > <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> > ><br> > > which looks somewhat similar but is marked "Closed FIXED&quo= t;.<br> > ><br> > <br> > So symptoms may be the same, but the root cause is likely different.<b= r> > <br> > <br> > > So far, the errors have not resulted in any build or install stop= pages,<br> > > but the install and reboot haven't completed yet.<br> > ><br> > > Is it worth reporting this behavior as a new bug? Old bug? Other?= Not?<br> > ><br> > <br> > New bug. For the love of all that's holy, do not reopen the old bu= g.<br> ><br> 8-)<br> <br> > <br> > > It's true that the kernel lags world by one index digit. Not = sure how<br> > > that happened.<br> > ><br> > > I can post console output, but it's mostly repetitive, as if = the<br> > > errors correct eventually or are ignored.<br> > ><br> > > /etc/fstab contains<br> > ><br> > > # more /etc/fstab<br> > > # Custom /etc/fstab for FreeBSD embedded images<br> > > #/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> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01<br> > > #/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> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00<br> > > #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> > ><br> > > /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> > > /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> > > /dev/da0s1=C2=A0 =C2=A0 =C2=A0 /boot/msdos msdosfs rw,noatime 0 0= <br> > > /dev/da0s2b=C2=A0 =C2=A0 =C2=A0none=C2=A0 =C2=A0 swap=C2=A0 =C2= =A0 sw<br> > ><br> > > Swap is<br> > ><br> > > # swapinfo<br> > > 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> > > /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> > > so below the warning limit<br> > ><br> > > The storage device is SATA spinning rust on<br> > > ugen0.6: <JMS578 SATA 6Gb/s JMicron Technology Corp. / JMicron= USA<br> > > Technology Corp.> at usbus0, cfg=3D0 md=3DHOST spd=3DHIGH (480= Mbps) pwr=3DON (500mA)<br> > ><br> > <br> > So=C2=A0 what's the actual disk? It could be that the disk is goin= g bad too.<br> If I'm not mistaken, it's a Seagate, 1TB, bought from Amazon. <br> <br> > Though JMicron has a history of dodgy adapters (though that history<br= > > pre-dates this one, I think).<br> > <br> > tl;dr: This is rare data corruption, but any is bad. So far, though, t= here<br> > doesn't seem to be enough to trace the problem.=C2=A0 I suggest A/= B tests if you<br> > 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're panicking= elsewhere. This suggests maybe it'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'm re-running buildworld, just to see if it<br> completes. I'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
Author: bob prohaska
Date: Mon, 19 Oct 2026 18:45
Date: Mon, 19 Oct 2026 18:45
24 lines
3649 bytes
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
Author: Sulev-Madis Silber
Date: Mon, 19 Oct 2026 19:22
Date: Mon, 19 Oct 2026 19:22
52 lines
5940 bytes
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