So my plan based on reading was to get a mini pc and a nas. But then I realized… what is the best way to connect them. So I started doing more reading. And I confused myself.

So a NAS has it’s own CPU and such, and other computers can talk directly to it over the network. But if I am using a mini pc to run the server, then I assume I would want a really fast direct connection to the storage. So it seems like I would want the NAS to be on the network as well as directly connected to the mini PC. And of course the mini pc would need to be on the network as well. Stuff I saw about connecting them directly seemed to pretty much use the Ethernet ports and a crossover cable. So that would mean that both devices would have to have two Ethernet ports, right?

And the bonus question is, would it just be better for the NAS to really be a dumb DAS for the mini pc instead?

Edit to summarize: For having two devices, the consensus is that LAN is good enough (just make sure you have a decent switch between them). A few like doing it all on one device for a variety of reasons.

  • ntn888@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 hours ago

    Since you’re already building a custom server, isn’t it just better to include HDDs in there, and have a single box? (just get a bigger case, SFF for example) It’d be good for power consumption as well. What are you trying to achieve with a separate NAS?

    • Lem453@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      57 minutes ago

      To be fair i really like having a separate nas to my main docker/proxmox applications server. It allows me to mess around with my services or restart the system while not having to mess with the more sensitive spinning drives or important services like pihole.

      Also gives me a nice method for local backup in 3-2-1 method.

      That being said, I wouldn’t recommend this for someone just starting out.

      If anyone is wondering, I have the docker container itself mount the NFS share from the Unraid NAS. My docker server is all nvme ssds for things like the app itself and its config. Large data sets like photos and media are in the same via NFS.

  • Appoxo@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    6 hours ago

    For inspiration:
    Old setup:

    • Computer/file host: 11th Gen NUC
    • Ext. 8TB HDD via USB
    • Passed through docker to Jellyfin container
    • File administration via arr-suite and SMB on my PC.

    New setup:

    • Compute: 11th Gen NUC
    • Runs docker
    • file storage: TrueNAS scale via NFS to proxmox (direct connection via ethernet. uGreen DXP4800+ 10GbE <-> 13th Gen NUC with optional 2.5GbE LAN interface)
    • File host: Debian-VM
    • Mounted to NUC via NFS
    • File administration/access:
      • PC: SMB to file server
      • arr-Suite: NFS mount passed from host
      • Jellyfin: Access via direct NFS mount in docker compose.

    While not painless I think I learned a substantial amount on how Posix permissions work and confirms why native ACLs while more complicated are superior.
    Also learned a bit about Samba, fstab and NFS c:

  • Matt The Horwood@lemmy.horwood.cloud
    link
    fedilink
    English
    arrow-up
    2
    ·
    12 hours ago

    I have a mini pc with a 4TB drive connected to it for my jellyfin server, I also use the server as a nas for my osmc pi to watch stuff on the living room TV. 1Gbs is plenty fast for 1080p

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    4
    ·
    16 hours ago

    First off you don’t need cross over cables in 2024.

    If you are just doing purely a media server you are fine with the local lan. Just get a switch and be done with it. If you are planning on doing something storage intensive like a bunch of VMs doing intensive work then you can get a dedicated link between the devices. However, that is most likely unneeded.

  • slazer2au@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    20 hours ago

    Stick the minipc and NAS on the same LAN. Almost all LANs are at least 1Gb which is far more than you need to stream a video of 4-8Mb/s for 1080P

    • phanto@lemmy.ca
      link
      fedilink
      English
      arrow-up
      2
      ·
      17 hours ago

      I have a Mini PC from China for 200$ Canuckian (That’s like 25 US dollars) which has two 2.5 GB ports. A lot of NASes these days also have 2.5 GB. As long as you don’t stick a 1GB switch between them, you have plenty fast speeds.

      • Appoxo@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 hours ago

        Connected my NAS 10GbE directly to my proxmox 2.5GbE interface.
        Set up the IP as static with jumbo frames and voilá direct NFS storage.
        Took me 4 weeks to get it all together but man was it satisfying to see it work.

  • AMillionMonkeys@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    20 hours ago

    If you can avoid having you server and the media library on separate systems you should. That means buying (or I suppose building, but I wouldn’t recommend it) a NAS with sufficient processing ability to stream / transcode as much as you need, or stuffing a lot of storage into your mini PC.
    One of the problems you’ll run into if you use separate systems is that it’s non-trivial to get the server to automatically notice new items in the media library and update to include them. I’m sure there are others.

    • Appoxo@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      3
      ·
      6 hours ago

      Also makes it much simpler to set up backups and migrate the compute-focused pc to a new OS without needing to look much after the files

  • originalucifer@moist.catsweat.com
    link
    fedilink
    arrow-up
    4
    ·
    23 hours ago

    no, you dont need multiple nics. todays networking is plenty fast. if you really wanted to mount fast youd maybe consider a iscsi, but thats just me showing my age.

    depending on the nas… you would make some shared foldering available to the jellyfin machine to mount over the network. users connect to the jellyfin machine, jellyfin feeds them its mounted content.

    personally, i use a local copy of the content (6x4tb drives) on the same machine as jellyfin and use the nas as backup. you have a backup, right?

    some nas devices will allow multiple nics on the same network to increase throughput, but its really not about directly connecting 2 ethernet devices.

    • SailorsLife@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      22 hours ago

      ok, I see. So network is fast enough. That works for me. The miniPC only has 500gb. So that is why I figure I need the extra storage. As for a backup, I figured I would have to raid it. The only other option I can think of would be to run a second NAS or something. And that seems like overkill.

      • originalucifer@moist.catsweat.com
        link
        fedilink
        arrow-up
        2
        ·
        22 hours ago

        if you do not have a copy of something in different place, you do not have a backup. raid != backup!, its for reliability (and sometimes speed).

        i actually have the local copy, a nightly backup to the nas device, and set of offline drives i keep in a pelican case i refresh a few times per year as a secondary backup.

        • SailorsLife@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          22 hours ago

          I thought there was a raid setting where it basically duplicated the data across the drives such that if any one of them fail it can recreate the data. That should at least cover the “local” backup part. For more important things like family videos and such I have external drives that are offline unless I am uploading new videos and such. But really I should have some kind of offsite backup for that kind of stuff.

          • originalucifer@moist.catsweat.com
            link
            fedilink
            arrow-up
            4
            ·
            21 hours ago

            yes, that is what raid is but that is not a backup. it is making that single logical drive of your data resilient to a single drive failure. if anything goes sideways and you lose 2 drives, you lose 100% of your data. and it does happen. think power supply failure spiking your drives or whatnot.

            you dont have to take my word for it, it is well known and well advertised that raid is not a backup.

            • SailorsLife@lemmy.worldOP
              link
              fedilink
              English
              arrow-up
              2
              ·
              21 hours ago

              yeah, I am totally with you. For the media server, I just don’t know how much money I want to put into backing it up. For the important stuff. I really wish I knew of an offsite backup that I felt like I could trust. But most business models’ these days seem to be hinged on hoping nothing ever goes wrong… or just paying if it does.