Adding additional drive as storage

Hey,
I’m completely new to Seafile.
I just installed Seafile on ubuntu 20.04 using the Auto install Seafile Server option.

My setup is that Seafile is installed on Proxmox as a VM. With the primary dive of 120gb.
I added an additional 6tb drive to the VM and I want to use it for the main storage of all the files.

What would be the best way to have all my files saved on the 6TB drive?

The only reason I’m asking is because the 120gb is on a SSD, and the 6TB is on Seagate EXOS drives.
and i figured having the OS on a separate drive would be helpful if i ever need to do a fresh install without wiping all my actual data.

but if there is a better way to do this, I’d definitely love to hear it.

Thanks!

That’s basically what I did with my seafile server on proxmox. I put the OS on a 12G virtual disk on the SSD storage, put the database on another 8GB virtual disk on the SSD, and then the rest of the storage on a 750GB disk that’s stored on the HDDs. My basic thought was that if I have a significant problem with the OS, I can restore just that disk from a backup, without losing data. But it was also handy when I wanted to upgrade the OS because I could deploy a new seafile, make sure everything works, then shutdown and move the database and data disks over to the new VM for minimal downtime.

I used LVM for the database and data volumes. I like to keep virtual disks down to no larger than 1TB, so if I need more, I add another disk and add it to the LVM volume group and grow the LV. It’s just easier to work with a few smaller disks than 1 large one. It can be very annoying when migration fails after 6 hours.

So, LVM volume database-db is mounted at /database, and seafile-data at /data. In /etc/mysql/mariadb.conf.d/50-server.cnf change datadir like “datadir = /database/mysql” and move the database files. Be sure to get the ownership and permissions the same as the original install location. Then when installing seafile, I made a seafile user for it to run as, and set /data/seafile as the home directory for that user, and installed seafile there, with /data/seafile-data as the data directory.

I think it has been working perfectly since 2018, or maybe even longer. Since I have ceph working now I keep thinking about switching to using the ceph pool storage backend for seafile, but haven’t been able to talk myself into messing with something that’s working, and that I have come to depend on.

That actually sounds like what I want to do.
But I already installed it, would you have any suggestions how to either move the seafile-data now that it’s already installed?

I ended up adding the Second drive as a mounted Directory /Storage
Then copied the seafile-data folder to /Storage/seafile-data
Deleted the original, and created a symbolic link for the folder.

This allowed the files to be stored on the /Storage Directory on the second 6TB drive.

This worked like a charm

Thank you!!

Sorry, work got in the way. That’s basically what I would have recommended. Gad you got it working!

Np. Thank you so much for you help!!
Really appreciate it!