How to encrypt 3 drives on linux?

0

I have 3 x 3TB drives and a linux computer and i want to use the space as "one" drive for music, movies, and pictures (home server). In Addition the stored data should be encrypted.

I do not want to lose all the data if just one drive gets damaged and it would be nice if the system can be expanded later.

What is the best way to achieve this ? RAID5 ? LVM ? Both? Something else ?

JHnet

Posted 2013-06-22T20:22:11.950

Reputation: 1

Combining the three drives into one can easily be done with the right RAID setup. You could use an encrypted filesystem on top of that. However RAID also has some downsites (e.g. a stripe of 3 disks will fail completely if any of the three disks dies. An alternative is only getting 6TB storage from your three 3TB drives, e.g. with RAID 5. See this link for some of the options. (No idea about encrypting them).

– Hennes – 2013-06-22T20:27:31.320

If btrfs were stable, I'd recommend that. It handles both, and is much easier to configure than LVM. However, it's still in development. Sans that, I recommend LVM, with an encrypted filesystem. – jpaugh – 2013-06-22T20:34:58.677

@Hennes So you recommend raid5+dmcrypt/LUKS ? – JHnet – 2013-06-22T20:37:14.680

@jpaugh Yes btrfs would be cool, but, as you mentioned, it is still in development. With just using LVM i am worried about that single point of failure, if one single drive crashes, all the data is lost... Or not ? – JHnet – 2013-06-22T20:39:47.000

Idk. I've been meaning to switch to it for years, but now I'll just wait for btrfs, myself. But I thought raid required hardware support? @Hennes? – jpaugh – 2013-06-22T20:41:26.937

I got no experience with encrypted FS. Which is why I only commented on part of the question. I feel that without encryption experience a good answer is not an option. – Hennes – 2013-06-22T21:57:04.470

Answers

0

You most likely want setup like that:

              FileSystem

_______________________________________

               RAID5

_______________________________________
LUKS        | LUKS       | LUKS

LVM pv/vg/lv|LVM pv/vg/lv| LVM pv/vg/lv

I'm marking this as community wiki, because it's obviously not a complete answer.

Szymon Szydełko

Posted 2013-06-22T20:22:11.950

Reputation: 418