A system and method for providing automatic data restoration after a
storage device failure are disclosed. An agent module detects a failure
at a logical unit located at a primary storage device. The agent module
locates backup data from the failed logical unit that is stored on a
backup storage device and transfers the backup data from the backup
storage device to a spare logical unit located on the primary storage
device. The agent module then maps the spare logical unit to an address
associated with a host in response to detecting the failure at the
logical unit.