]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
If a drive returns ASC/ASCQ 0x04,0x11 "Logical unit not ready,
authorKenneth D. Merry <ken@FreeBSD.org>
Tue, 27 Aug 2013 19:47:03 +0000 (19:47 +0000)
committerKenneth D. Merry <ken@FreeBSD.org>
Tue, 27 Aug 2013 19:47:03 +0000 (19:47 +0000)
commit73825c17324156e9b11688d4cb01f201efc09ef1
treedcb3f8b1162098a9450d48a55cb159252b09c9b6
parent2a3910b93109d29b97a6bcfadcb9adb79f9192af
If a drive returns ASC/ASCQ 0x04,0x11 "Logical unit not ready,
notify (enable spinup) required", instead of doing the normal
retries, poll for a change in status.

We will poll every half second for a minute for the status to
change.

Hitachi drives (and likely other SAS drives) return that ASC/ASCQ
when they are waiting to spin up.  What it means is that they are
waiting for the SAS expander to send them the SAS
NOTIFY (ENABLE SPINUP) primitive.

That primitive is the mechanism expanders/enclosures use to
sequence drive spinup to avoid overloading power supplies.

Sponsored by: Spectra Logic
MFC after: 3 days
sys/cam/scsi/scsi_all.c