[SOLVED] Remove (removable) datastore

Elleni

Active Member
Jul 6, 2020
143
6
38
51
I would like to know the correct way to remove a removable (external usb disk) datastore from PBS correctly. After removing it by
Code:
proxmox-backup-manager datastore remove datapool
I cannot export the pool.
Code:
zpool export poolname
umount: /poolname: target is busy.
cannot unmount '/poolname': umount failed
zfs unmount poolname umount: /poolname: target is busy.
cannot unmount '/poolname': umount failed

So how is the correct procedure before physically detaching the external usb disk?
 
Last edited:
at the moment, you have to reload/restart the services 'proxmox-backup-proxy' and 'proxmox-backup' so they release the lock. after that you should be able to unmount

we plan to have some kind of enable/disable or export/import datastore function, but for now this is not implemented
 
Thanks for your information. How would I do that precisely? service proxmox-backup-proxy restart && service proxmox-backup restart? Tried the first command but it nothing happening. Cursor stalling in pbs console webinterface.
 
Thanks for your information. How would I do that precisely? service proxmox-backup-proxy restart && service proxmox-backup restart? Tried the first command but it nothing happening. Cursor stalling in pbs console webinterface.
you can go to Administration -> Services on the GUI to restart the services.

if you prefer CLI then systemctl restart proxmox-backup proxmox-backup-proxy should work
 
Thanks. That worked. After that I could export the removable disk pool. And thanks that you are planing to have some kind of enable/disable or export/import datastore function.
 
I'm confused by the above instructions. If the backup and backup-proxy services have things locked, how will restarting them help? You'll still be locked, no? I'm backing up to a hotplug SSD, and if I do the restart command above, I'm still unable to export the pool (granted, export is different from unmount, but still...) I found I have to do this:

systemctl stop proxmox-backup proxmox-backup-proxy

import or export pool

systemctl start proxmox-backup proxmox-backup-proxy
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!