10

Raid-1 is mirroring two disks (if I haven't messed up completely here :p). Does that mean that I could take one disk out and put it into another machine and it would work like a normal disk? Or does it still only work in the raid? I can understand that a Raid-0 of course only works as a whole. But with mirroring I am not so sure how it works...

Of course putting the mirrored disk back in the raid afterwards would be a bad idea, but just taking it out... how would that work? Does raid store any special data on a drive that is needed? or does the raid controller handle everything like that and the harddrives are just used like normal?

Svish
  • 6,627
  • 14
  • 37
  • 45
  • I asked a question dealing with this issue you are describing too. See it here: http://serverfault.com/questions/61024/non-standard-raid-vs-standard-raid-and-how-to-choose – 7wp Sep 01 '09 at 22:56

4 Answers4

9

Well, the REAL answer is that it depends on the RAID controller. There's Hardware RAID and there's 'Fake RAID' -- which is basically a ROM implementation of software RAID.

Fake Raid will always require the same controller, just as using a linux software raid will require the same operating system (and sometimes the same kernel module version).

Real hardware RAID will SOMETIMES mean that you can swap them between machines, but in some cases you will need to have the same or a similar RAID card. One case where I've seen this is with a RAID5 volume on a Dell PERC/3di card. I haven't ever tried it with RAID1, but I understand it's possible.

Does raid store any special data on a drive that is needed?

Usually, yes, it does.

or does the raid controller handle everything like that and the harddrives are just used like normal?

Sometimes this is true -- either independently from the data on the drive, or in concert with data on the drive. i.e. the drive may have metadata readable only to a certain class of controller that says it was part of a RAID1 pair, and other controllers will ignore that metadata.

Karl Katzke
  • 2,596
  • 1
  • 21
  • 24
4

This depends entirely on the RAID used. It's entirely possible for different RAID cards and different RAID software implementations to have an on disk format that doesn't let you use a single disk by itself.

However, I know at least Linux's md software RAID lays things out so you can use a single disk outside the RAID.

kbyrd
  • 3,604
  • 2
  • 23
  • 34
1

Yes in most cases this is correct, you can use the disk in a another machine.

It isn't uncommon to use a disk from a mirror set to clone a machine.

Brettski
  • 942
  • 3
  • 20
  • 30
  • 5
    In most hardware implementations of RAID-1 that I have encountered, this will NOT work, unless you have the matching RAID controller in the new box. Software RAID-1 would seem likely to depend on the OS. – geoffc Jun 11 '09 at 15:47
  • Very true it is dependent on the controller or raid software versions. As a side note, many of your built in SATA raids are software raids. – Brettski Jun 12 '09 at 15:52
1

Most raid implementations will add a block of data (mdadm calls this a "raid superblock") describing and identifying the array to each disk that makes up the array. It's better to have this information on the disks than on the controller because it allows the array to be moved between controllers and reduces the risk that a disk will accidently be used as part of the wrong array.

This block can be in various locations. For example linux's mdadm offers three choices, beginning end or 4k from beginnning.

If the raid description is at the end of the device and the array is raid1 then you can access the individual drive's seperately since normal partition tables are at the start of the device and garbage at the end doesn't generally matter. This can be both good and bad, it can be useful for booting or data recovery purposes but it can also cause corruption of the array if a partition on one of the component devices is accidently mounted read/write.

Peter Green
  • 4,056
  • 10
  • 29