On 3/15/24 12:28, Marco Gaiarin wrote:
Following the hint on:
https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/issues/2683
i (re)post here, seeking feedback.
Situation: bacula 9.4 (debian buster), using RDX cassette/disks for backup,
using the wonderful 'vchanger' virtual autochanger script.
Following the vchanger doc:
https://vchanger.sourceforge.io/
https://sourceforge.net/projects/vchanger/files/vchangerHowto.html/download
it is needed to create a virtual changer device for every 'media' in the
'media pool'; so my SD configuration is:
Autochanger {
Name = RDXAutochanger
Description = "RDX Virtual Autochanger on ODPVE2"
Device = RDXStorage0
Device = RDXStorage1
Device = RDXStorage2
Changer Command = "/usr/bin/vchanger %c %o %S %a %d"
Changer Device = "/etc/vchanger/ODPVE2RDX.conf"
}
Device {
Name = RDXStorage0
Description = "RDX 0 File Storage on ODPVE2"
Drive Index = 0
Device Type = File
Media Type = RDX
RemovableMedia = no
RandomAccess = yes
Maximum Concurrent Jobs = 1
Archive Device = "/var/spool/vchanger/ODPVE2RDX/0"
}
Device {
Name = RDXStorage1
Description = "RDX 1 File Storage on ODPVE2"
Drive Index = 1
Device Type = File
Media Type = RDX
RemovableMedia = no
RandomAccess = yes
Maximum Concurrent Jobs = 1
Archive Device = "/var/spool/vchanger/ODPVE2RDX/1"
}
Device {
Name = RDXStorage2
Description = "RDX 2 File Storage on ODPVE2"
Drive Index = 2
Device Type = File
Media Type = RDX
RemovableMedia = no
RandomAccess = yes
Maximum Concurrent Jobs = 1
Archive Device = "/var/spool/vchanger/ODPVE2RDX/2"
}
every 'media' in 'media pool' have some volumes in the pool, more or less
like inserting in an (real) autochanger a set of tapes.
So when i insert a cartdrige, i get:
root@odpve2:~# bconsole
Connecting to Director bacula.lnf.it:9101
1000 OK: 103 lnfbacula-dir Version: 9.4.2 (04 February 2019)
Enter a period to cancel a command.
*list media pool=VEN-OD-ODPVE2RDXPool
Automatically selected Catalog: BaculaLNF
Using Catalog "BaculaLNF"
+-+-+---+-+-+--+--+-+--+---+---+-+--+-+---+
| mediaid | volumename | volstatus | enabled | volbytes|
volfiles | volretention | recycle | slot | inchanger | mediatype | voltype |
volparts | lastwritten | expiresin |
+-+-+---+-+-+--+--+-+--+---+---+-+--+-+---+
| 25 | ODPVE2RDX__ | Used | 1 | 15,258,511,119 |
3 |1,728,000 | 1 |0 | 0 | RDX | 1 |
0 | 2024-03-04 23:09:08 | 798,842 |
| 26 | ODPVE2RDX__0001 | Used | 1 | 17,769,884,030 |
4 |1,728,000 | 1 |0 | 0 | RDX | 1 |
0 | 2024-03-06 23:11:49 | 971,803 |
| 27 | ODPVE2RDX__0002 | Used | 1 | 65,296,705,760 |
15 |1,728,000 | 1 |0 | 0 | RDX | 1 |
0 | 2024-03-03 02:09:00 | 636,834 |
| 28 | ODPVE2RDX__0003 | Used | 1 | 14,995,402,621 |
3 |1,728,000 | 1 |0 | 0 | RDX | 1 |
0 | 2024-03-02 23:09:13 | 626,047 |
| 29 | ODPVE2RDX__0004 | Used | 1 | 16,099,504,717 |
3 |1,728,000 | 1 |0 | 0 | RDX | 1 |
0 | 2024-03-05 23:12:59 | 885,473 |
| 30 | ODPVE2RDX__0005 | Used | 1 | 15,067,862,578 |
3 |1,728,000 | 1 |0 | 0 | RDX | 1 |
0 | 2024-03-03 23:11:20 | 712,574 |
| 31 | ODPVE2RDX__0006 | Used | 1 | 15,359,960,121 |
3 |1,728,000 | 1 |0 | 0 | RDX | 1 |
0 | 2024-03-08 09:55:38 | 1,096,832 |
| 32 | ODPVE2RDX__0007 | Used | 1 | 259,203,030,230 |
60 |1,728,000 | 1 |0 | 0 | RDX | 1 |
0 | 2024-03-01 23:35:29 | 541,223 |
| 55 | ODPVE2RDX_0001_ | Used | 1 | 16,354,496,268 |
3 |1,728,000 | 1 |0 | 0 | RDX | 1 |
0 | 2024-03-12 23:10:10 | 1,486,504 |
| 56 | ODPVE2RDX_0001_0001 | Used | 1 | 15,253,608,839 |
3 |1,728,000 | 1 |0 | 0 | RDX | 1 |
0 | 2024-03-10 23:11:32 | 1,317,386 |
| 57 | ODPVE2RDX_0001_0002 | Used | 1 | 65,139,795,652 |
15 |1,728,000 | 1 |0 | 0 | RDX | 1 |
0 | 2024-03-10 02:09:59 | 1,241,693 |
|