Monday, July 16, 2018

lvm - RAID / FS choice for 12 hard drive machine?



I'm going to purchase a 14 bay HP 2U server with ECC memory and bunch of 3TB enterprise SATA drives. I would prefer to make 2 x RAID6 with 6 drive each. This will be used for local office storage and my Internet crawler.



I am flooded with FS/RAID choices. I am wondering should I use Hardware Raid Card, LVM, mdadm, btrfs, fuse zfs? will likely to use debain/ubuntu as OS.



My priority of concerns is:





  1. data security, no loss, no corruption (most important)

  2. reasonable performance

  3. minimal maintenance and easier recovery/replacement if anything goes wrong



Has anyone with production experience?



EDIT: add fuse-zfs


Answer



The best option for data security is ZFS data encryption, ans for no corruption Best data reliability is provided by ZFS as well. ZFS has its own RAID (which is software RAID), that can help you a lot in this case to build RAID/Mirror or many types, based on your needs. you can even have Spare drives to be added in a ZFS RAID , as just in case one drive fails, it is automatically replaced with spare drive. Also, in case of ZFS, RAID re-construction is fastest, as it does not re-calculate every block on drive, but intelligently only recovers the data that needs to be reconstructed. Also, in case of ZFS, RAID is much more reliable as it provides some sort of Raid5/6 (named as RaidZ/Raidz2/RaidZ3) parity does not needs to be calculated again and again (as its done in traditional RAID5/6...




For Extreme performance, just use ZFS cachings over a 100-400GB SSD Drive (based on your needs), so all of your reads/writes can be cached and you can get IOPS of more than 10,000+ (if tuned properly) as compared to 14 drive RAID, which can give you 14x read speed (appx 1500-2000 IOPS)...



Dont go for btrfs, as its slowest filesystem.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...