You are not logged in.

#1 2014-05-09 19:46:18

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Media Storage: RAID 5 & LVM? ZFS? BTRFS? XFS?

I started my foray into RAID about 6 months ago while looking for an easy way to store all of my massive amounts of media. I bought two off the shelf NAS enclosures but didn't like them. I took the existing software RAID 5 array out of the last NAS and put in my PC which runs Arch. It runs well and I haven't had any problems with it, and I get about 100-150 MB/sec out of it, but I like to tweak things and squeeze the most performance out as possible. I would like to use a much space as possible, so nothing like RAID 1, I like the idea of RAID 10 but I don't have the money to buy enough drives to get the space I want. I know that ext4 is a good choice for all-around storage, that xfs is great for large files but sucks with small files, that btrfs supports compression and snapshots among other things, and that ZFS is a completely different animal than a typical filesystem and that it's more akin to RAID+LVM. From what I understand about COW/snapshots, it wouldn't really benefit me considering I'm only storing multi-gigabyte videos and not system files, correct? I'm leaning towards XFS since I know it's great with huge files but would it be really worth it considering I'm already on ext4? Would zfs be worth it?

I use nzbget to download things, and also use the array for storing large things like hard disk images for virtualbox, and maybe a small mysql database if I ever get around to messing with newznab again.

System Specs
Intel Core i7 @ 3.7 GHz
12 GB DDR3 Triple Channel
128 GB Corsair M4 SSD for root and home, formatted with btrfs
4x 3 TB WD Green in RAID 5 currently formatted with ext4, 8.1 TB useable

Offline

#2 2014-05-09 19:55:42

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,903
Website

Re: Media Storage: RAID 5 & LVM? ZFS? BTRFS? XFS?

https://bbs.archlinux.org/viewtopic.php?id=117168

I'm still using XFS for my media storage, it's not let me down yet. I'm using it on a RAID5 currently.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2014-05-10 09:43:17

chaonaut
Member
From: Kyiv, Ukraine
Registered: 2014-02-05
Posts: 382

Re: Media Storage: RAID 5 & LVM? ZFS? BTRFS? XFS?

brando56894 wrote:

I use nzbget to download things, and also use the array for storing large things like hard disk images for virtualbox, and maybe a small mysql database if I ever get around to messing with newznab again.

so, definitely not btrfs.

well…
zfs is cool. really. but too slow on linux, compared with btrfs / ext4 / xfs. so, after playing with it for a couple of weeks, i went back to ext4.
ext4 is the best tradeoff between everything for the moment.
xfs is good too, but still a bit dangerous in case of crash/power loss (well known empty/zeroed files problem), so i stopped using it, despite it's the fastest for most applications.


— love is the law, love under wheel, — said aleister crowley and typed in his terminal:
usermod -a -G wheel love

Offline

#4 2014-05-10 10:26:19

frostschutz
Member
Registered: 2013-11-15
Posts: 1,421

Re: Media Storage: RAID 5 & LVM? ZFS? BTRFS? XFS?

Power loss is a problem that no filesystem has managed to solve yet. I've lost data with ext* that way, and had lots of luck with XFS in that regard.

XFS is my main file system; I originally started using it because of its tools (dump, restore, defrag, ...). I'm using it today simply because it served me well for so many years.

One thing I dislike about ext* is that by default, it expects an average file size of 16KiB or above. If you have many small files, you run out of inodes before the filesystem is full, and the only way around it is to reformat or add more space you don't need. It happens too often for comfort, and it's unacceptable in a standard filesystem for Joe Average. If you know beforehand that you will be having lots of small files, for example because you like to compile your own kernel and have several source trees in /usr/src/linux, you should make sure to make mkfs.ext* give you plenty of inodes beforehand (-T small or whatever).

Last edited by frostschutz (2014-05-10 10:26:40)

Offline

#5 2014-05-10 14:53:14

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: Media Storage: RAID 5 & LVM? ZFS? BTRFS? XFS?

Thanks for the suggestions, I used to use xfs on my storage drives before I built the array. I guess I'll switch back to it!

Offline

#6 2014-05-10 15:56:37

