unmounting datastore disk

tlex

Active Member
Mar 9, 2021
106
15
38
44
Good day,
I did follow this thread and created a Remote location that is actually local in order to be able to make a sync job to an external usb disk such as :

"Hi, the easiest way of doing that would be to create a Sync Job to a Remote (that is not actually a remote, let me explain).
You can do offsite-copies to other PBS Servers with the "Sync Job" feature for datastores. In this case we want to sync not to a different PBS server, but to our same server with a different (external) drive.

To do this, create a "Remote" in Configuration->Remotes that points to localhost. Then create a datastore on your external HDD, click on that newly created Datastore, go to "Sync Jobs", create a new sync job, choose the "Source Remote" you just created earlier that points to localhost and set "Source Datastore" to the Datastore you want to copy to that external drive."


This is working great but I was wondering if there is an easy way to unmount my usb disk once the sync job is completed ?
I tried with umount but I get : umount: /mnt/datastore/Passport4tb: target is busy.

Any idea or suggestions ?
 
you need stop pbs then umount then restart pbs
Code:
systemctl stop proxmox-backup-proxy.service proxmox-backup.service
umount /mnt/datastore/XXX
systemctl start proxmox-backup.service proxmox-backup-proxy.service
 
  • Like
Reactions: tlex