I omitted some data and the original thread I am resending this since it was 
blocked for size and not released.

From: Don Hammer
Sent: Thursday, February 16, 2023 1:28 PM
To: Ana Emília M. Arruda <emiliaarr...@gmail.com<mailto:emiliaarr...@gmail.com>>
Cc: bacula-users 
<bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>>
Subject: RE: [Bacula-users] Help with configuration

I have the tapes labeled and when I run status slots it results in.
The defined Storage resources are:
     1: File1
     2: harorbu01-sd
Select Storage resource (1-2): 2
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Connecting to Storage daemon harorbu01-sd at 192.168.1.16:9103 ...
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
The defined Storage resources are:
     1: File1
     2: harorbu01-sd
Select Storage resource (1-2): 2
Connecting to Storage daemon harorbu01-sd at 192.168.1.16:9103 ...
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 |                  |           |                      |                   
 |
    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 |         ? |                    ? |                  
? |

I ran status drive and it results in

*status drive
The defined Storage resources are:
     1: File1
     2: harorbu01-sd
Select Storage resource (1-2): 2
Connecting to Storage daemon harorbu01-sd at 192.168.1.16:9103

Deleted Content for size

Device status:
Autochanger "HP_SureStore" with devices:
   "HP_LTO" (/dev/nst0)

Device Tape is "HP_LTO" (/dev/nst0) mounted with:
    Volume:      BGB846L6
    Pool:        Weekly
    Media type:  LTO-5
    Total Bytes Read=64,512 Blocks Read=1 Bytes/block=64,512
    Positioned at File=0 Block=0
   Slot 2 is loaded in drive 0.


Used Volume status:
Reserved volume: BGB846L6 on Tape device "HP_LTO" (/dev/nst0)
    Reader=0 writers=0 reserves=0 volinuse=0 worm=0

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
  ChangerDevice = "/dev/sg1"
  ControlDevice = "/dev/nst0"
  ChangerCommand = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d"
  AlertCommand = "/opt/bacula/scripts/tapealert %l"
  MaximumNetworkBufferSize = 32768
  MaximumVolumeSize = 1000000000000
  MaximumFileSize = 2000000000
  VolumeCapacity = 1000000000000
  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"
}

Don Hammer
IT Systems Admin and Fuel & Licensing for Sherman Bros Trucking
d...@sbht.com<mailto:d...@sbht.com>
Direct 541-998-7218
Main Office: 541-995-7751

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

Reply via email to