Hi Tomi, Thank you so much for these insights! It makes sense - at least somehow ;)
Never thought of the *Archive Device* to be honest. It is set to the exact same path in the example I've found, where they state it works <https://bugs.bareos.org/view.php?id=740>. Changes are good that you catched the culprit. I've read the documentation on this setting, but was not really able to wrap my head around what it's purpose exactly is and how it should be defined. However, if I change my device configuration as follows and restart bareos-sd, it does not complain - which is a good sign. Do you happen to know, if that's the correct way to do it (see config below)? Unfortunately I messed up my Volumes while tinkering around with this yesterday, so it seems I have start backing up from scratch. That said, it'll take some time to figure out if everything is working correctly - so any pointers what might be wrong with the following config would be highly appreciated. */etc/bareos/bareos-sd.d/device* Device { Name = ZH-lin10-HD-USB0-device ... Archive Device = "/media/usb0" Archive Device = "ZH-lin10-HD-USB1-device" ... } Device { Name = ZH-lin10-HD-USB1-device ... Archive Device = "/media/usb1" Archive Device = "ZH-lin10-HD-USB0-device" ... } Am Mittwoch, 28. August 2019 08:25:01 UTC+2 schrieb Tomi Pozderec: > > Hey Marco, > > Please note that I'm not an expert and my advice should be taken as such. > I'm still struggling with Bareos and my advice is likely to be wrong at > times. I'll try my best. > > As I understand it, you need at least *2 devices per `Archive Device`* > for consolidate job to be successful. One to read from the pool and another > to write to it. > My experience also tells me a couple of things: > 1. Bareos devices can only read/write into the same `Archive Device` path. > 2. Bareos will use/choose/reserve devices with same `Archive Device` and > `Media Type` for a specific job unless you set `Device Reserve By Media > Type = yes` > > This is what I think happens with your setup when you try to consolidate: > 1. When consolidation starts, Bareos reserves device > "ZH-lin10-HD-USB1-device"for writing. > 2. If, at this point `Device Reserve By Media Type` is set to "no", your > consolidation will break, because Bareos needs a device to read with, but > there's no available devices with same `Archive Device` as > `ZH-lin10-HD-USB1-device`. However: > 3. If, at this point `Device Reserve By Media Type` is set to "yes", > Bareos will ignore `Archive Device` when choosing a device for a job and > will choose any free device with same `Media Type` for reading. This time > Bareos chooses `ZH-lin10-HD-USB0-device` for reading. But this device is > only aware of `Archive Device` (disk path) = `Archive Device = > "/media/usb0"` That's why it's trying to find the specific volume at this > path. > > I hope this makes sense and that's it's not riddled with mistakes. Any > corrections are welcome and appreciated! > > Marco, let me know if you need additional help with your > config/understanding and I'll try to help. > -- You received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/5052da24-87eb-438c-892f-1ca3a9a5695a%40googlegroups.com.