chaonaut
Member
From: Kyiv, Ukraine
Registered: 2014-02-05
Posts: 382

Re: Media Storage: RAID 5 & LVM? ZFS? BTRFS? XFS?

frostschutz wrote:

One thing I dislike about ext* is that by default, it expects an average file size of 16KiB or above. If you have many small files, you run out of inodes before the filesystem is full, and the only way around it is to reformat or add more space you don't need. It happens too often for comfort, and it's unacceptable in a standard filesystem for Joe Average. If you know beforehand that you will be having lots of small files, for example because you like to compile your own kernel and have several source trees in /usr/src/linux, you should make sure to make mkfs.ext* give you plenty of inodes beforehand (-T small or whatever).

for lots of small files, i'd prefer btrfs.
moreover, if one like to compile own kernels, packages, etc, btrfs has snapshot capabilities, so it's easy to roll back if something goes wrong.
my arch system partitions are mainly btrfs due to intensive usage of customized packages.

Last edited by chaonaut (2014-05-10 16:01:26)


— love is the law, love under wheel, — said aleister crowley and typed in his terminal:
usermod -a -G wheel love

Offline

#7 2014-05-10 17:18:12

vostok4
Member
Registered: 2010-12-16
Posts: 70

Re: Media Storage: RAID 5 & LVM? ZFS? BTRFS? XFS?

Why not btrfs for large media storage? I've been using it here for a few years with no issue, and I'm about to convert the array from raid1 to raid10, happy to use it. Although I don't use any advanced feature other than raid...

Offline

#8 2014-05-23 07:51:37

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: Media Storage: RAID 5 & LVM? ZFS? BTRFS? XFS?

Been using XFS on a soft-raid 5 with lvm for over 10 years now in my NAS. I decided right from the start that OS and media databases sit on an SSD and the Media files themselves on the RAID5 set. It has survived a harddisk failure. And XFS should keep fragmentation low. I've not lost any data over a power failure but media data are read primarily anyway, aren't they?. The NAS is also in use a backup server for the various laptops around the house using a redmundish file history

I actually am looking for a ZFS solution but read now that it is slow. (Chaonaut?) Maybe I should stick to the XFS solution for the time being.

xfs_db -c frag -r /dev/vg/media
actual 25965, ideal 25844, fragmentation factor 0.47%

Last edited by theking2 (2014-05-23 07:51:46)


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#9 2014-05-23 08:55:14

chaonaut
Member
From: Kyiv, Ukraine
Registered: 2014-02-05
Posts: 382

Re: Media Storage: RAID 5 & LVM? ZFS? BTRFS? XFS?

theking2 wrote:

I actually am looking for a ZFS solution but read now that it is slow. (Chaonaut?)

well, i must mention that my test installation was single-hdd.
maybe on multi-hdd setups it behaves differently, e.g. better.

a quick googling shows me this, for example:
http://openbenchmarking.org/result/1304 … ERGE786390

single-hdd setup may show absolutely different result, for example:
http://www.phoronix.com/scan.php?page=n … px=MTM1NTA

Last edited by chaonaut (2014-05-23 08:59:04)


— love is the law, love under wheel, — said aleister crowley and typed in his terminal:
usermod -a -G wheel love

Offline

#10 2014-05-23 09:01:53

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: Media Storage: RAID 5 & LVM? ZFS? BTRFS? XFS?

ZFS.  Not slow and very stable and powerful.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Online

#11 2014-05-25 15:16:38

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: Media Storage: RAID 5 & LVM? ZFS? BTRFS? XFS?

Actually the reason for me looking at this thread was that I was in the (now nearly finalized) process of moving from md+lvm+xfs to a ZFS system. It all went like a breeze until one of the external disks I used as backup (xfs) reported all kind of odd errors and generated several kernel panics. (ouch). I don't think a storage device should do that. So far ZFS appeared unimpressed by this rather harsh treatment. Although it did four files with permanent errors (where actually I could open the files without a problem).

Anyway, I found out that where originally I could get transfers of max 20MB/s I now could (restoring the backups) reach 25-27MB/s. So it is quit a bit faster.

Scrubbing is not. For a 2.5T set it reports 30h ...


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

Board footer

Powered by FluxBB