Hello,
I have setup in a PBS an external USB-SSD-Disk as a datastore (name zfsbackupext) for offsite backups that are done once a week.
During the other days I want to disable the Datastore for the PBS because the USB disk is not connected to the PBS and reenable it when the USB disk is connected again.
I made a crontab with following commands:
/sbin/proxmox-backup-manager datastore update zfsbackupext --maintenance-mode=offline ->"disable before disconnection"
/sbin/proxmox-backup-manager datastore update zfsbackupext --delete maintenance-mode ->"enable after connection"
which works in terms of putting the datastore in maintenance mode and ending maintenance mode.
But now I receive every minute a log entry when the disk is not connected:
proxmox-backup-proxy[1762]: lookup_datastore failed - unable to open chunk store at "/mnt/datastore/zfsbackupext/.chunks" - No such file or directory (os error 2)
The USB disk was properly disabled/unmounted via crontab in following order:
/sbin/pvesm set PBS-localUSB -disable 1 -> disable PBS datastore storage in PVE
/sbin/proxmox-backup-manager datastore update zfsbackupext --maintenance-mode=offline -> put PBS datastore in maintenance mode
/sbin/zpool export zfsbackupext -> remove zfs file system (temporarerely)
root /usr/bin/echo 1 > /sys/block/sdc/device/delete 2>&1 -> disconnect USB disk / block device
Is there another way or even a better way to disable the USB datastore to prevent logging?
I have setup in a PBS an external USB-SSD-Disk as a datastore (name zfsbackupext) for offsite backups that are done once a week.
During the other days I want to disable the Datastore for the PBS because the USB disk is not connected to the PBS and reenable it when the USB disk is connected again.
I made a crontab with following commands:
/sbin/proxmox-backup-manager datastore update zfsbackupext --maintenance-mode=offline ->"disable before disconnection"
/sbin/proxmox-backup-manager datastore update zfsbackupext --delete maintenance-mode ->"enable after connection"
which works in terms of putting the datastore in maintenance mode and ending maintenance mode.
But now I receive every minute a log entry when the disk is not connected:
proxmox-backup-proxy[1762]: lookup_datastore failed - unable to open chunk store at "/mnt/datastore/zfsbackupext/.chunks" - No such file or directory (os error 2)
The USB disk was properly disabled/unmounted via crontab in following order:
/sbin/pvesm set PBS-localUSB -disable 1 -> disable PBS datastore storage in PVE
/sbin/proxmox-backup-manager datastore update zfsbackupext --maintenance-mode=offline -> put PBS datastore in maintenance mode
/sbin/zpool export zfsbackupext -> remove zfs file system (temporarerely)
root /usr/bin/echo 1 > /sys/block/sdc/device/delete 2>&1 -> disconnect USB disk / block device
Is there another way or even a better way to disable the USB datastore to prevent logging?
Last edited: