On 2/28/23 15:02, Don Hammer wrote:


3306 Issuing autochanger "slots" command.

Device "HP_SureStore" has 8 slots.

Connecting to Storage daemon harorbu01-sd at 192.168.1.16:9103 ...

3306 Issuing autochanger "list" command.

Slot |   Volume Name    |   Status  |     Media Type       |      Pool          
|

------+------------------+-----------+----------------------+--------------------|
     1 |         BGB847L6 |      Used |                LTO-5 |             
Weekly |
     2 |         BGB846L6 |      Full |                LTO-5 |             
Weekly |
     3 |         BGB843L6 |      Full |                LTO-5 |             
Weekly |
     4 |         BGB842L6 |      Full |                LTO-5 |             
Weekly |
     5 |         BGB841L6 |      Full |                LTO-5 |             
Weekly |
     6 |         BGB840L6 |      Full |                LTO-5 |             
Weekly |
     7 |         BGB845L6 |      Full |                LTO-5 |             
Weekly |
     8*|         CLNU00L1 |         ? |                    ? |                  
? |

Which is correct, however when I load tape 2 BGB846L6 and then run status slots 
it results in

*status slots*


3306 Issuing autochanger "list" command.

Slot |   Volume Name    |   Status  |     Media Type       |      Pool          
|

------+------------------+-----------+----------------------+--------------------|
     1 |                  |           |                      |                  
  |
     2 |         BGB846L6 |      Full |                LTO-5 |             
Weekly |
     3 |         BGB843L6 |      Full |                LTO-5 |             
Weekly |
     4 |         BGB842L6 |      Full |                LTO-5 |             
Weekly |
     5 |         BGB841L6 |      Full |                LTO-5 |             
Weekly |
     6 |         BGB840L6 |      Full |                LTO-5 |             
Weekly |
     7 |         BGB845L6 |      Full |                LTO-5 |             
Weekly |
     8*|         CLNU00L1 |         ? |                    ? |                  
? |

Hello Dan,

It seems your tapes may be mislabeled, or you simply loaded tape BGB847L6 into some drive. Notice volume BGB846L6 is still in slot 2, and slot 1 is empty.

Maybe just s typo.

BUT, in your next output we see BGB846L6 in the drive.


*status drive

The defined Storage resources are:

Autochanger "HP_SureStore" with devices:

    "HP_LTO" (/dev/nst0)

Device Tape is "HP_LTO" (/dev/nst0) mounted with:

     Volume:      BGB846L6                            <--------------- 46

    Slot 2 is loaded in drive 0.                     <---- HUH? We can clearly 
see slot 1 is empty

I have a feeling that the Bacula labels written on the tape(s) do not match the barcodes. OR, you have provided mismatched (timing-wise) outputs. :)


Here are my device and autochanger configs

Device {
   Name = "HP_LTO"
   Description = "HP_LTO"
   MediaType = "LTO-5"
   DeviceType = "Tape"
   ArchiveDevice = "/dev/nst0"
   AutomaticMount = yes
   AlwaysOpen = yes
   Autochanger = yes

I would remove these three lines, they are not necessary in a Device 
configuration:
----8<----
   ChangerDevice = "/dev/sg1"
   ControlDevice = "/dev/nst0"
   ChangerCommand = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d"
----8<----

   AlertCommand = "/opt/bacula/scripts/tapealert %l"
   MaximumNetworkBufferSize = 32768


You never want to set a MaximumVolumeSize for tapes (unless there is some special issue with your drives). Let the tape drive tell Bacula when the tape is full:
----8<----
   MaximumVolumeSize = 1000000000000
----8<----

I do not see this option in the Enterprise, nor the Community manuals:
----8<----
>    VolumeCapacity = 1000000000000
----8<----

   MaximumFileSize = 2000000000

   MaximumConcurrentJobs = 1
   SpoolDirectory = "/tmp"
   MaximumSpoolSize = 5000000000
   MaximumJobSpoolSize = 5000000000
   LabelType = "Bacula"
}

Autochanger {
   Name = "HP_SureStore"
   Device = "HP_LTO"
   ChangerDevice = "/dev/sg1"
   ChangerCommand = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d"
}


Please show us the Director's Storage resource that points to this SD's Autochanger named 
"HP_SureStore"

Additionally, please show us some logs of jobs that make you manually mount a 
volume:

* ll joblog jobid=xxxx


Thank you,
Bill

--
Bill Arlofski
w...@protonmail.com

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to