It is possible to move volumes between devices see:
https://docs.bareos.org/TasksAndConcepts/HowToManuallyTransferDataVolumes.html

That said if your volumes and devices are all interchangeable I would configure 
the system to all work with them as a single entry.

Generally this means all your disk based volumes are in a single folder (really 
not an issue) so the device path all point to the same location.  

For disk volumes devices are ‘virtual’ and almost not real but a hold over from 
scheduling tape drives and other external media.


Brock Palen
1 (989) 277-6075
[email protected]
www.mlds-networks.com
Websites, Linux, Hosting, Joomla, Consulting



> On Apr 20, 2020, at 4:01 PM, Erich Eckner <[email protected]> wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> On Mon, 20 Apr 2020, Erich Eckner wrote:
> 
>> Hi,
>> 
>> I have a file-based backup with bareos with mutliple disks to store the 
>> files on:
>> 
>> - --------8<---------
>> Device {
>> Name = mnt
>> Media Type = File
>> Archive Device = /var/lib/bareos/storage/mnt
>> LabelMedia = yes;
>> Random Access = yes;
>> AutomaticMount = yes;
>> RemovableMedia = no;
>> AlwaysOpen = yes;
>> Description = "File device. A connecting Director must have the same Name 
>> and MediaType."
>> Maximum Concurrent Jobs = 10
>> }
>> - -------->8---------
>> and
>> - --------8<---------
>> Device {
>> Name = mnt2
>> Media Type = File
>> Archive Device = /var/lib/bareos/storage/mnt2
>> LabelMedia = yes;
>> Random Access = yes;
>> AutomaticMount = yes;
>> RemovableMedia = no;
>> AlwaysOpen = yes;
>> Description = "File device. A connecting Director must have the same Name 
>> and MediaType."
>> Maximum Concurrent Jobs = 10
>> }
>> - -------->8--------
>> upto mnt5.
>> It has used other stores than mnt in the past:
>> 
>> # df -h /var/lib/bareos/storage/mnt*
>> Filesystem           Size  Used Avail Use% Mounted on
>> /dev/mapper/bcrypt   1.4T  1.3T     0 100% /var/lib/bareos/storage/mnt
>> /dev/mapper/bcrypt2  1.4T  973G  332G  75% /var/lib/bareos/storage/mnt2
>> /dev/mapper/bcrypt3  1.4T  299G 1006G  23% /var/lib/bareos/storage/mnt3
>> /dev/mapper/bcrypt4  916G   77M  870G   1% /var/lib/bareos/storage/mnt4
>> /dev/mapper/bcrypt5  916G   77M  870G   1% /var/lib/bareos/storage/mnt5
>> 
>> However, now it is stuck, trying to put "Differential-0464" onto "mnt", 
>> which is full (as you can see above):
>> 
>> 20-Apr 08:02 bareos-sd JobId 869: Warning: stored/mount.cc:274 Open device 
>> "mnt" (/var/lib/bareos/storage/mnt) Volume "Differential-0464" failed: 
>> ERR=stored/dev.cc:746 Could not open: 
>> /var/lib/bareos/storage/mnt/Differential-0464, ERR=No such file or directory
>> 
>> Where is my error?
>> 
>> regards,
>> Erich
>> 
> 
> Hi,
> 
> I restarted the machine which runs the storage daemon and the director (which 
> aborted all the differential backups). This evening, it scheduled the usual 
> incremental backups, reused some old volumes and now runs out of incremental 
> volume space:
> 
> 20-Apr 21:50 bareos-sd JobId 896: Warning: stored/mount.cc:274 Open device 
> "mnt" (/var/lib/bareos/storage/mnt) Volume "Incremental-0471" failed: 
> ERR=stored/dev.cc:746 Could not open: 
> /var/lib/bareos/storage/mnt/Incremental-0471, ERR=No such file or directory
> 
> I fear, I have done something really simple wrong, because this looks like it 
> should be a simple setup :-(
> 
> Just for sake of completeness, here my 
> /etc/bareos/bareos-dir.d/storage/File.conf:
> 
> - ----8<----
> Storage {
>  Name = File
>  Address = sd.example.com
>  Password = "secret"
>  Device = mnt
>  Device = mnt2
>  Device = mnt3
>  Device = mnt4
>  Device = mnt5
>  Media Type = File
>  Maximum Concurrent Jobs = 20
> }
> - ---->8----
> 
> Another question as a workaround: Is it possible to move volumes from one 
> device to another? If so: how? Can I simply move the file and bareos will 
> correctly identify it again? Or is there a command in bconsole to do that (I 
> could not find one)?
> 
> regards,
> Erich
> 
> -----BEGIN PGP SIGNATURE-----
> 
> iQIzBAEBCAAdFiEE3p92iMrPBP64GmxZCu7JB1Xae1oFAl6d/5UACgkQCu7JB1Xa
> e1oCWQ/+Poq05o9LpfP3p2dlvOMSkVqYlelEtdFfDj+dfIv6kXTsaqdiyciOWym4
> D42aRaZ1v/iKas7DGgUWJMqJAsi+88nBiOFlLtXYnD8Fi2ovy2zfblJBG89n3LvT
> z/B/oGUsOKyeUcEFuugeqU4/zGVWDvLMbrnXHToRfhl6YwNfcwwsVsBN2jMzuQbl
> TmRJc9c1zeHhy5IV6+eHXs0BsYd4WxV++VGtDmGgciWiHsLCgiIit0v4ieIF9H3d
> pObsJK0zaEnTADO6ZzW+erFv+mifeMNQUGMSC7dshAi0SwbdAZI2bRcXuHRWrPmD
> AQ/ZKJwWTkilKqjRfTE8Cbtz3PvtaelA5GZJWsB/8ybM0a9JDVzXYqS1Qwh83yQD
> iNsfIv5ZmEjFJlJCgfzhHy30xC4QgxpP7/pBEXbRfxisuA53+qjf3AuThl3AeIRr
> DMqIX6Zmqp88mUWIFq9KAxT45TL5hFkyw8XkmxN4lm/tb0B/Jba9oXAsCWV90GdH
> iDx28EKfEedTLgbrcTb79kFKn1LZVn4+0gHyA0xB6KcCqKFEp3//Zx9rV+322tt9
> d0vaHBKppkKsCAISxvmW7a8hhMXpv4niR7M8/80ww1r3mbqojKoDoyexXTReveoG
> Fn/wP2OrHRRTYNy/MgnrBJeoZc0eLIivm18iCVZCwn76UJ8+NPY=
> =UXIc
> -----END PGP SIGNATURE-----
> 
> -- 
> 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/alpine.LNX.2.22.419.2004202153540.18605%40desk.ddns.eckner.net.

-- 
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/BE222064-40A1-4196-B9DC-CFFECD7F38F1%40mlds-networks.com.

Reply via email to