Change destination for processed products

Dear all,

I am running low on disk space so I added a new volume to my machine under /volume.

Is it possible to change the destination path for the processed products to this new volume?

Best regards,
Felix

Dear Felix,

If you want to use a new volume, is quite simple to move the existing data.
You can do the following operations:

  • Create a new directory ex. /volume/archive on your new volume
  • Stop the services sen2agri-demmaccs.timer sen2agri-demmaccs, sen2agri-services, sen2agri-executor, sen2agri-orchestrator, sen2agri-scheduler

sudo systemctl stop sen2agri-demmaccs.timer sen2agri-demmaccs sen2agri-services sen2agri-executor sen2agri-orchestrator sen2agri-scheduler

  • Copy the content of current /mnt/archive to /volume/archive

sudo cp -fr /mnt/archive/* /volume/archive

  • Execute :

sudo chmod -R 777 /volume/archive

  • Remove/rename the current /mnt/archive into /mnt/archive1 (for example)

sudo mv /mnt/archive /mnt/archive1

  • Create a symlink /mnt/archive to /volume/archive with:

sudo ln -s /volume/archive /mnt/archive

  • Start the services you previously stopped.

sudo systemctl start sen2agri-demmaccs.timer sen2agri-demmaccs sen2agri-services sen2agri-executor sen2agri-orchestrator sen2agri-scheduler

This should be enough and should work without any issue as basically, for the system, the paths will not change.

Best regards.
Cosmin

1 Like

Dear Cosmin,

thanks for your reply. Your instruction has perfectly solved my problem.

Best regards,
Felix