cannot create temp file for here-document: No space left on device...
Bo Berglund
bo.berglund at gmail.com
Tue May 9 16:05:30 UTC 2023
On Tue, 09 May 2023 07:53:27 -0400, Bo Berglund <bo.berglund at gmail.com> wrote:
>On Tue, 09 May 2023 11:23:37 +0200, Oliver Grawert <ogra at ubuntu.com> wrote:
>>are you running a subversion server over there ? that DB usually holds
>>svn transaction metadata ...
>>
>
>Yes, I am running an Subversion server, which is a backup server for the live
>svn. It uses svnsync nightly to move data from the live server to this server.
>And I know these are metadata and should not be messed with....
>
>However, I have to do something otherwise it will totally break down.
>
>Meanwhile I have found that the main disk on this server has a "data" partition
>formatted as ext4 and so far not used at all. But it is mounted in $HOME/data
>but I have not used it as yet.
>So its capacity of some 75+ GB is available.
>
>Can this work:
YES IT DID!
-----------
>
>1) Stop the subversion service (how?)
sudo systemctl stop apache2
>
>2) Move /var/lib/svn to the root of the so far unused data drive:
> sudo mv /var/lib/svn /home/bosse/data
> thus freeing up the 18GB of data used by svn
> Or should it be:
> sudo mv /var/lib/svn/* /home/bosse/data
Actually I did this:
sudo mv /var/lib/svn/* /home/user/data
This leaves an empty /var/lib/svn directory ready to mount into.
>3) Edit the /etc/fstab entry such that it will mount the copied dir
> into /var/lib as svn
>
> UUID=fb4a08b7-378e-42eb-9b7a-2c7b4f85cd06 /var/lib/svn ext4 nodev,nosuid 0 2
>
This worked fine to let the moved files wind up back where they were before but
now not using up / space.
>4) Restart the subversion service
sudo systemctl start apache2
After this procedure my system does no longer complain about no disk space and
the subversion server is accessible like before via the web interface.
Case closed.
--
Bo Berglund
Developer in Sweden
More information about the ubuntu-users
mailing list