this post was submitted on 20 Jun 2023
9 points (100.0% liked)

homelab

6656 readers
2 users here now

founded 4 years ago
MODERATORS
 

So I have some space on my server rack, but not a lot of money lying around.

What I’m trying to achieve is a nas setup for my security camera system. It has 30 cameras, and 4 drives fill up in 3 months. 3X3TB drives.

Looking on eBay for a second hand rack mounted NaS is pretty expensive. Could I build one? From a jbod or something? I’ve got a nice big space in my rack doing nothing.

(I know I could buy bigger drives, but I kinda like the idea of experimenting with something g different) ✌️💛

you are viewing a single comment's thread
view the rest of the comments
[–] 0x4E4F 1 points 1 year ago (2 children)

Void Linux + mdadm in RAID5 + BTRFS with snapshots enabled. Trust me, you won't regret it 😉. I have a working storage like this, but with 6 drives (scrap 2TB ones in RAID5) and BTRFS with zstd set at 10. Compression on MPEG2 content is... more than I ever hoped for to be honest, like 30, 40% compression. MPEG4, not as much, but you can shim about 5 to 10%.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

MPEG2 is, by today's standards, horribly inefficient, so that is to be expected. Transcoding, in that case, will gain a lot more. But if your mp4 files still compress significantly with a standard lossless compression algorithm, something is wrong with your encoder settings. Even xz, which, even at the default Level 6 is often better than zstd at 19, will generally do less than 1%, typically 0.2%, even at level 9 (the highest).

[–] 0x4E4F 1 points 1 year ago* (last edited 1 year ago)

To be honest, that percentage was after deduping everything, so it could be due to dups being deduped. The first one (the MPEG2 one) was before deduping, so that should be valid.

zstd can go up to 15 on BTRFS, not higher.

[–] [email protected] 1 points 1 year ago (1 children)

Do not do this setup if your data is critical. btrfs raid 5 isn't stable

[–] 0x4E4F 1 points 1 year ago (1 children)

I know. The RAID part is done with mdadm, BTRFS is just for the FS.

[–] [email protected] 1 points 1 year ago (1 children)

Oh, that seems a bit less risky

[–] 0x4E4F 1 points 1 year ago

It's not risky at all, it's how Synology does it.