A disk array controller reliably detects disk drive power-on-reset events
that may cause a disk drive that has uncommitted write data stored in its
cache to lose such data. The methods for detecting the power-on-reset
events include operating the disk drives in an ATA security mode in which
a power-on-reset of a disk drive will cause the drive to enter a locked
state in which data transfer commands are aborted; and tracking power
cycle count attributes of the disk drives over time. When a disk drive
power-on-reset event is detected, the disk array may be efficiently
restored to an operational state by re-executing or "replaying" a set of
write commands that are cached within the disk array controller. The
invention is also applicable to single-disk-drive storage systems.