Bug 220593 - System panic after FC SAN storage detached
Summary: System panic after FC SAN storage detached
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.0-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-10 08:24 UTC by Steel
Modified: 2017-07-12 01:12 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steel 2017-07-10 08:24:02 UTC
The system version is FreeBSD 11.0-RELEASE-p1

FC SAN disk was formated as ufs filesystem and mounted. When we read/write from the filesystem, we detached the storage array and the operating system crushed.

The dump info like following.

Device da2 went missing before all of the data could be written to it; expect data loss.
panic: devfs_fsync: vop_stdfsync failed.
cpuid=5
KDB: stack backtrace
#0 0xffffffff80b24077 at kdb_backtrace+0x67
#1 0xffffffff80ad93e2 at vpanic+0x182
#2 0xffffffff80ad9253 at panic+0x43
#3 0xffffffff80985bdf at devfs_fsync+0x8f
#4 0xffffffff8110bbcd at VOP_FSYNC_APV+0x8d
#5 0xffffffff80bb2c7e at sched_sync+0x3be
#6 0xffffffff80a90055 at fork_exit+0x85
#7 0xffffffff80f8467e at fork_trampoline+0xe
Uptime: 8m8s
Automatic reboot in 15 seconds - press a key on the console to abort
Comment 1 Steel 2017-07-10 08:27:44 UTC
We found a similar bug:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210316

But we don't know if the same reason resulted in our problem.

Hope someon can give some help.

thanks
Steel
Comment 2 Conrad Meyer freebsd_committer 2017-07-10 18:09:56 UTC
Mark -- I don't think this is an FS bug.  This is fsync() on the devvp, e.g., /dev/da1, causing the panic.
Comment 3 Edward Tomasz Napierala freebsd_committer 2017-07-11 12:16:20 UTC
It should be fixed in 10.1-RC, could you test it?
Comment 4 Steel 2017-07-11 12:30:04 UTC
Sure. Do you mean 11.1-RC?

In addition, we are storage array provider, some of our customers choose to use different OS version.So we hope to know which versions are impacted by this bug.

Thanks very much.
Comment 5 Edward Tomasz Napierala freebsd_committer 2017-07-11 12:57:30 UTC
Ah, right - 11.1-RC (any RC).

As for versions impacted - it got broken in revision r290224, back in 2015, so it affected at least 11.0.  Not sure about the 10 series.
Comment 6 Steel 2017-07-12 01:12:53 UTC
OK, got it and thanks very much.
We'll try on the 11.1 RC and make you know the result.