this post was submitted on 27 Dec 2023
90 points (95.0% liked)

Selfhosted

39151 readers
305 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 1 year ago
MODERATORS
 

n00b question, sorry. If I had a desktop that could hold 4 HD and 2 SSD, could I turn it into a NAS? Could someone point me in the right direction if this makes sense?

you are viewing a single comment's thread
view the rest of the comments
[–] unsaid0415@szmer.info 2 points 8 months ago* (last edited 8 months ago) (1 children)

Yeah. That's what I used to do when I started out.

The simplest thing to do is install Debian on the computer and create partitions. You have 4 HDDs and 2 SSDs so it'd be stupid to create 6 separate partitions for each drive.

See in the BIOS if your motherboard supports software RAID1, so you are protected against drive failure somewhat. This will allow you to get something barebones running that'll use at least 2 drives with redundancy. I assume the mobo RAID1 is stupid and only allows for max 2 drives, so the other drives will be just laying around useless. If that's the case, probably use the 2 SSDs first. I see other posters recommending higher orders of RAID, but I only have 2 HDDs so I never really delved into that :P Perhaps that's sound

With a system like that you could probably set up some small NFS for sharing your files by configuring it manually from the terminal.

Note that going with raw linux is "simpler" in the sense that it's perhaps easier to wrap your head around or tinker with, but TrueNAS or Unraid have GUIs that will allow you to create e.g. the mentioned NFS share with a few clicks, rather than having to do it from the terminal. Depends on what you're looking for. You could move up to TrueNAS or Unraid once you've played with raw Linux enough for example.


Once you have that,

I only ever dealt with ZFS and TrueNAS. ZFS will allow you to create a "partition" (pool in zfs terms) from many drives at the same time, so you'd be able to use more drives than just the two from RAID1.


The drives that you have are probably shitty SMR drives whose write speed dramatically slows down once you're writing to them for a longer time. Consider buying CMR drives in the future, or just going all-SSD if it fits your usecase. ZFS hates SMR drives.

[–] PupBiru@kbin.social 5 points 8 months ago (1 children)

i’d avoid BIOS-based RAID… it doesn’t really offer many benefits over linux-based raid like MDADM, and MDADM offers a LOT of up-sides for portability, repairability, diagnostics, etc

[–] lemmyvore@feddit.nl 2 points 8 months ago

BIOS RAID tends to be the worst of both worlds, it's not real hardware RAID and it's not as flexible as full software RAID.