Re: UFS panics
On 10/27/18 5:34 PM, Leandro wrote: I just wanted to confirm if panics on UFS were expected if the file system had errors This is no official answer, but yes, basing on my nearly 20 years of experience with UFS, I've come to expect them. Several times after some boxes of mine crashed, they kept crashing every day or every few days. Only solution is to reboot in single user mode, fsck the filesystems (notice, not "fsck -p") and restart. I guess softupdates let something bad slip through and won't fix it at reboot. Just my 2c. bye av. ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: UFS panics
Yes, I ran fsck in single user mode and it fixed some errors, one of them was the entry that was causing the panic, that was removed. I just wanted to confirm if panics on UFS were expected if the file system had errors, that Sean and Kirk confirmed, or if it should be investigated. On Sat, Oct 27, 2018 at 3:24 AM John-Mark Gurney wrote: > > Leandro wrote this message on Wed, Oct 24, 2018 at 12:22 -0300: > > I'm seeing a kernel panic when trying to move a specific file. > > > > panic: Bad effnlink fip 0xc004a2c69a00, fdp 0xc00497093be0, > > tdp 0xc004be6295a0 > > cpuid = 72 > > time = 1540283798 > > KDB: stack backtrace: > > 0xe000adb8dcc0: at .kdb_backtrace+0x5c > > 0xe000adb8ddf0: at .vpanic+0x1b4 > > 0xe000adb8deb0: at .panic+0x38 > > 0xe000adb8df40: at .ufs_readdir+0x2f24 > > 0xe000adb8e1b0: at .VOP_RENAME_APV+0x190 > > 0xe000adb8e240: at .kern_renameat+0x3c0 > > 0xe000adb8e540: at .sys_rename+0x2c > > 0xe000adb8e5c0: at .trap+0x65c > > 0xe000adb8e780: at .powerpc_interrupt+0x290 > > 0xe000adb8e820: user SC trap by 0x81010b7b8: srr1=0x9000f032 > > r1=0x3fffc490 cr=0x3428 xer=0x2000 > > ctr=0x81010b7b0 r2=0x8102c5950 > > KDB: enter: panic > > > > Using 'ls' or 'rm' on the file gives a "Bad file descriptor" error. > > Using 'cat', I get another panic, but now during open. > > Everything indicates that the file system is in an inconsistent state. > > > > Therefore, I would just like to ask the following: is it expected for > > kernel panics to happen when there are errors in the file system? > > Have you unmounted the file system, and tried to do a fsck on it? That > you're getting a bad file descriptor sounds like it might be a directory > entry pointing to a bad inode. > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: UFS panics
Leandro wrote this message on Wed, Oct 24, 2018 at 12:22 -0300: > I'm seeing a kernel panic when trying to move a specific file. > > panic: Bad effnlink fip 0xc004a2c69a00, fdp 0xc00497093be0, > tdp 0xc004be6295a0 > cpuid = 72 > time = 1540283798 > KDB: stack backtrace: > 0xe000adb8dcc0: at .kdb_backtrace+0x5c > 0xe000adb8ddf0: at .vpanic+0x1b4 > 0xe000adb8deb0: at .panic+0x38 > 0xe000adb8df40: at .ufs_readdir+0x2f24 > 0xe000adb8e1b0: at .VOP_RENAME_APV+0x190 > 0xe000adb8e240: at .kern_renameat+0x3c0 > 0xe000adb8e540: at .sys_rename+0x2c > 0xe000adb8e5c0: at .trap+0x65c > 0xe000adb8e780: at .powerpc_interrupt+0x290 > 0xe000adb8e820: user SC trap by 0x81010b7b8: srr1=0x9000f032 > r1=0x3fffc490 cr=0x3428 xer=0x2000 > ctr=0x81010b7b0 r2=0x8102c5950 > KDB: enter: panic > > Using 'ls' or 'rm' on the file gives a "Bad file descriptor" error. > Using 'cat', I get another panic, but now during open. > Everything indicates that the file system is in an inconsistent state. > > Therefore, I would just like to ask the following: is it expected for > kernel panics to happen when there are errors in the file system? Have you unmounted the file system, and tried to do a fsck on it? That you're getting a bad file descriptor sounds like it might be a directory entry pointing to a bad inode. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: UFS panics
On 10/24/18 9:22 AM, Leandro wrote: > Hello, > > I'm seeing a kernel panic when trying to move a specific file. > > panic: Bad effnlink fip 0xc004a2c69a00, fdp 0xc00497093be0, > tdp 0xc004be6295a0 > cpuid = 72 > time = 1540283798 > KDB: stack backtrace: > 0xe000adb8dcc0: at .kdb_backtrace+0x5c > 0xe000adb8ddf0: at .vpanic+0x1b4 > 0xe000adb8deb0: at .panic+0x38 > 0xe000adb8df40: at .ufs_readdir+0x2f24 > 0xe000adb8e1b0: at .VOP_RENAME_APV+0x190 > 0xe000adb8e240: at .kern_renameat+0x3c0 > 0xe000adb8e540: at .sys_rename+0x2c > 0xe000adb8e5c0: at .trap+0x65c > 0xe000adb8e780: at .powerpc_interrupt+0x290 > 0xe000adb8e820: user SC trap by 0x81010b7b8: srr1=0x9000f032 > r1=0x3fffc490 cr=0x3428 xer=0x2000 > ctr=0x81010b7b0 r2=0x8102c5950 > KDB: enter: panic > > Using 'ls' or 'rm' on the file gives a "Bad file descriptor" error. > Using 'cat', I get another panic, but now during open. > Everything indicates that the file system is in an inconsistent state. > > Therefore, I would just like to ask the following: is it expected for > kernel panics to happen when there are errors in the file system? > > Thanks, > Leandro > _ I can't make much sense of the ppc backtrace here, but I assume this is UFS? If it is, UFS tends to panic to protect data in an error case and ZFS tends to go read-only in an error case. (over generalization here, but its been my experience). sean signature.asc Description: OpenPGP digital signature
UFS panics
Hello, I'm seeing a kernel panic when trying to move a specific file. panic: Bad effnlink fip 0xc004a2c69a00, fdp 0xc00497093be0, tdp 0xc004be6295a0 cpuid = 72 time = 1540283798 KDB: stack backtrace: 0xe000adb8dcc0: at .kdb_backtrace+0x5c 0xe000adb8ddf0: at .vpanic+0x1b4 0xe000adb8deb0: at .panic+0x38 0xe000adb8df40: at .ufs_readdir+0x2f24 0xe000adb8e1b0: at .VOP_RENAME_APV+0x190 0xe000adb8e240: at .kern_renameat+0x3c0 0xe000adb8e540: at .sys_rename+0x2c 0xe000adb8e5c0: at .trap+0x65c 0xe000adb8e780: at .powerpc_interrupt+0x290 0xe000adb8e820: user SC trap by 0x81010b7b8: srr1=0x9000f032 r1=0x3fffc490 cr=0x3428 xer=0x2000 ctr=0x81010b7b0 r2=0x8102c5950 KDB: enter: panic Using 'ls' or 'rm' on the file gives a "Bad file descriptor" error. Using 'cat', I get another panic, but now during open. Everything indicates that the file system is in an inconsistent state. Therefore, I would just like to ask the following: is it expected for kernel panics to happen when there are errors in the file system? Thanks, Leandro ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"