I want to use an external drive that’s preformatted. Mainly, because I’d like to encrypt it. But also because I want to format to a specific filesystem, it using a newer kernel (on a laptop), with select options. I now have the disk ready and plugged in. What care do I have to take to manually move the /srv filesystem to the external drive? For example, things like when is /srv expected to be ready and usable? It will need to be decrypted, and mounted before /srv is available.
Also wondering about how to convince the Foris portal that my /srv is backed by an external drive if I make this manual move (and perhaps symlink /srv to point to the new location). This is perhaps only useful to have nextcloud going – which won’t let me proceed till it’s convinced /srv is on an external drive.
Edit: I also just noticed the ‘srv’ service, that seems to attempt to copy data off the existing location into a bind-mounted tmpfs. And it handles links specially. I’m guessing ths will need to be handled as well?