Hi there, in my setup I call internal drives connected by SATA “Tier 1”, and external drives connected by USB “Tier 2”. I have separate pools for jobs that write to tier 1 and for jobs that write to tier 2. Each given pool contains only volumes stored on 1 tier, so each pool is either a tier pool or a tier 2 pool, but never both.
For Tier 1 I have a working autochanger that created volumes in the pools that I use for tier 1 (only). For Tier 2 I have another autochanger that is supposed to create volumes in the pooks that i use for tier 2 (only), but it doesn’t do that. It gives me: The job needs media. Please mount volume unraid-libvirt-full-tier2-vol-0543 or label a new one for storage: "Tier2-FileChgr1-Dev1" (/mnt/tier2-01), pool: unraid-libvirt-full-tier2, media type: tier2-ext-usb1-folder1-file. Any chance to get this to work? Here are the definitions from the bacula-sd.config: Storage { Name = "bacula-sd" WorkingDirectory = "/opt/bacula/working" PidDirectory = "/opt/bacula/working" PluginDirectory = "/opt/bacula/plugins" MaximumConcurrentJobs = 20 } Device { Name = "Restore-FileChgr1-Dev99" Description = "Use this folder as default location for restore jobs" MediaType = "restore-int-user0-folder1" DeviceType = "File" ArchiveDevice = "/mnt/restore" RemovableMedia = no RandomAccess = yes AutomaticMount = yes LabelMedia = yes Autochanger = yes AutoSelect = no DriveIndex = 99 } Device { Name = "Tier1-FileChgr1-Dev1" Description = "unRAID local file system folder 1" MediaType = "tier1-int-user0-folder1-file" DeviceType = "File" ArchiveDevice = "/mnt/tier1-01" RemovableMedia = no RandomAccess = yes AutomaticMount = yes LabelMedia = yes AlwaysOpen = no Autochanger = yes MaximumConcurrentJobs = 5 } Device { Name = "Tier1-FileChgr1-Dev2" Description = "unRAID local file system folder 2" MediaType = "tier1-int-user0-folder2-file" DeviceType = "File" ArchiveDevice = "/mnt/tier1-02" RemovableMedia = no RandomAccess = yes AutomaticMount = yes LabelMedia = yes AlwaysOpen = no Autochanger = yes MaximumConcurrentJobs = 5 DriveIndex = 1 } Device { Name = "Tier2-FileChgr1-Dev1" Description = "unRAID external USB disk 1 folder 1" MediaType = "tier2-ext-usb1-folder1-file" DeviceType = "File" ArchiveDevice = "/mnt/tier2-01" RemovableMedia = yes RandomAccess = yes AutomaticMount = yes LabelMedia = yes AlwaysOpen = no Autochanger = yes MaximumConcurrentJobs = 5 } Device { Name = "Tier2-FileChgr1-Dev2" Description = "unRAID external USB disk 2 folder 1" MediaType = "tier2-ext-usb2-folder1-file" DeviceType = "File" ArchiveDevice = "/mnt/tier2-02" RemovableMedia = yes RandomAccess = yes AutomaticMount = yes LabelMedia = yes AlwaysOpen = no Autochanger = yes MaximumConcurrentJobs = 5 } Messages { Name = "Standard" Director = bacula-dir = All } Autochanger { Name = "tier1-int-user0-folder-changer" Description = "This changer makes all tier 1 folders on internal user0 file system accessible" Device = "Restore-FileChgr1-Dev99" Device = "Tier1-FileChgr1-Dev1" Device = "Tier1-FileChgr1-Dev2" ChangerDevice = "/dev/null" ChangerCommand = "/dev/null" } Autochanger { Name = "tier2-ext-usb-changer" Description = "This changer makes all tier 2 folders on external USB mass storage accessible" Device = "Tier2-FileChgr1-Dev1" Device = "Tier2-FileChgr1-Dev2" ChangerDevice = "/dev/null" ChangerCommand = "/dev/null" } Here are some definitions of storage, pools and jobs from bacula-dir.config: Job { Name = "unraid-libvirt-tier1" Description = "Job to backup unRAID Libvirt to Tier 1" Type = "Backup" Level = "Full" Messages = "Standard" Storage = "unraid-tier1-storage" Pool = "unraid-libvirt-full-tier1" FullBackupPool = "unraid-libvirt-full-tier1" IncrementalBackupPool = "unraid-libvirt-incr-tier1" Client = "bacula-fd" Fileset = "unraid-libvirt" Schedule = "First-Mon-Full" JobDefs = "DefaultJob" Enabled = yes AllowIncompleteJobs = no AllowDuplicateJobs = no } Job { Name = "unraid-libvirt-tier2" Description = "Job to backup unRAID Libvirt to Tier 2" Type = "Backup" Level = "Full" Messages = "Standard" Storage = "unraid-tier2-storage" Pool = "unraid-libvirt-full-tier2" FullBackupPool = "unraid-libvirt-full-tier2" IncrementalBackupPool = "unraid-libvirt-incr-tier2" Client = "bacula-fd" Fileset = "unraid-libvirt" Schedule = "Third-Mon-Full" JobDefs = "DefaultJob" Enabled = yes AllowIncompleteJobs = no AllowDuplicateJobs = no } Storage { Name = "unraid-tier1-storage" Description = "Tier 1 storage on unraid" SdPort = 9103 Address = “redacted" Password = “redacted" Device = "tier1-int-user0-folder-changer" MediaType = "tier1-int-user0-folder1-file" Autochanger = "unraid-tier1-storage" MaximumConcurrentJobs = 10 } Storage { Name = "unraid-tier2-storage" Description = "Tier 2 storage on unraid" SdPort = 9103 Address = “redacted" Password = “redacted" Device = "tier2-ext-usb-changer" MediaType = "tier2-ext-usb1-folder1-file" Autochanger = "unraid-tier2-storage" MaximumConcurrentJobs = 10 } Pool { Name = "unraid-libvirt-full-tier1" Description = "unRAID Libvirt full backups on Tier 1" PoolType = "Backup" LabelFormat = "unraid-libvirt-full-tier1-vol-" ActionOnPurge = "Truncate" MaximumVolumes = 100 MaximumVolumeJobs = 1 MaximumVolumeBytes = 50000000000 VolumeRetention = 6048000 AutoPrune = no Catalog = "MyCatalog" } Pool { Name = "unraid-libvirt-full-tier2" Description = "unRAID Libvirt full backups on Tier 2" PoolType = "Backup" LabelFormat = "unraid-libvirt-full-tier2-vol-" ActionOnPurge = "Truncate" MaximumVolumes = 100 MaximumVolumeJobs = 1 MaximumVolumeBytes = 50000000000 VolumeRetention = 6048000 AutoPrune = no Catalog = "MyCatalog" } Thanks for your time considering my config! All the best! J/C
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users