this post was submitted on 13 Feb 2024
49 points (96.2% liked)

Selfhosted

40415 readers
426 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Hey again! I’ve progressed in my NAS project and I’ve chosen to go for a DIY NAS. I can’t wait for the parts to arrive!

Now I’m a bit struggling to choose an OS. I am starting with 2x10To HDD + 1To NVMe SSD. I plan to use 1 HDD for parity and to add more disks later.

I plan to use this server purely as a NAS because I will be getting a second more powerful server some time next year. But in the meantime, this NAS is a big upgrade over my rpi 4, so I will run some containers or VMs.

I don’t want to go with TrueNAS as I don’t want to use ZFS (my RAM is limited and I’m not sure I can add drives with different sizes). I’ve read btrfs is the second best for NAS, so I may use this.

Unraid seemed like the perfect fit. But the more I read about it, the more I wonder if I shouldn’t switch to Proxmox.

What I like about Unraid is the ability to add a disk without worrying about the size. I don’t care much about the applications Unraid provides and since docker-compose is not fully supported, I’m afraid I won’t be able to do things I could have done easily with a docker-compose.yml I also like that’s it’s easy to share a folder. What I don’t like about Unraid is the cache system and the mover. I understand why the system works this way but I’m not a fan.

I’ve asked myself if I needed instant parity for all my data and if I should put everything in the array.

The thing is that for some of my data I don’t care about parity. For instance, I’m good with only backing up my application data and to have parity for the backup. For my tv shows I don’t care about parity nor backup while I want both for my photos.

After some more research, I found mergerfs and snapraid. I feel that they are more flexible and fix the cache/mover issue from Unraid. Although I’m not sure if snapraid can run with only 2 disks.

If I go with Proxmox I think I would use OpenMediaVault to setup shares.

Is anyone using something like this? What are your recommendations?

Thanks!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 9 months ago (2 children)

Thanks, I’ve seen Incus have an online demo, this is nice, I’ll give it a try.

For BTRFS, if I understand correctly, I can have a similar result as mergerfs if I use SINGLE. But as RAID5/6 is unstable it seems I would still need snapraid, or am I missing something?

[–] [email protected] 3 points 9 months ago* (last edited 9 months ago)

Btrfs is great, but you're right that their own documentation advises against RAID in a production environment. People tend to use mdraid to achieve redundancy and Btrfs on top of it for the other features.

BTW, you mentioned not using ZFS because of differently sized disks. That's exactly one of the use cases for ZFS. Its RAID z1/z2/z3 modes provide for dynamic stripes that allow you to lose 1, 2, or 3 disks in a vdev, regardless of disk size. Oh and the ram thing is that it will use any idle ram for caching, to speed your disks. But it promptly releases it back to the system if another process needs it. Basically, the more ram you have, the more it will accelerate your disk operations.

[–] [email protected] -2 points 9 months ago* (last edited 9 months ago) (2 children)

"Need" is a strong word. But yes BRTFS RAID 5/6 is unstable but unless you're only after space efficiency RAID 5/6 shouldn't be used at all, those shames will put you on the worst position possible if something fails (and also low throughput). When you try to rebuild a RAID 5 with large drives it will probably go into days and you'll be risking the failure of a second drive and lose everything right there.

Btw, give a try to Cockpit as well. If you don't require much of the advances features that Proxmox / Incus offer and just a bunch of VMs then it should be enough.

[–] atzanteol 3 points 9 months ago (1 children)

“Need” is a strong word. But yes BRTFS RAID 5/6 is unstable but unless you’re only after space efficiency RAID 5/6 shouldn’t be used at all, those shames will put you on the worst position possible if something fails (and also low throughput). When you try to rebuild a RAID 5 with large drives it will probably go into days and you’ll be risking the failure of a second drive and lose everything right there.

I've had a RAID5 for 10+ years, had drives fail and I've replaced them. Rebuilds are fine and rare. It's very unlikely to have two drives fail within a week of each other and I don't want to only get 1/2 my disk space. RAID6 makes that small chance even smaller. If you're worried about loss you have backups - RAID is for uptime not recovery.

You seem to think the way you've done things is the one and true right way to do it and that's not the case.

[–] [email protected] 0 points 9 months ago (1 children)

You seem to think the way you’ve done things is the one and true right way to do it and that’s not the case.

Not at all and I totally agree with what you've said. To clarify things, I'm not the only one saying people should stay away from RAID 5/6, even large vendors say that nowadays, and the issue is when a drive fails, if you've to run for hours to get a new one rebuild a second hard drive is highly likely to fail on that time - specially if they've the same runtime, model etc.

Obviously that having a real backup will solve the issue, as long as you can retrieve the data from the backup quickly and cheaply enough and that's not always the case.

[–] atzanteol 1 points 9 months ago* (last edited 9 months ago) (1 children)

if you’ve to run for hours to get a new one rebuild a second hard drive is highly likely to fail on that time - specially if they’ve the same runtime, model etc.

If you're running a 2-disk RAID-1 you have the same problem.

And I restate - that risk is small. You're not running a data center where you have thousands of disks to see the effect.

[–] [email protected] 1 points 9 months ago

And I restate - that risk is small. You’re not running a data center where you have thousands of disks to see the effect.

Fair enough, even though I've seen that effect in smaller setups than that.

[–] [email protected] 1 points 9 months ago (1 children)

Ok thanks.

Do you use anything to manage disk failure?

[–] [email protected] 2 points 9 months ago

Yes, smartmontools.