cannot create temp file for here-document: No space left on device...

Bo Berglund bo.berglund at gmail.com
Tue May 9 11:53:27 UTC 2023


On Tue, 09 May 2023 11:23:37 +0200, Oliver Grawert <ogra at ubuntu.com> wrote:

>hi,
>Am Dienstag, dem 09.05.2023 um 05:11 -0400 schrieb Bo Berglund:
>> 
>> And /var/lib/svn/pc/db/txn-protorevs alone uses up 11.9 GB!
>>  
>
>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:

1) Stop the subversion service (how?)

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

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

   (Do I need to create the /var/lib/svn dir manually or will the mount
    command in fstab make it work?)

4) Restart the subversion service

If I can just move the subversion data to the separate partition and make it
visible exactly like the existing data, then it should work, or not?
This is how the existing svn dir is set up:

drwxrwxr-x 14 www-data  www-data  4096 2021-10-15 23:18 svn


-- 
Bo Berglund
Developer in Sweden




More information about the ubuntu-users mailing list