Moving /var/discourse and /var/lib/docker

I need to free up disk space as our main volume is almost full.

I tried:

cd /var/discourse
./launcher stop app

cd /var/
cp -R discourse /mnt/forums/discourse
mv discourse/ discourse-backup/
ln -s /mnt/forums/discourse discourse

cd /var/lib/
cp -R docker /mnt/forums/docker
mv/docker/ docker-backup
ln -s /mnt/forums/docker docker
cd /var/discourse
./launcher start app

Everything seems to start but nothing works, just a 502 gateway error.

What mistake could I have possibly made and what is the best way to troubleshoot?

This move would free up 225+gb for us.

Bumping for some thoughts from other community members.

Possibly an ownership or permissions error? I prefer to use cp -a (as root) although even that’s not necessarily a perfect copy - use tar or cpio for that.

Possibly something doesn’t like links, in which case a mount or loopback mount might be better.

Ideally, though, there’s a log somewhere which tells us what it was which didn’t start or didn’t like what it found.

Thanks. I ended up moving shared/ and trimming the overlay2 directory. This helped quite a bit.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.