Posts by manu

1) Message boards : Questions and problems : Move data dir on Ubuntu ? (Message 93898)
Posted 25 Nov 2019 by manu
Post:
Hi all, I've been searching for a solution, with no success so far.

On an Ubuntu 18.04 server with boinc-client 7.9.3+dfsg-5ubuntu2 installed, I do not want the boinc data dir to be on /var/lib/boinc-client but somewhere else, on another partition, say /home/boinc-client where there's far more free space.

There's no installation menu, like in Windows from what I could read, no easy way to specify where this expanding directory should be stored.

Changing the BOINC_DIR value in /etc/default/boinc-client is not enough, even with a symlink in /var/lib to the new location.

Changing the WorkingDirectory variable in /lib/systemd/system/boinc-client.service neither (yes, with systemctl daemon-reload...)

Replacing the home dir in /etc/passwd for boinc from /var/lib/boinc-client to /home/boinc-client ? Not working better...

Whatever I've been trying so far, I get this sort of logs in syslog:
Nov 23 11:46:54 sd-157532 systemd[1]: Started Berkeley Open Infrastructure Network Computing Client.
Nov 23 11:46:54 sd-157532 systemd[15221]: boinc-client.service: Changing to the requested working directory failed: No such file or directory
Nov 23 11:46:54 sd-157532 systemd[15221]: boinc-client.service: Failed at step CHDIR spawning /usr/bin/boinc: No such file or directory
Nov 23 11:46:54 sd-157532 systemd[1]: boinc-client.service: Main process exited, code=exited, status=200/CHDIR
Nov 23 11:46:54 sd-157532 systemd[15229]: boinc-client.service: Changing to the requested working directory failed: No such file or directory
Nov 23 11:46:54 sd-157532 systemd[15229]: boinc-client.service: Failed at step CHDIR spawning /bin/rm: No such file or directory
Nov 23 11:46:54 sd-157532 systemd[1]: boinc-client.service: Control process exited, code=exited status=200
Nov 23 11:46:54 sd-157532 systemd[1]: boinc-client.service: Failed with result 'exit-code'.

Has anyone ever been able to move this boinc-client directory somewhere else /var/lib on a Ubuntu's installation? And how?
Thanks for reading.
manu




Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.