Project

General

Profile

Bug #12937

SATA devices should be configured automatically when connected

Added by Joshua M. Clulow about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
kernel
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

There is a tunable that is off by default:

/*
 * Global variable determining the default behavior after device hotpluggin.
 * If non-zero, the hotplugged device is onlined (if possible) without explicit
 * IOCTL request (AP_CONFIGURE).
 * If zero, hotplugged device is identified, but not onlined.
 * Enabling (AP_CONNECT) device port with an attached device does not result
 * in device onlining regardless of the flag setting
 */
int sata_auto_online = 0;

This prevents the OS from automatically making device nodes available for SATA disks without explicit operator intervention via cfgadm(1M). Notably, I am not aware of any such restricted behaviour in place for disks for more complex fabrics like SAS, FC, or NVMe. We should at minimum flip this to be enabled by default, as most vendors shipping products have been doing (through /etc/system or otherwise) for years, if not just remove this altogether.

History

#1

Updated by Joshua M. Clulow about 1 month ago

Note that both SmartOS and OmniOS systems have had this shipped in /etc/system for years; e.g., see https://github.com/omniosorg/omnios-build/blob/5d74f20de07e14b9049dc24756130e937ec24c5e/build/system/files/system#L74-L80

Also available in: Atom PDF