3

For backups I want to use an external USB3 Drive: two HDD with RAID 1 (mirror) in one 2-bay enclosure. As filesystem I'll use btrfs because of subvolumes and checksums. Performance isn't important, but data safety. For use of RAID1 I see 3 possibilities:

  1. built-in hardware RAID of the external enclosure
  2. the RAID capability from btrfs (and setup the 2 drives as separate/JBOD)
  3. use software RAID from linux (mdadm and JBOD for the disks)

What would you recommend?

For the built-in hardware RAID I see the disadvantages that perhaps S.M.A.R.T. and power saving mode won't go through the controller and wont't work. This will depend on the product and perhaps SMART is dispensable, but I would miss a power saving mode (not because of power consumption and HDD lifetime, but because of the noise; I'll use the backup system only 1-3 times each day for some minutes).

For the btrfs RAID I see the big advantage that because of the checksums in the filesystem, btrfs can detect which disk is corrupted, also which parts/files, and can repair it (overwrite the corrupted data with the valid). A hardware RAID only helps if a complete disk fails, but doesn't know which runnig disks have corrupted data. Yes, the btrfs checksums also helps after disk fault with hardware RAID, but it seams much easier with the btrfs RAID, e.g. if different parts of data of both disks are corrupted.

But I mistrust the combination JBOD / ext. USB. Both disks will be connected over one USB cable and one USB hub and the controller have to handle both disks over this single/shared connection. In my experience USB makes problems with even less complex configurations.

And the software RAID (mdadm) solution. I can't see any advantages over the other two.

What do you think? Which configuration would you recommend?

Thanks!

Dori White
  • 31
  • 2

2 Answers2

1

I think option 2 is the way to go.

Beside the points you've already mentioned, a hardware raid with your USB shelf will probably be bounded to this exact model, as a lot of hardware raid controllers are writing metadata information about the raid on the disks - therefore it would be hard/impossible to move the disks to another shelf in case of shelf failure without destroying the raid.

From my experience USB is not the best solution for this case but at least suitable to do the job. Keep in mind, that a permanently connected drive does not provide electrical separation from your backup source, so if anything fails because of overvoltage, you backup could be affected too - A better option would be to use a 2 bay nas and have at least the ethernet wiring as "protection" between source and target even tough fiber would be better.

Henrik
  • 698
  • 5
  • 19
1

For backups I want to use an external USB3 Drive: two HDD with RAID 1 (mirror) in one 2-bay enclosure. As filesystem I'll use btrfs because of subvolumes and checksums. Performance isn't important, but data safety. For use of RAID1

I see 3 possibilities:

built-in hardware RAID of the external enclosure

USB to HW RAID? That seems rather exotic. I am under the impression that most dual external enclosures (/NAS boxes) which offer RAID do so in software. In which case using mdadm yourself gives you much more control.

(Tough less performance. Data only needs to be transfered once via USB if the enclosure takes care of the mirroring).

If it does proper HW RAID then I would not use that unless I had a spare compatible HW RAID card/spare enclosure. HW RAID is nice, but RAID cards become the next single point of failure. Not recommended unless you have spares or can do without for a longer period of time.

(Which I guess is an option for some backup cases.)

the RAID capability from btrfs (and setup the 2 drives as separate/JBOD)

I have no experience with btrfs, mainly because I heard rumours that it was not yet stable enough. The latter is fine for a lot of things, but (for me) rules it out for safe backups.

use software RAID from linux (mdadm and JBOD for the disks)

I would use this since I would not use the other two.

It also grant the option of moving the disks to another machine should the need arise.

What would you recommend?

Option 3 for control, portability and known stability.


For the built-in hardware RAID I see the disadvantages that perhaps S.M.A.R.T. and power saving mode won't go through the controller and wont't work. This will depend on the product and perhaps SMART is dispensable, but I would miss a power saving mode

Most HW RAID will drop a disk if it does not respond within a few seconds.
A spun down disk takes longer than that to spin up. So power down and HW RAID is a bad idea. For more infor on this google for TLER.

A hardware RAID only helps if a complete disk fails, but doesn't know which runnig disks have corrupted data. Yes, the btrfs checksums also helps after disk fault with hardware RAID, but it seams much easier with the btrfs RAID, e.g. if different parts of data of both disks are corrupted.

if you are really set in btrfs then you can always use that on top of HW RAID or mdadm RAID.

But I mistrust the combination JBOD / ext. USB. Both disks will be connected over one USB cable and one USB hub and the controller have to handle both disks over this single/shared connection. In my experience USB makes problems with even less complex configurations.

My advice: Do not use USB. eSATA has less overhead and there is at least one fewer step in translations (back from USB to SATA for the disks in the enclosure).

Or better, use Fibre, wireless or Ethernet. Or store the backup enclosure in a different location.

The last is best since an offsite backup does not only protect against electrical failures (potentially taking out you main data and the backup) but also protects against fire, flooding and similar area disasters.

What do you think? Which configuration would you recommend?

I would use one local backup (fully under your control). No RAID or mirrors needed. A Simple generic USB enclosure with a SATA disk will do.

AND I would use an encrypted backup in the cloud. Or atleast somewhere off-site.

Hennes
  • 4,842
  • 1
  • 19
  • 29