Bug 220593

Summary: System panic after FC SAN storage detached
Product: Base System Reporter: Steel <steel.liu>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me CC: cem, trasz
Priority: ---    
Version: 11.0-RELEASE   
Hardware: amd64   
OS: Any   

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

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

Hope someon can give some help.

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.