Hello all,
I've recently deployed Bacula in our server room to backup 9 FreeBSD/
OpenBSD/Windows 2003 servers. I am very pleased.
Bacula runs on a server dedicated to it, connected to an ADIC Scalar
100 LTO tape library. Backups have been running smoothly now for a
couple months, and test restores also worked. I am running 2.2.6 from
ports on FreeBSD 6.2. I have successfully run btape on this drive with
the settings below.
We filled up our first tape (KHA002L1) and have now just about
finished our second tape (KHA003L1). It occoured to me that the last
time I did a test restore it was off KHA002L1 while we were still
writing to it. So I decided to ask Bacula to restore files off
KHA002L1 while KHA003L1 was loaded, to make sure that the autochanger
was up to the job.
Thankfully the autochanger loaded the tape properly, but now Bacula
won't recognize the label. I get this error:
17-Dec 22:18 backup-sd JobId 362: Warning: acquire.c:242 Requested
Volume "KHA002L1" on "Drive0" (/dev/nsa0) is not a Bacula labeled
Volume, because: ERR=block.c:1008 Read zero bytes at 0:0 on device
"Drive0" (/dev/nsa0).
I can confirm that KHA002L1 is actually loaded into the drive with
this command (I used "label barcodes", so the barcode labels match the
Bacula labels):
[EMAIL PROTECTED]:~# chio status -v | grep KHA002L1
drive 0: <FULL> voltag: <KHA002L1:0>
To reiterate - I was able to restore files from this tape (KHA002L1)
before it was full. Now all of a sudden I can't. I am currently
writing to KHA003L1 and have tested restores off it successfully. But
when I move to the next tape will I start to have problems with this
tape?
Here are the logs
#######################################
## BEGIN Restore from KHA002L1
#######################################
22-Dec 11:59 backup-dir JobId 404: Start Restore Job RestoreFiles.
2007-12-22_11.59.09
22-Dec 11:59 backup-dir JobId 404: Using Device "Drive0"
22-Dec 11:59 backup-sd JobId 404: 3307 Issuing autochanger "unload
slot 4, drive 0" command.
22-Dec 12:01 backup-sd JobId 404: 3304 Issuing autochanger "load slot
3, drive 0" command.
22-Dec 12:02 backup-sd JobId 404: 3305 Autochanger "load slot 3, drive
0", status is OK.
22-Dec 12:02 backup-sd JobId 404: 3301 Issuing autochanger "loaded?
drive 0" command.
22-Dec 12:02 backup-sd JobId 404: 3302 Autochanger "loaded? drive 0",
result is Slot 3.
22-Dec 12:02 backup-sd JobId 404: Warning: acquire.c:242 Requested
Volume "KHA002L1" on "Drive0" (/dev/nsa0) is not a Bacula labeled
Volume, because: ERR=block.c:1008 Read zero bytes at 0:0 on device
"Drive0" (/dev/nsa0).
22-Dec 12:03 backup-sd JobId 404: Warning: acquire.c:242 Requested
Volume "KHA002L1" on "Drive0" (/dev/nsa0) is not a Bacula labeled
Volume, because: ERR=block.c:1008 Read zero bytes at 0:0 on device
"Drive0" (/dev/nsa0).
22-Dec 12:03 backup-sd JobId 404: Please mount Volume "KHA002L1" or
label a new one for:
Job: RestoreFiles.2007-12-22_11.59.09
Storage: "Drive0" (/dev/nsa0)
Pool: Default
Media type: LTO-1
22-Dec 12:06 backup-sd JobId 404: Job RestoreFiles.2007-12-22_11.59.09
marked to be canceled.
22-Dec 12:06 backup-sd JobId 404: acquire.c:191 Job 404 canceled.
22-Dec 12:06 backup-dir JobId 404: Bacula backup-dir 2.2.6 (10Nov07):
22-Dec-2007 12:06:04
Build OS: i386-portbld-freebsd6.2 freebsd 6.2-RELEASE-p9
JobId: 404
Job: RestoreFiles.2007-12-22_11.59.09
Restore Client: backup.DOMAINNAME.com-fd
Start time: 22-Dec-2007 11:59:49
End time: 22-Dec-2007 12:06:04
Files Expected: 914
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
FD Errors: 0
FD termination status: Canceled
SD termination status: Canceled
Termination: Restore Canceled
22-Dec 12:06 backup-dir JobId 404: Begin pruning Jobs.
22-Dec 12:06 backup-dir JobId 404: No Jobs found to prune.
22-Dec 12:06 backup-dir JobId 404: Begin pruning Files.
22-Dec 12:06 backup-dir JobId 404: No Files found to prune.
22-Dec 12:06 backup-dir JobId 404: End auto prune.
#######################################
## END Restore from KHA002L1
#######################################
#######################################
## BEGIN Restore from KHA003L1
#######################################
22-Dec 11:40 backup-dir JobId 403: Start Restore Job RestoreFiles.
2007-12-22_11.40.08
22-Dec 11:40 backup-dir JobId 403: Using Device "Drive0"
22-Dec 11:40 backup-sd JobId 403: 3301 Issuing autochanger "loaded?
drive 0" command.
22-Dec 11:40 backup-sd JobId 403: 3302 Autochanger "loaded? drive 0",
result is Slot 4.
22-Dec 11:42 backup-sd JobId 403: Ready to read from volume "KHA003L1"
on device "Drive0" (/dev/nsa0).
22-Dec 11:42 backup-sd JobId 403: Forward spacing Volume "KHA003L1" to
file:block 31:0.
22-Dec 11:50 backup-sd JobId 403: End of Volume at file 31 on device
"Drive0" (/dev/nsa0), Volume "KHA003L1"
22-Dec 11:50 backup-sd JobId 403: End of all volumes.
22-Dec 11:50 backup-dir JobId 403: Bacula backup-dir 2.2.6 (10Nov07):
22-Dec-2007 11:50:48
Build OS: i386-portbld-freebsd6.2 freebsd 6.2-RELEASE-p9
JobId: 403
Job: RestoreFiles.2007-12-22_11.40.08
Restore Client: mon.DOMAINNAME.com-fd
Start time: 22-Dec-2007 11:40:29
End time: 22-Dec-2007 11:50:48
Files Expected: 1
Files Restored: 1
Bytes Restored: 14,228
Rate: 0.0 KB/s
FD Errors: 0
FD termination status: OK
SD termination status: OK
Termination: Restore OK
22-Dec 11:50 backup-dir JobId 403: Begin pruning Jobs.
22-Dec 11:50 backup-dir JobId 403: No Jobs found to prune.
22-Dec 11:50 backup-dir JobId 403: Begin pruning Files.
22-Dec 11:50 backup-dir JobId 403: No Files found to prune.
22-Dec 11:50 backup-dir JobId 403: End auto prune.
#######################################
## END Restore from KHA003L1
#######################################
#######################################
## BEGIN List Volumes
#######################################
+---------+------------+-----------+---------+-----------------
+----------+--------------+---------+------+-----------+-----------
+---------------------+
| mediaid | volumename | volstatus | enabled | volbytes |
volfiles | volretention | recycle | slot | inchanger | mediatype |
lastwritten |
+---------+------------+-----------+---------+-----------------
+----------+--------------+---------+------+-----------+-----------
+---------------------+
| 1 | CLNS00L1 | Cleaning | 1 | 0
| 0 | 31,536,000 | 1 | 59 | 1 |
| |
| 2 | CLNS01L1 | Cleaning | 1 | 0
| 0 | 31,536,000 | 1 | 60 | 1 |
| |
| 3 | KHA002L1 | Full | 1 | 117,160,630,272 |
235 | 31,536,000 | 1 | 3 | 1 | LTO-1 |
2007-11-22 23:05:12 |
| 4 | KHA003L1 | Append | 1 | 134,594,417,664 |
319 | 31,536,000 | 1 | 4 | 1 | LTO-1 |
2007-12-21 23:35:28 |
| 5 | KHA005L1 | Append | 1 | 64,512
| 0 | 31,536,000 | 1 | 6 | 1 | LTO-1
| |
| 6 | KHA006L1 | Append | 1 | 64,512
| 0 | 31,536,000 | 1 | 7 | 1 | LTO-1
| |
| 7 | KHA007L1 | Append | 1 | 64,512
| 0 | 31,536,000 | 1 | 8 | 1 | LTO-1
| |
| 8 | KHA008L1 | Append | 1 | 64,512
| 0 | 31,536,000 | 1 | 9 | 1 | LTO-1
| |
| 9 | KHA009L1 | Append | 1 | 64,512
| 0 | 31,536,000 | 1 | 10 | 1 | LTO-1
| |
| 10 | KHA010L1 | Append | 1 | 64,512
| 0 | 31,536,000 | 1 | 11 | 1 | LTO-1
| |
| 11 | KHA011L1 | Append | 1 | 64,512
| 0 | 31,536,000 | 1 | 12 | 1 | LTO-1
| |
| 12 | KHA012L1 | Append | 1 | 64,512
| 0 | 31,536,000 | 1 | 13 | 1 | LTO-1
| |
| 13 | KHA013L1 | Append | 1 | 64,512
| 0 | 31,536,000 | 1 | 14 | 1 | LTO-1
| |
| 14 | KHA014L1 | Append | 1 | 64,512
| 0 | 31,536,000 | 1 | 15 | 1 | LTO-1
| |
| 15 | KHA015L1 | Append | 1 | 64,512
| 0 | 31,536,000 | 1 | 16 | 1 | LTO-1
| |
| 16 | KHA016L1 | Append | 1 | 64,512
| 0 | 31,536,000 | 1 | 17 | 1 | LTO-1
| |
| 17 | KHA017L1 | Append | 1 | 64,512
| 0 | 31,536,000 | 1 | 18 | 1 | LTO-1
| |
| 18 | KHA018L1 | Append | 1 | 64,512
| 0 | 31,536,000 | 1 | 19 | 1 | LTO-1
| |
| 19 | KHA019L1 | Append | 1 | 64,512
| 0 | 31,536,000 | 1 | 20 | 1 | LTO-1
| |
| 20 | KHA000L1 | Append | 1 | 64,512
| 0 | 31,536,000 | 1 | 1 | 1 | LTO-1
| |
| 21 | KHA001L1 | Append | 1 | 64,512
| 0 | 31,536,000 | 1 | 2 | 1 | LTO-1
| |
| 22 | KHA004L1 | Append | 1 | 64,512
| 0 | 31,536,000 | 1 | 5 | 0 | LTO-1
| |
+---------+------------+-----------+---------+-----------------
+----------+--------------+---------+------+-----------+-----------
+---------------------+
#######################################
## END List Volumes
#######################################
#######################################
## BEGIN Snippets of bacula-sd.conf
#######################################
Autochanger {
Name = ADICScalar100
Device = Drive0
Device = Drive1
Changer Command = "/usr/local/etc/rc-chio-changer %c %o %S %a %d"
Changer Device = /dev/ch0
}
Device {
Name = Drive0
Drive Index = 0
Media Type = LTO-1
Archive Device = /dev/nsa0
AutomaticMount = yes;
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
# FreeBSD specific settings
Hardware End of Medium = no
BSF at EOM = yes
Backward Space Record = no
Backward Space File = no
Fast Forward Space File = no
TWO EOF = yes
}
Device {
Name = Drive1
Drive Index = 1
Media Type = LTO-1
Archive Device = /dev/nsa1
AutomaticMount = yes;
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
# FreeBSD specific settings
Hardware End of Medium = no
BSF at EOM = yes
Backward Space Record = no
Backward Space File = no
Fast Forward Space File = no
TWO EOF = yes
}
#######################################
## END Snippets of bacula-sd.conf
#######################################
I would appreciate any help anyone could offer. It's very unnerving to
know that I am unable to restore these files if I need to.
Happy holidays to all,
Edward Aronyk
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users