executable gone after fsck - Fwd: Cron <root at sheeva> newsyslog

Warner Losh imp at bsdimp.com
Wed Jul 15 16:16:52 UTC 2015


> On Jul 15, 2015, at 6:32 AM, Mattia Rossi <mattia.rossi.mailinglists at gmail.com> wrote:
> 
> Hi Ronald,
> 
> I might have missed some information on the list about the topic, and unless the unmapped i/o was the cause, fsck is pretty much broken at least on the Dreamplug.. and I would suspect also on the Sheevaplug. Wih the first few fsck you do you will lose random files, later on you won't be able to boot anymore, as fsck won't be able to fix fs errors anymore…

It was broken on atmel until I turned of unmapped I/O. then it was rock solid on atmel, at least as rock solid as it is on other platforms. Ian told me his dream plug was also broken in a similar way, but I can’t recall if he tested it for me there. I crashed my Atmel AT91SAM9G20 system about 100 times chasing unrelated bugs after this change. Before I turned off unmapped I/O it was always a disaster (never once did fsck do something useful on a dirty fs). Afterwards every time i was paying attention, it just worked (and when I wasn’t paying attention, it didn’t have the mandatory trip into single user mode).

fsck definitely does unaligned direct I/O, which is what I think is broken with unmapped I/O. I’m confident that I’ve fixed this.

The kernel Ron is using should be plenty new enough since I fixed this back in march, iirc.

Warner

> I'm currently using the fix suggested by Ian at the time: set the dump and pass values of your root fs in fstab to 0 0 and live with a dirty fs after a crash. Unless the system is crashing often, you'll be quite fine ;-)
> 
> Cheers,
> 
> Mat
> 
> Am 10.07.2015 um 10:12 schrieb Ronald Klop:
>> Hi,
>> 
>> I used fsck after a panic on my sheevaplug.
>> FreeBSD sheeva.klop.ws 11.0-CURRENT FreeBSD 11.0-CURRENT #8 r284499M: Wed Jun 17 12:54:02 CEST 2015 root at sjakie.klop.ws:/usr/obj-arm/arm.arm/usr/src-arm/sys/SHEEVAPLUG arm
>> 
>> If I did not made a mistake somewhere I'm running with the unmapped i/o turned off.
>> http://www.secnetix.de/olli/FreeBSD/svnews/index.py?r=283931
>> 
>> NB: In the case below bzip2 does not exist anymore. Which is not something _just_ written to disk.
>> 
>> Unfortunately I don't have more information about the crash.
>> 
>> Ronald.
>> 
>> 
>> ------- Forwarded message -------
>> From: "Cron Daemon" <root at sheeva.klop.ws>
>> To: root at klop.ws
>> Cc:
>> Subject: Cron <root at sheeva> newsyslog
>> Date: Thu, 09 Jul 2015 22:00:10 +0200
>> 
>> newsyslog: execl(`/usr/bin/bzip2 -f /var/log/console.log.0'): No such file
>> or directory
>> newsyslog: `bzip2 -f /var/log/console.log.0' terminated with a non-zero
>> status (1)
>> _______________________________________________
>> freebsd-arm at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
>> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
> 
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20150715/c4ec503e/attachment.bin>


More information about the freebsd-arm mailing list