Re: [Bacula-users] Bacula director crashes while labelling tapes with their barcodes.
The first and most obvious problem is that your Director and Storage daemons must both be *exactly* the same version. Best regards, Kern On 05/15/2018 02:01 PM, Charles Nadeau wrote: Hello! I just got a used Dell TL2000 tape library to use with Bacula (9.0.4 for the director on Ubuntu 16.04, 9.0.6 for the storage director on Ubuntu 18.04). I tested it with btape and mtx-changer and it passes all tests (strongly inspired by Dan Langille's https://dan.langille.org/2016/02/04/dell-tl4000-tape-library-running-btape-and-configuring-baculas-mtx-changer/). Once defined/integrated in Bacula, I can't label the tapes, bacula-director crashes. Here is what the session is at bconsole: charles@bigzilla:/mnt/data/toburn/archive$ bconsole Connecting to Director 192.168.0.53:9101 1000 OK: 103 bigzilla-dir Version: 9.0.4 (06 September 2017) Enter a period to cancel a command. *label barcodes Automatically selected Catalog: MyCatalog Using Catalog "MyCatalog" The defined Storage resources are: 1: File3 2: TL2000 Select Storage resource (1-2): 2 Connecting to Storage daemon TL2000 at 192.168.0.17:9103 ... Connecting to Storage daemon TL2000 at 192.168.0.17:9103 ... 3306 Issuing autochanger "slots" command. Device "Autochanger" has 24 slots. Connecting to Storage daemon TL2000 at 192.168.0.17:9103 ... 3301 Issuing autochanger "loaded? drive 0" command. 3302 Autochanger "loaded? drive 0", result: nothing loaded. 3306 Issuing autochanger "list" command. The following Volumes will be labeled: Slot Volume == 1 000151L3 2 000133L3 3 000128L3 4 000126L3 5 000122L3 6 000125L3 7 000124L3 8 000137L3 9 000129L3 10 000134L3 11 000131L3 12 000140L3 14 000153L3 15 000152L3 16 000132L3 17 000121L3 18 000127L3 19 000130L3 Do you want to label these Volumes? (yes|no): yes Defined Pools: 1: Default 2: Default3 3: DefaultTape 4: Differential-File3 5: Differential-Tape 6: File 7: Full-File3 8: Full-Tape 9: Incremental-File3 10: Incremental-Tape 11: Photo-File 12: Scratch Select the Pool (1-12): 12 Here are some details of my configuration: charles@superbackup:/etc/bacula$ sudo lsscsi -g [sudo] password for charles: [3:0:0:0] disk ATA WDC WD20EARS-00M AB51 /dev/sda /dev/sg0 [7:0:0:0] cd/dvd HL-DT-ST DVDRAM GSA-H62L DL00 /dev/sr0 /dev/sg1 [8:0:0:0] disk ATA WDC WD20EARS-00M AB51 /dev/sdb /dev/sg2 [9:0:0:0] disk ATA WDC WD20EARX-00P AB51 /dev/sdc /dev/sg3 [10:0:0:0] disk ATA WDC WD20EARX-008 AB51 /dev/sdd /dev/sg4 [14:0:0:0] tape IBM ULT3580-TD3 73P5 /dev/st0 /dev/sg7 [14:0:0:1] mediumx IBM 3573-TL 8.40 /dev/sch0 /dev/sg8 [15:0:0:0] disk ATA WDC WD20EFRX-68E 0A82 /dev/sde /dev/sg5 [16:0:0:0] disk ATA WDC WD20EARS-00M AB51 /dev/sdf /dev/sg6 charles@superbackup:~$ sudo tapeinfo -f /dev/sg7 Product Type: Tape Drive Vendor ID: 'IBM ' Product ID: 'ULT3580-TD3 ' Revision: '73P5' Attached Changer API: No SerialNumber: '1210306523' MinBlock: 1 MaxBlock: 16777215 SCSI ID: 0 SCSI LUN: 0 Ready: no Here is the relevant part of my bacula-sd.conf: Autochanger { Name = Autochanger Device = Drive-1 Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d" Changer Device = /dev/sg8 } Device { Name = Drive-1 Media Type = LTO-3 Device Type = Tape Archive Device = /dev/nst0 AutomaticMount = yes # when device
Re: [Bacula-users] Bacula director crashes while labelling tapes with their barcodes.
On 15/05/2018 22:01, Charles Nadeau wrote: Hello! I just got a used Dell TL2000 tape library to use with Bacula (9.0.4 for the director on Ubuntu 16.04, 9.0.6 for the storage director on Ubuntu 18.04). I tested it with btape and mtx-changer and it passes all tests (strongly inspired by Dan Langille's https://dan.langille.org/2016/02/04/dell-tl4000-tape-library-running-btape-and-configuring-baculas-mtx-changer/). Once defined/integrated in Bacula, I can't label the tapes, bacula-director crashes. Here is what the session is at bconsole: [SNIP] Could anybody tell me where the problem could be? Could it be about the versions mismatch? I saw on the list that Dan Langille wrote (https://sourceforge.net/p/bacula/mailman/message/36187800/): "bacula-dir = bacula-sd >= bacula-fd" How close should the versions of -dir and -sd be? In my case they are 0.0.2 apart. It's =. Not ~, or ~=, or "just a smidge like". Dir and SD have to be the same version. I repeat, DIR AND SD HAVE TO BE THE SAME VERSION. Got it? That's what "=" means. (Except when it mean "assignment", which makes no sense in this context.) Cheers, GaryB-) -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Bacula director crashes while labelling tapes with their barcodes.
Hello! I just got a used Dell TL2000 tape library to use with Bacula (9.0.4 for the director on Ubuntu 16.04, 9.0.6 for the storage director on Ubuntu 18.04). I tested it with btape and mtx-changer and it passes all tests (strongly inspired by Dan Langille's https://dan.langille.org/2016/02/04/dell-tl4000-tape-library-running-btape-and-configuring-baculas-mtx-changer/ ). Once defined/integrated in Bacula, I can't label the tapes, bacula-director crashes. Here is what the session is at bconsole: charles@bigzilla:/mnt/data/toburn/archive$ bconsole Connecting to Director 192.168.0.53:9101 1000 OK: 103 bigzilla-dir Version: 9.0.4 (06 September 2017) Enter a period to cancel a command. *label barcodes Automatically selected Catalog: MyCatalog Using Catalog "MyCatalog" The defined Storage resources are: 1: File3 2: TL2000 Select Storage resource (1-2): 2 Connecting to Storage daemon TL2000 at 192.168.0.17:9103 ... Connecting to Storage daemon TL2000 at 192.168.0.17:9103 ... 3306 Issuing autochanger "slots" command. Device "Autochanger" has 24 slots. Connecting to Storage daemon TL2000 at 192.168.0.17:9103 ... 3301 Issuing autochanger "loaded? drive 0" command. 3302 Autochanger "loaded? drive 0", result: nothing loaded. 3306 Issuing autochanger "list" command. The following Volumes will be labeled: Slot Volume == 1 000151L3 2 000133L3 3 000128L3 4 000126L3 5 000122L3 6 000125L3 7 000124L3 8 000137L3 9 000129L3 10 000134L3 11 000131L3 12 000140L3 14 000153L3 15 000152L3 16 000132L3 17 000121L3 18 000127L3 19 000130L3 Do you want to label these Volumes? (yes|no): yes Defined Pools: 1: Default 2: Default3 3: DefaultTape 4: Differential-File3 5: Differential-Tape 6: File 7: Full-File3 8: Full-Tape 9: Incremental-File3 10: Incremental-Tape 11: Photo-File 12: Scratch Select the Pool (1-12): 12 Here are some details of my configuration: charles@superbackup:/etc/bacula$ sudo lsscsi -g [sudo] password for charles: [3:0:0:0]diskATA WDC WD20EARS-00M AB51 /dev/sda /dev/sg0 [7:0:0:0]cd/dvd HL-DT-ST DVDRAM GSA-H62L DL00 /dev/sr0 /dev/sg1 [8:0:0:0]diskATA WDC WD20EARS-00M AB51 /dev/sdb /dev/sg2 [9:0:0:0]diskATA WDC WD20EARX-00P AB51 /dev/sdc /dev/sg3 [10:0:0:0] diskATA WDC WD20EARX-008 AB51 /dev/sdd /dev/sg4 [14:0:0:0] tapeIBM ULT3580-TD3 73P5 /dev/st0 /dev/sg7 [14:0:0:1] mediumx IBM 3573-TL 8.40 /dev/sch0 /dev/sg8 [15:0:0:0] diskATA WDC WD20EFRX-68E 0A82 /dev/sde /dev/sg5 [16:0:0:0] diskATA WDC WD20EARS-00M AB51 /dev/sdf /dev/sg6 charles@superbackup:~$ sudo tapeinfo -f /dev/sg7 Product Type: Tape Drive Vendor ID: 'IBM ' Product ID: 'ULT3580-TD3 ' Revision: '73P5' Attached Changer API: No SerialNumber: '1210306523' MinBlock: 1 MaxBlock: 16777215 SCSI ID: 0 SCSI LUN: 0 Ready: no Here is the relevant part of my bacula-sd.conf: Autochanger { Name = Autochanger Device = Drive-1 Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d" Changer Device = /dev/sg8 } Device { Name = Drive-1 Media Type = LTO-3 Device Type = Tape Archive Device = /dev/nst0 AutomaticMount = yes # when device opened, read it AlwaysOpen = yes RemovableMedia = yes RandomAccess = no AutoChanger = yes Drive Index = 0 # Enable the Alert command only if you have the mtx package loaded Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" # If you have smartctl, enable this, it has more info than tapeinfo # Alert Command = "sh -c 'smartctl -H -l error %c'" Maximum Spool Size = 1024GB Maximum Job Spool Size = 800GB Spool Directory = /baculatmp Maximum Concurrent Jobs = 1 Maximum Block Size = 1024K Maximum File Size = 8GB Hardware End of Medium = no Fast Forward Space File = yes } And the relevant part of my bacula-dir.conf Storage { Name = TL2000 Address = 192.168.0.17 SDPort = 9103 Password = "xxx" Device = Autochanger Media Type = LTO-3 Maximum Concurrent Jobs = 1 Autochanger = yes AllowCompression = yes } To further investigate the issue, I started bacula-sd and bacula-dir manually in debug mode and captured below the messages it printed to the console: Messages generated by "sudo /usr/sbin/bacula-dir -d 999 -v -c /etc/bacula/bacula-dir.conf -f -m" bigzilla-dir: msgchan.c:120-0 Connect to Storage daemon 192.168.0.17:9103 bigzilla-dir: watchdog.c:197-0 Registered watchdog 7f0ec801cf08, interval 1800 one shot bigzilla-dir: btimers.c:145-0 Start thread timer 7f0ec8021ab8 tid 7f0ed5d27700 for 1800 secs. bigzilla-dir: bsock.c:237-0 Current 192.168.0.17:9103 All 192.168.0.17:9103 bigzilla-dir: bsock.c:166-0 who=Storage daemon host=192.168.0.17 port=9103 bigzilla-dir: bsock.c:349-0 OK connected to server Storage daemon 192.168.0.17:9103. bigzilla-dir: