Dear list...
I have just replaced my working old DDS-3 streamer with an AIT-1
streamer (dmesg says "SDX-300C"). First I ran "btape AIT" and entered
"test" to check if Bacula is happy with that drive. Everything went well
(only results shown):
---------------------------------
# btape AIT
Tape block granularity is 1024 bytes.
btape: butil.c:272 Using device: "AIT" for writing.
btape: btape.c:338 open device "AIT" (/dev/nst0): OK
*test
=== Write, rewind, and re-read test ===
btape: btape.c:820 Rewind OK.
1000 blocks re-read correctly.
Got EOF on tape.
1000 blocks re-read correctly.
=== Test Succeeded. End Write, rewind, and re-read test ===
=== Write, rewind, and position test ===
Reposition to file:block 1:999
Block 2000 re-read correctly.
=== Test Succeeded. End Write, rewind, and re-read test ===
=== Append files test ===
We should be in file 3. I am at file 3. This is correct!
We should be in file 4. I am at file 4. This is correct!
=== Write, backup, and re-read test ===
Block re-read correct. Test succeeded!
=== Forward space files test ===
We should be in file 5. I am at file 5. This is correct!
---------------------------------
So everything went well. However when I try to label a tape from
bconsole or just enter "stat storage=AIT" the console hangs. I have to
kill the console process in another windows to make it quit. CTRL-C or
CTRL-Z do not work.
Relevant part of my /etc/bacula/bacula-sd.conf:
---------------------------------
Device {
Name = AIT
Media Type = AIT1
Archive Device = /dev/nst0
AutomaticMount = yes;
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
VolumePollInterval = 1 minute
OfflineOnUnmount = yes
CloseOnPoll = no
MaximumOpenWait = 2 days
}
---------------------------------
Reading and writing using "dd" works well. Writing files and restoring
them via "tar cvzf /dev/nst0 ..." and "tar xvzf /dev/nst0" works well.
(It didn't work early today. I think I ran "mt -f /dev/nst0 setblk 0" or
something on it while looking for solutions on the usenet. Maybe that
has changed something regarding the block size.)
So I started the storage daemon with "-d100 -f" but it looks that after
a few seconds the device is suddenly busy although lsof says that it's
the bacula-sd itself blocking the device:
---------------------------------
# /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u bacula -g tape -d100 -f
bacula-sd: stored_conf.c:656 Inserting director res: torf-mon
bacula-sd: stored_conf.c:656 Inserting device res: Streamer
bacula-sd: stored_conf.c:656 Inserting device res: AIT
torf-sd: jcr.c:116 read_last_jobs seek to 188
torf-sd: jcr.c:123 Read num_items=10
torf-sd: pythonlib.c:100 No script dir. prog=SDStartUp
torf-sd: stored.c:453 calling init_dev /mnt/backup
torf-sd: dev.c:239 init_dev: tape=0 dev_name=/mnt/backup
torf-sd: stored.c:455 SD init done /mnt/backup
torf-sd: stored.c:453 calling init_dev /dev/nst0
torf-sd: dev.c:239 init_dev: tape=1 dev_name=/dev/nst0
torf-sd: stored.c:455 SD init done /dev/nst0
torf-sd: stored.c:468 calling first_open_device "Streamer" (/dev/nst0)
torf-sd: dev.c:276 open dev: tape=1 dev_name="Streamer" (/dev/nst0) vol=
mode=OPEN_READ_ONLY
torf-sd: dev.c:323 open dev: device is tape
torf-sd: dev.c:338 Try open "Streamer" (/dev/nst0) mode=OPEN_READ_ONLY
nonblocking=2048
torf-sd: bnet_server.c:83 Addresses host[ipv4:0.0.0.0:9103]
torf-sd: dev.c:369 openmode=3 OPEN_READ_ONLY
torf-sd: dev.c:382 open dev: tape 4 opened
torf-sd: label.c:71 Enter read_volume_label res=0 device="Streamer" (/dev/nst0)
vol= dev_Vol=*NULL*
torf-sd: dev.c:627 rewind res=0 fd=4 "Streamer" (/dev/nst0)
torf-sd: label.c:138 Big if statement in read_volume_label
torf-sd: label.c:143 Requested Volume "" on "Streamer" (/dev/nst0) is not a
Bacula labeled Volume, because: ERR=block.c:263 Volume data error at 0:0!
Wanted ID: "BB02", got "C�0L". Buffer discarded.
torf-sd: dev.c:627 rewind res=0 fd=4 "Streamer" (/dev/nst0)
torf-sd: bnet.c:1128 who=client host=212.12.58.129 port=36643
torf-sd: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
torf-sd: cram-md5.c:68 Authenticate OK yk/sHC1n94wnbE+nt5p8EA
torf-sd: cram-md5.c:97 cram-get: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
torf-sd: cram-md5.c:114 sending resp to challenge: bH+Sxykygh+o/G/Ofi1C3D
torf-sd: dircmd.c:187 Message channel init completed.
torf-sd: stored.c:453 calling init_dev /dev/nst0
torf-sd: dev.c:239 init_dev: tape=1 dev_name=/dev/nst0
torf-sd: stored.c:455 SD init done /dev/nst0
torf-sd: stored.c:468 calling first_open_device "AIT" (/dev/nst0)
torf-sd: dev.c:276 open dev: tape=1 dev_name="AIT" (/dev/nst0) vol=
mode=OPEN_READ_ONLY
torf-sd: dev.c:323 open dev: device is tape
torf-sd: dev.c:338 Try open "AIT" (/dev/nst0) mode=OPEN_READ_ONLY
nonblocking=2048
torf-sd: dev.c:344 Open omode=3 mode=0 nonblock=2048 error errno=16 ERR=Device
or resource busy
torf-sd: dev.c:351 Device "AIT" (/dev/nst0) busy. ERR=Device or resource busy
torf-sd: dev.c:344 Open omode=3 mode=0 nonblock=2048 error errno=16 ERR=Device
or resource busy
torf-sd: dev.c:351 Device "AIT" (/dev/nst0) busy. ERR=Device or resource busy
torf-sd: dev.c:344 Open omode=3 mode=0 nonblock=2048 error errno=16 ERR=Device
or resource busy
torf-sd: dev.c:351 Device "AIT" (/dev/nst0) busy. ERR=Device or resource busy
torf-sd: dev.c:344 Open omode=3 mode=0 nonblock=2048 error errno=16 ERR=Device
or resource busy
torf-sd: dev.c:351 Device "AIT" (/dev/nst0) busy. ERR=Device or resource busy
torf-sd: dev.c:344 Open omode=3 mode=0 nonblock=2048 error errno=16 ERR=Device
or resource busy
torf-sd: dev.c:351 Device "AIT" (/dev/nst0) busy. ERR=Device or resource busy
[...]
---------------------------------
My version of bacula is 1.38.11. I'd appreciate any hints that help me
debug this situation.
Christoph
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users