this post was submitted on 03 Jul 2024
14 points (100.0% liked)

Selfhosted

40329 readers
421 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
 

Hi,

I've been playing with a Dell mini PC (OptiPlex 7070) that I set up with Proxmox and a single Debian virtual machine that hosts a bunch of containers (mostly an *arr stack).

All the data resides on the single SSD that came with the machine, but I'm now satisfied with the whole ordeal and would like to migrate my storage from my PC to this solution.

What's the best approach software side? I have a bunch of HD in of varying size and age (therefore expected reliability) and I'd initially dedicate such storage to data I can 100% afford to lose (basically media).

I read I should avoid USB (even though my mini PC exposes a USB-C) for reliability, but on the other hand I'm not sure what other options I have that doesn't force me to buy a NAS or properly sized HD to install inside the machine...

Also, what's a good filesystem for my usecase?

Thank for any tips.

you are viewing a single comment's thread
view the rest of the comments
[–] Lifebandit666@feddit.uk 2 points 4 months ago* (last edited 4 months ago) (6 children)

I have also got a dell optiplex and Proxmox and a Debian machine with mostly Arr in containers.

I also have 3 old HDDs that I'm using for it, of various sizes (2x1tb and 3/4tb)

I have used a powered usb3 to sata connector to hook them up to the Dell. As in I have 3 usb to sata connectors, and each one also has a plug socket. I've got those 3 plus my Dell in a 4 gang extension lead so it's only using 1 plug socket in my kitchen. They were about £15 each on Amazon.

I have had a gotcha from using usb that destroyed my setup.

I now have a working solution that will stop this happening again:

So I have 3 usb-sata HDDs hooked in via the usb ports. I set up Open Media Vault as a VM. Then I passed through the USB drives to the OMV VM.

Those drives are then shared via SMB (I've just added NFS) to everything that needs it via the OMV VM.

I can then access the HDDs via this SMB share in Proxmox for backups if that's what you wanna do.

Now the reason I've done it this way is because originally I had the drives in Proxmox. I gave them names and then put those names in the Fstab of Proxmox. One of the drives "forgot" it's name and Proxmox wouldn't then boot because one of its drives wasn't accessible.

You could get around this by adding an option to the end of your fstab, I think the option is "nofail" but I'm not 100% so just check up on it.

I've used this option in my Debian VM Fstab to mount the NAS drives so my Arr stack can see them, and even got my Squeezebox server using them too. I'm using CIFS so I can see the drives on my Windows PC so I can manage the storage on my desktop.

So there you go, usb HDDs with passed through usb sockets to OMV VM is how I do it. If one of the drives fails OMV still runs and I just find I have no media in Plex and have to figure out why my drive isn't working anymore.

[–] 4am@lemm.ee 7 points 4 months ago (1 children)

I’m not familiar with using USB drives, but on any bare-metal system don’t use /dev/sdX but instead use /dev/disk/by-id/<big long disk identifier> in your fstab/cryptab etc. Even if you switch ports/bays, or your devices come up in a weird order after a reboot, config always points to the same physical disk. Way less stuff breaks.

[–] thegreekgeek@midwest.social 2 points 4 months ago

This will save you a lot of pain lol

load more comments (4 replies)