this post was submitted on 22 Aug 2023
7 points (76.9% liked)

datahoarder

6603 readers
3 users here now

Who are we?

We are digital librarians. Among us are represented the various reasons to keep data -- legal requirements, competitive requirements, uncertainty of permanence of cloud services, distaste for transmitting your data externally (e.g. government or corporate espionage), cultural and familial archivists, internet collapse preppers, and people who do it themselves so they're sure it's done right. Everyone has their reasons for curating the data they have decided to keep (either forever or For A Damn Long Time). Along the way we have sought out like-minded individuals to exchange strategies, war stories, and cautionary tales of failures.

We are one. We are legion. And we're trying really hard not to forget.

-- 5-4-3-2-1-bang from this thread

founded 4 years ago
MODERATORS
 

I have a Thinkpad mini that needs to expand it's disagree storage and have a couple of Red 4Tb with basically no use.

I wanted to plug one of them over USB, but it seems that docker just doesn't like to have volumes on external drives. AFAIK docker starts before the drive is fully mounted, preventing it from doing so. I couldn't find any reliable way to work around this (but I'm open to suggestions!).

I was wondering if it makes sense too just get an extension SATA cable, if they even exist, and have the drive outside the case. One of the worries I have is if it will have enough power (being meant for 2.5 drives originally).

The alternative would be to either change the server itself or to buy a larger 2.5 instead to keep up for a while.

top 4 comments
sorted by: hot top controversial new old
[–] MYWNcWR9Rgc31zkhTOsA@hexbear.net 4 points 1 year ago* (last edited 1 year ago) (1 children)

Assuming Linux with SystemD,

sudo systemctl edit docker
[Unit]
RequiresMountsFor=/path/to/external/volume

You can use a SATA caddy with its own power supply if your basic USB adaptor isn't able to draw enough.

[–] Railcar8095@lemm.ee 1 points 1 year ago

Haven't seen this option before, will try today!

Thanks!

[–] PriorProject@lemmy.world 3 points 1 year ago

I wanted to plug one of them over USB, but it seems that docker just doesn't like to have volumes on external drives. AFAIK docker starts before the drive is fully mounted, preventing it from doing so. I couldn't find any reliable way to work around this (but I'm open to suggestions!).

You haven't said what operating-system you're using, how your mount was configured, or how you're starting docker or your containers. An external drive is the normal way to do this, though, and I do it on Linux with ZFS drives and docker-compose auto-starting the containers and it works fine.

[–] Moonrise2473@feddit.it 1 points 1 year ago

You mean thinkcentre tiny?