How do I change the data directory in Ubuntu?

Message boards : Number crunching : How do I change the data directory in Ubuntu?

To post messages, you must log in.

AuthorMessage
BKFC

Send message
Joined: 21 Apr 20
Posts: 34
Credit: 3,160,585
RAC: 0
Message 99894 - Posted: 3 Dec 2020, 22:07:14 UTC

[I've seen this topic in previous posts, with conflicting advice]

I would like to move the data directory from my SSD to a HDD. After stopping the client (and restarting afterward) ,I have tried changing the BOINC_DIR path, and also simply putting a symlink to the new folder on the HDD, but everything I've tried basically breaks the package, and nothing runs.

Is there an up-to-date set of instructions for doing this?
ID: 99894 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
mikey
Avatar

Send message
Joined: 5 Jan 06
Posts: 1895
Credit: 9,164,787
RAC: 4,010
Message 99898 - Posted: 4 Dec 2020, 0:39:30 UTC - in response to Message 99894.  

[I've seen this topic in previous posts, with conflicting advice]

I would like to move the data directory from my SSD to a HDD. After stopping the client (and restarting afterward) ,I have tried changing the BOINC_DIR path, and also simply putting a symlink to the new folder on the HDD, but everything I've tried basically breaks the package, and nothing runs.

Is there an up-to-date set of instructions for doing this?


both of your pc's now have tasks so it's working as it is right now
ID: 99898 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Aurum

Send message
Joined: 12 Jul 17
Posts: 32
Credit: 38,158,977
RAC: 0
Message 99903 - Posted: 4 Dec 2020, 1:49:58 UTC - in response to Message 99894.  

tried changing the BOINC_DIR path
I don't know how to change the data directory but wouldn't mind learning how.
Have you tried this way?
https://boinc.berkeley.edu/forum_thread.php?id=9633&postid=56258#56258
ID: 99903 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
BKFC

Send message
Joined: 21 Apr 20
Posts: 34
Credit: 3,160,585
RAC: 0
Message 99914 - Posted: 4 Dec 2020, 18:55:48 UTC - in response to Message 99903.  

I tried that, and it did nothing. Then a later post (I can't find it now) said just to put in a symlink to where you want it. I also tried that and it didn't work, hence my query.
ID: 99914 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
mikey
Avatar

Send message
Joined: 5 Jan 06
Posts: 1895
Credit: 9,164,787
RAC: 4,010
Message 99921 - Posted: 5 Dec 2020, 0:22:35 UTC - in response to Message 99894.  

[I've seen this topic in previous posts, with conflicting advice]

I would like to move the data directory from my SSD to a HDD. After stopping the client (and restarting afterward) ,I have tried changing the BOINC_DIR path, and also simply putting a symlink to the new folder on the HDD, but everything I've tried basically breaks the package, and nothing runs.

Is there an up-to-date set of instructions for doing this?


try here: http://pirates.spy-hill.net/help/linux-mvdir.html
ID: 99921 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
BKFC

Send message
Joined: 21 Apr 20
Posts: 34
Credit: 3,160,585
RAC: 0
Message 99927 - Posted: 5 Dec 2020, 17:47:30 UTC - in response to Message 99921.  
Last modified: 5 Dec 2020, 17:48:48 UTC

Those instructions are dated 2009, and among other things say to change the BOINC_DIR entry in /etc/defaults/boinc-client. I can confirm that boinc ignores that directive.

After several tries, the following seems to work for a mount point /aux on a HDD:

%/ sudo service boinc-client stop
%/ sudo cp -pR /var/lib/boinc-client /aux
%/ sudo rm -rf /var/lib/boinc-client
%/ sudo ln -sf /aux/boinc-client /var/lib/boinc-client
%/ sudo service boinc-client start
ID: 99927 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote

Message boards : Number crunching : How do I change the data directory in Ubuntu?



©2024 University of Washington
https://www.bakerlab.org