Hello Thomas,

What is the Storage directive value in the JobDefs "DefaultJob"? If your
tape device is displayed as read storage it can mean that in the
"DefaultJob" is set "Tape1". If it isn't this case and if there is "File1",
then I would propose to look carefully what is the Storage value in the Job
directives when you run the "Migrate-to-tape" job manually. In Baculum it
will be the Run Job window. There should be Storage = "File1".

Alternatively, you can set Storage = "File1" in the Pool "File", which is
also correct but please make sure it will not change behavior of other Jobs
using this pool because Storage from Pool overrides Storage value in Job.

In Baculum there is a Migrate Job wizard that helps to create Migrate jobs.
You can find it in the job list page at the top (button "New migrate job").

Good luck.

Best regards,
Marcin Haba (gani)

On Sun, 1 May 2022 at 17:16, Thomas Bölscher <
tho...@hypercompuglobalmeganet.de> wrote:

>
>
> Hi and greetings from germany,
>
>
>
> i hope someone has an idea why i always run in trouble using the
> „migration“-job in bacula 11.06.
>
>
>
> I am running Bacula 11.0.6 with Baculum GUI on Ubuntu Server 20.04 (latest
> updates/patches installed) with a single HP LTO5 drive on an old HP
> Proliant ML350 G6.
>
> The server was freshly installed from the 11.06 DEB-packets available
> today.
>
>
>
> I am able to backup my windows-os clients/files directly to the bacula
> file storage and directly to LTO5 tape storage without a hassle.
>
> So direct backup from some windows-os based servers to disk, or direct
> backup to tape works like a charm.
>
>
>
> But when i try to migrate a former disk backup to a tape backup the whole
> process does not even start and i don’t see why that is.
>
> The „messages“ protocol states it is using the device „LTO5-Drive1“ to
> READ (what is kind of strange, because the migration job should use the LTO
> drive to WRITE and use a file-device for read). - After 15 minutes waiting
> there is the message „Fatal error: Storage daemon didn’t accept Device
> „LTO5-Drive1“ command.“  (The job queues forever, because the migration
> never comes to an end/never aborts. I have to restart all processes/the
> server)
>
>
>
> Before installing this on Ubuntu Server 20.04 i had another bacula 11.06
> setup running under Debian 11. -> And i had exactly the same problem there,
> too. That was the reason why i formated my whole debian 11 server setup and
> started from scratch with ubuntu 20.04, running now in exactly the same
> „migration-job“ problem as i did on debian 11 before.
>
> So i wasn’t able to get bacula „migration“-jobs running on two different
> setups (debian 11/ubuntu 20.04) so far. ☹
>
>
>
> As i am a bacula newbie, fiddling around with it only for about a week, i
> struggle to find the cause for this misbehavior.
>
>
>
> Here are some sniplets from my bacula director config:
>
>
>
> Storage {
>
>   Name = "File1"
>
>   SdPort = 9103
>
>   Address = "bacula-backup"
>
>   Password = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
>
>   Device = "FileChgr1"
>
>   MediaType = "File1"
>
>   Autochanger = "File1"
>
>   MaximumConcurrentJobs = 10
>
> }
>
>
>
> Storage {
>
>   Name = "Tape1"
>
>   SdPort = 9103
>
>   Address = "bacula-backup"
>
>   Password = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
>
>   Device = "LTO5-Drive1"
>
>   MediaType = "LTO3000"
>
>   MaximumConcurrentJobs = 10
>
> }
>
>
>
>
>
> Pool {
>
>   Name = "File"
>
>   PoolType = "Backup"
>
>   LabelFormat = "Vol-"
>
>   MaximumVolumes = 100
>
>   MaximumVolumeBytes = 53687091200
>
>   VolumeRetention = 31536000
>
>   AutoPrune = yes
>
>   Recycle = yes
>
> }
>
>
>
> Pool {
>
>   Name = "Tape1"
>
>   PoolType = "Backup"
>
>   LabelFormat = "Tape-"
>
>   LabelType = "Bacula"
>
>   MaximumVolumes = 100
>
>   MaximumVolumeBytes = 53687091200
>
>   VolumeRetention = 31536000
>
>   Storage = "Tape1"
>
>   AutoPrune = yes
>
>   Recycle = yes
>
>   Catalog = "MyCatalog"
>
> }
>
>
>
>
>
> Job {
>
>   Name = "Migrate-to-tape"
>
>   Type = "Migrate"
>
>   NextPool = "Tape1"
>
>   Fileset = "i7-11700k-fileset"
>
>   JobDefs = "DefaultJob"
>
>   SelectionPattern = "i7-11700k-backupjob"
>
>   SelectionType = "Job"
>
> }
>
>
>
>
>
> And here storage-daemon config sniplets:
>
>
>
>
>
> Device {
>
>   Name = "FileChgr1-Dev1"
>
>   MediaType = "File1"
>
>   ArchiveDevice = "/media/backups"
>
>   RemovableMedia = no
>
>   RandomAccess = yes
>
>   AutomaticMount = yes
>
>   LabelMedia = yes
>
>   AlwaysOpen = no
>
>   MaximumConcurrentJobs = 5
>
> }
>
>
>
> Device {
>
>   Name = "LTO5-Drive1"
>
>   MediaType = "LTO3000"
>
>   DeviceType = "Tape"
>
>   ArchiveDevice = "/dev/nst0"
>
>   RemovableMedia = yes
>
>   RandomAccess = no
>
>   AutomaticMount = yes
>
>   LabelMedia = yes
>
>   AlwaysOpen = yes
>
>   MaximumFileSize = 10000000000
>
>   MaximumConcurrentJobs = 5
>
>   LabelType = "Bacula"
>
> }
>
>
>
> Thank you very much in advance
>
> Thomas
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 
"Greater love hath no man than this, that a man lay down his life for his
friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za
przyjaciół swoich." Jezus Chrystus
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to