Hello,
Bacula version 7.0.5
I'm trying to copy a bacula tape to another blank tape with 2 LTO3 (I
want to keep same Volume name for both).
sudo /usr/local/bacula/sbin/bcopy -d 99 -dt -v -c
/usr/local/bacula/etc/bacula-sd.conf -b
/usr/local/bacula/var/bacula/working/copie-bande.bsr -i
Archive-Bacula-1489 -o Archive-Bacula-1489 /dev/nst0 /dev/nst1
or
sudo /usr/local/bacula/sbin/bcopy -d 99 -dt -v -c
/usr/local/bacula/etc/bacula-sd.conf -i Archive-Bacula-1489 -o
Archive-Bacula-1489 /dev/nst0 /dev/nst1
or
sudo /usr/local/bacula/sbin/bcopy -d 99 -dt -v -c
/usr/local/bacula/etc/bacula-sd.conf -b
/usr/local/bacula/var/bacula/working/copie-bande.bsr /dev/nst0 /dev/nst1
Result:
27-Jul-2015 13:45:46 bcopy: address_conf.c:264-0 Initaddr 0.0.0.0:9103
27-Jul-2015 13:45:46 bcopy: stored_conf.c:687-0 Inserting device res:
Copie.Bande.iscsi
27-Jul-2015 13:45:46 bcopy: stored_conf.c:687-0 Inserting device res:
tape-storage
bcopy: butil.c:289-0 Using device: "/dev/nst0" for reading.
27-Jul-2015 13:45:46 bcopy: autochanger.c:102-0 Device
"Copie.Bande.vms7" (/dev/nst0) is not an autochanger
27-Jul 13:45 bcopy JobId 0: Ready to read from volume
"Archive-Bacula-1489" on tape device "Copie.Bande.vms7" (/dev/nst0).
bcopy: butil.c:287-0 Using device: "/dev/nst1" for writing.
27-Jul-2015 13:45:52 bcopy: autochanger.c:102-0 Device
"Copie.Bande.iscsi" (/dev/nst1) is not an autochanger
27-Jul-2015 13:45:56 bcopy: block.c:422-0 Read device fd=4 got:
ERR=Input/output error
27-Jul 13:45 bcopy JobId 0: Error: The Volume=Archive-Bacula-1489 on
device="Copie.Bande.iscsi" (/dev/nst1) appears to be unlabeled.
27-Jul-2015 13:45:59 bcopy: mount.c:746-0 Create new volume label
vol=Archive-Bacula-1489
27-Jul-2015 13:46:02 bcopy: label.c:379-0 Call reserve_volume
27-Jul-2015 13:46:02 bcopy: label.c:386-0 vol_mgr.c:382 Could not
reserve volume "Archive-Bacula-1489" for append, because it will be read.
27-Jul 13:46 bcopy JobId 0: Marking Volume "Archive-Bacula-1489" in
Error in Catalog.
27-Jul-2015 13:46:02 bcopy: mount.c:805-0 set_unload
27-Jul-2015 13:46:02 bcopy: mount.c:226-0 set_unload
27-Jul 13:46 bcopy JobId 0: Error: mount.c:834 Hey!!!!! WroteVol
non-zero !!!!!
bcopy: mount.c:835-0 Hey!!!!! WroteVol non-zero !!!!!
27-Jul-2015 13:46:26 bcopy: autochanger.c:102-0 Device
"Copie.Bande.iscsi" (/dev/nst1) is not an autochanger
Mount Volume "" on device "Copie.Bande.iscsi" (/dev/nst1) and press
return when ready: 27-Jul-2015 13:46:26 bcopy: dev.c:549-0 close_dev
vol= fd=4 dev=c21888 dev="Copie.Bande.iscsi" (/dev/nst1)
My bacula-sd.conf
Storage { # definition of myself
Name = vms7-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/usr/local/bacula/var/bacula/working"
Pid Directory = "/var/run/bacula"
Maximum Concurrent Jobs = 20
}
Device {
Name = "Copie.Bande.vms7"
Media Type = LTO-3;
Archive Device = /dev/nst0;
Changer Device = /dev/sg0;
Autochanger = no;
AlwaysOpen = yes;
AutomaticMount = yes;
RemovableMedia = yes;
RandomAccess = no;
Offline On Unmount = yes;
Label Media = yes;
Maximum Open Wait = 2m;
Maximum Concurrent Jobs = 2;
}
Device {
Name = "Copie.Bande.iscsi"
Media Type = LTO-3;
Archive Device = /dev/nst1;
Changer Device = /dev/sg1;
Autochanger = no;
AlwaysOpen = yes;
AutomaticMount = yes;
RemovableMedia = yes;
RandomAccess = no;
Offline On Unmount = yes;
Label Media = yes
Maximum Open Wait = 2m;
Maximum Concurrent Jobs = 2;
}
Device {
Name = "tape-storage";
Media Type = File;
Archive Device = /media/tape-storage/;
LabelMedia = yes;
Random Access = Yes;
AutomaticMount = yes;
RemovableMedia = no;
Device Type = File
Autochanger = no;
RequiresMount = no;
AlwaysOpen = no;
Maximum Concurrent Jobs = 20;
}
/usr/local/bacula/var/bacula/working/copie-bande.bsr:
Volume="Archive-Bacula-1489"
I could change "-o output volume name" but I want to keep same Volume
Name for both tapes.
Before upgrading to 7.0.5 version I used 5.0.12 version. I was able to
copy tape to disk then disk to tape with using:
sudo /usr/local/bacula/sbin/bcopy -d200 -c
/usr/local/bacula/etc/bacula-sd.conf -i Archive-Bacula-1322 -o
tape-storage /dev/nst0 /media/tape-storage/
then
sudo /usr/local/bacula/sbin/bcopy -d200 -c
/usr/local/bacula/etc/bacula-sd.conf -i tape-storage -o
Archive-Bacula-1322 /media/tape-storage/ /dev/nst0
With 7.0.5 version I get previous error message. I didn't test tape to
tape copy with 5.0.12.
Is this a bug?
Regard,
Eric
------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users