Project

General

Profile

Bug #6147

S.M.A.R.T. actions need to be blacklisted/disabled on HyperV.

Added by Jim Pingle almost 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Category:
Operating System
Target version:
Start date:
04/14/2016
Due date:
% Done:

0%

Estimated time:
Affected Version:
2.3
Affected Architecture:
All

Description

When attempting to use S.M.A.R.T. on HyperV, either from the widget or Diag > S.M.A.R.T. Status, the VM will crash. It appears as though HyperV is disconnecting/removing the disk, as the VM will either show filesystem errors in the GUI or crash/panic in a way that suggests the disk disappeared.

S.M.A.R.T. has no meaning/function in such an environment, but people can still trigger it unintentionally by adding random widgets or maybe restoring a config with the widget from a system that was previously on bare metal.

Not really a bug in pfSense since it's HyperV that's overreacting, but if that is something we can detect it would make for a better user experience.

Associated revisions

Revision df5c2c73 (diff)
Added by Chris Buechler almost 3 years ago

Add Hyper-V support to system_identify_specific_platform, and disable S.M.A.R.T. actions in Hyper-V guests. Ticket #6147

Revision b4594d39 (diff)
Added by Chris Buechler almost 3 years ago

Add Hyper-V support to system_identify_specific_platform, and disable S.M.A.R.T. actions in Hyper-V guests. Ticket #6147

Revision 35c8b891 (diff)
Added by Chris Buechler almost 3 years ago

Hyper-V SMART - didn't intend to commit that part. Ticket #6147

Revision b700d79e (diff)
Added by Chris Buechler almost 3 years ago

Hyper-V SMART - didn't intend to commit that part. Ticket #6147

Revision 7de3b9b1 (diff)
Added by Chris Buechler almost 3 years ago

Fix Hyper-V SMART disable on widget. Ticket #6147

Revision fe13359e (diff)
Added by Chris Buechler almost 3 years ago

Fix Hyper-V SMART disable on widget. Ticket #6147

History

#1 Updated by Chris Buechler almost 3 years ago

  • Tracker changed from Todo to Bug
  • Category changed from Web Interface to Operating System
  • Status changed from New to Feedback
  • Assignee set to Chris Buechler
  • Priority changed from Low to Normal
  • Affected Architecture set to All

What triggers the kernel panic is:

smartctl -H /dev/$dev

Since it's a bug in the OS, I'll re-classify as a bug. It's not a sensible thing to try to use with Hyper-V, but if you restore a config that happened to have it on the dashboard, or just click the widget's name in the add screen, you end up with a system where you can't log into the web GUI without causing that kernel panic to be hit.

I added Hyper-V to system_identify_specific_platform, and changed SMART's page and widget to do nothing when Hyper-V.

#2 Updated by Chris Buechler almost 3 years ago

  • Status changed from Feedback to Resolved
  • Affected Version set to 2.3

fixed

Also available in: Atom PDF