Re: [Bacula-users] migrate job
On 7/3/24 7:39 AM, Stefan G. Weichinger wrote: I can't get that migrate job running. [...snip...] > I have diskbased volumes in Storage "File" and want to migrate them to > physical tapes in Storage "HP-Autoloader", Pool "Daily" Hello Stefan, Something is quite wrong here... :) And a lot of extra information is missing. Your status storage shows that it is reading from the "daily" pool, using the tape drive "HP-Ultrium", and it is wanting to write to the "Daily" pool and also use the same tape drive - Of course, it is an impossibility to read and write from one device at the same time. :) This is clearly not what you described as what you want. 8< > Running Jobs: > Writing: Full Backup job VM-vCenter JobId=3498 Volume="CMR933L6" > pool="Daily" device="HP-Ultrium" (/dev/nst0) > spooling=0 despooling=0 despool_wait=0 > Files=0 Bytes=0 AveBytes/sec=0 LastBytes/sec=0 > FDSocket closed > Reading: Increme ntal Migrate job migrate-to-tape JobId=3497 Volume="" > pool="Daily" device="HP-Ultrium" (/dev/nst0) newbsr=0 > Files=0 Bytes=0 AveBytes/sec=0 LastBytes/sec=0 > FDSocket closed 8< Job { Name = "migrate-to-tape" Type = "Migrate" Pool = "File" NextPool = "Daily" JobDefs = "DefaultJob" PurgeMigrationJob = yes Enabled = yes MaximumSpawnedJobs = 20 SelectionPattern = "." SelectionType = "OldestVolume" } The `SelectionPattern` setting means nothing here since you have specified `SelectionType = "OldestVolume"`. From the docs: 8< The Selection Pattern, if specified, is not used. 8< Pool { Name = "Daily" Description = "daily backups" PoolType = "Backup" MaximumVolumes = 30 VolumeRetention = 864000 VolumeUseDuration = 432000 Storage = "HP-Autoloader" } OK, this is the destination pool. We don't see the source pool. Typically, I set the NextPool in the source pool, but setting it in a Schedule or the Copy/Migration control job is OK too. We will need to see more... Can you show: - The 'File" Pool - The "DefaultJob" JobDefs In bconsole: * ll joblog jobid=3497 * ll joblog jobid=3498 It seems to me from what I see so far, that you may have not restarted the SD, or not reloaded the Director after making changes to the settings the Migration Control and Pool and we are somewhere mid-stream between changes. Best regards, Bill -- Bill Arlofski w...@protonmail.com signature.asc Description: OpenPGP digital signature ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] migrate job
I can't get that migrate job running. Job { Name = "migrate-to-tape" Type = "Migrate" Pool = "File" NextPool = "Daily" JobDefs = "DefaultJob" PurgeMigrationJob = yes Enabled = yes MaximumSpawnedJobs = 20 SelectionPattern = "." SelectionType = "OldestVolume" } I have diskbased volumes in Storage "File" and want to migrate them to physical tapes in Storage "HP-Autoloader", Pool "Daily" Pool { Name = "Daily" Description = "daily backups" PoolType = "Backup" MaximumVolumes = 30 VolumeRetention = 864000 VolumeUseDuration = 432000 Storage = "HP-Autoloader" } The job doesn't do anything, it seems. What is it waiting for? I labeled a new volume "CMR933L6" in Pool "daily": *st st Automatically selected Storage: File Connecting to Storage daemon File at samba:9103 samba-sd Version: 15.0.2 (21 March 2024) x86_64-pc-linux-gnu-bacula debian 12.0 Daemon started 03-Jul-24 15:29. Jobs: run=0, running=2 max=20. Ulimits: nofile=1 memlock=unlimited status=ok Heap: heap=528,384 smbytes=1,938,763 max_bytes=1,938,957 bufs=416 max_bufs=418 Sizes: boffset_t=8 size_t=8 int32_t=4 int64_t=8 mode=0,0 newbsr=0 Crypto: fips=N/A crypto=OpenSSL 3.0.9 30 May 2023 Res: ndevices=2 nautochgr=1 Caps: APPEND_ONLY, IMMUTABLE Running Jobs: Writing: Full Backup job VM-vCenter JobId=3498 Volume="CMR933L6" pool="Daily" device="HP-Ultrium" (/dev/nst0) spooling=0 despooling=0 despool_wait=0 Files=0 Bytes=0 AveBytes/sec=0 LastBytes/sec=0 FDSocket closed Reading: Incremental Migrate job migrate-to-tape JobId=3497 Volume="" pool="Daily" device="HP-Ultrium" (/dev/nst0) newbsr=0 Files=0 Bytes=0 AveBytes/sec=0 LastBytes/sec=0 FDSocket closed Director connected using TLS at: 03-Jul-24 15:33 Jobs waiting to reserve a drive: 3603 JobId=3498 Tape device "HP-Ultrium" (/dev/nst0) is busy reading. Device status: Autochanger "HP-Autoloader" with devices: "HP-Ultrium" (/dev/nst0) Device File: "FileStorage" (/mnt/backup/bacula) is not open. Available Space=3.241 TB == Device Tape is "HP-Ultrium" (/dev/nst0) mounted with: Volume: CMR933L6 Pool:*unknown* Media type: LTO-6 Total Bytes Read=0 Blocks Read=0 Bytes/block=0 Positioned at File=1 Block=0 Slot 4 is loaded in drive 0. == Used Volume status: Reserved volume: CMR933L6 on Tape device "HP-Ultrium" (/dev/nst0) Reader=0 writers=0 reserves=1 volinuse=0 worm=0 Volume: CMR912L6 no device. volinuse=0 And what does the last line with CMR912L6 tell me? thanks! ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users