Change data volume #75
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
My harddisk is full. I want to move the nextcloud datadir to a new disk, mounted at /mnt/HC1. I have tried a lot. The solution I would believe would work is this:
in
~/.abra/servers/domain.com/sky.domain.com.datadir.ymlI havevolumes: sky_domain_com_nextdata: driver: local driver_opts: type: none device: /mnt/HC1/sky-domain-data o: bindand in .env:
COMPOSE_FILE="compose.yml:../../servers/domain.com/sky.domain.com.datadir.yml"the yml is used, but the volume is not changed to the new version.
I have tried to delete the volume on the server:
docker volume rm sky_domain_com_nextdatabut I get:What is the best way to migrate to another drive?
Hey @jeppebundsgaard! We should totally have more docs on this!
That is usually because there is a container/stack still using the volume, you need to undeploy first.
@3wordchant I think you might have a good angle on this.
I myself would probably just undeploy everything,
mvall the shit to my new drive and then symlink the volume path to the new drive? I'm a pretty shitty sysadmin tbh...Would be much appreciated :-)
I did undeploy, but the containers were still lying around as DEAD, and I couldn't remove them (the container-ids were non-existing).
At 3 AM, I ended up doing exactly that: Moving, symlinking. But I also felt that was not the most transparent and sustainable solution.