What would happen if a RAID 1 contained 2 different file versions?

by Moshe   Last Updated June 30, 2020 05:01 AM

Let's say a hardware RAID 1 controller with disks A and B was taken offline, and a file present on both disks was altered on disk B (all within an offline state). When the RAID controller is turned back on, and the user requests the altered file, what will happen? I am assuming that most RAID 1 controllers don't detect any errors until they attempt to read from that file.

  1. Will the RAID controller identify a difference in file size/date/signature and therefore report an error, or will it pass either of the 2 disks' contents for that file, unaware of the changes?

  2. Would the Operating System detect any errors?

  3. Would a software RAID 1 controller act any different?

  4. And finally, in any RAID 1 array of N disks, which disk(s) does the OS or controller actually read from? All N? Do some RAID controllers always use disk 0, will they randomly pick a disk, or do they have access to the file-system and check the integrity (even if the disk is encrypted)?

Related Questions

how can I add SSD as RAID 1 cache?

Updated February 12, 2019 08:01 AM

RAID1 mdadm: not large enough to join array

Updated July 12, 2017 01:01 AM

Setting up a RAID 5 Array

Updated November 09, 2017 02:01 AM