this post was submitted on 22 Aug 2023
4 points (100.0% liked)

Self Hosted - Self-hosting your services.

11440 readers
1 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

Important

Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!

Cross-posting

If you see a rule-breaker please DM the mods!

founded 3 years ago
MODERATORS
 

Soon, I'll need to increase the storage capacity of my Lemmy server. I use a Digital Ocean VPS running Debian 11. I don't really need to increase the RAM, CPU, or other core system resources so I planning on adding some block storage to my VPS. My question is: How can I tell Lemmy/Pict-rs to store/retrieve new data here without losing my existing data?

Assume the volume will be positioned on /mnt/vol-1.

Thanks in advance!

top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago
[–] [email protected] 3 points 1 year ago (1 children)

You could just move the data to the new location and then make it a symbolic link to the new disk.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Could even be a hard link.. (some applications don't like symbolic links).

Edit: or a mount point.

Make sure to stop the application, mount the drive and link it, start the application again You have a backup? :-)

[–] [email protected] 1 points 1 year ago

You can't do hard link to a directory, can you? Most of the time symbolic link works well, but yeah, sometimes you're gonna have to do a bind mount.

[–] [email protected] 2 points 1 year ago

You could something like mergefs to just merge both drives together. Then you wouldn't need to add a new pathway.