Hi
Since about March this year we have had a tape drive - a Neo 200s that I have
been (failing) trying to get working with (z)amanda and now bacula. I have
wasted many days of my life trying to get this to work - the best I got with
zamada was to do a single tape backup (multiple tapes again failed)
I believe the issue is with the auto changer ???
I am following the bacula guide :
http://www.bacula.org/5.0.x-manuals/en/problems/problems/Testing_Your_Tape_Drive.html
I did the initial tests fine (Use tar to write to, then read from your drive: )
I also had success with
./btape -c bacula-sd.conf /dev/nst0
test
(this was 100% success)
and
./btape -c bacula-sd.conf /dev/nst0
auto
- the results (of the auto) were
------------------
=== Autochanger test ===
3301 Issuing autochanger "loaded" command.
Slot 24 loaded. I am going to unload it.
3302 Issuing autochanger "unload 24 0" command.
unload status=OK 0
3303 Issuing autochanger "load 1 0" command.
3303 Autochanger "load 1 0" status is OK.
btape: btape.c:476 open device "LTO-4" (/dev/nst0): OK
btape: btape.c:1562 Rewound "LTO-4" (/dev/nst0)
btape: btape.c:1569 Wrote EOF to "LTO-4" (/dev/nst0)
The test autochanger worked!!
------------------
However when I tried the fill test it successfully did the first tape, when it
tried to go to the second I got
------------------------------
14:04:13 Flush block, write EOF
Wrote block=12605000, file,blk=812,14483 VolBytes=811,882,423,296 rate=54.28
MB/s
Wrote block=12610000, file,blk=813,3983 VolBytes=812,204,983,296 rate=54.27 MB/s
Wrote block=12615000, file,blk=813,8983 VolBytes=812,527,543,296 rate=54.28 MB/s
Wrote block=12620000, file,blk=813,13983 VolBytes=812,850,103,296 rate=54.28
MB/s
26-Aug 14:04 btape JobId 0: End of Volume "TestVolume1" at 814:1 on device
"LTO-4" (/dev/nst0). Write of 64512 bytes got -1.
26-Aug 14:04 btape JobId 0: Re-read of last block succeeded.
btape: btape.c:2701 Last block at: 813:15500 this_dev_block_num=1
btape: btape.c:2736 End of tape 814:0. Volume Bytes=812,948,032,512. Write rate
= 54.24 MB/s
26-Aug 14:04 btape JobId 0: End of medium on Volume "TestVolume1"
Bytes=812,948,032,512 Blocks=12,601,501 at 26-Aug-2011 14:04.
26-Aug 14:04 btape JobId 0: 3307 Issuing autochanger "unload slot 1, drive 0"
command.
26-Aug 14:05 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" command.
26-Aug 14:05 btape JobId 0: 3302 Autochanger "loaded? drive 0", result: nothing
loaded.
btape: btape.c:3061 Autochanger returned: -1
Mount blank Volume on device "LTO-4" (/dev/nst0) and press return when ready:
btape: btape.c:3066
26-Aug 14:05 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" command.
26-Aug 14:05 btape JobId 0: 3302 Autochanger "loaded? drive 0", result: nothing
loaded.
26-Aug 14:05 btape: Fatal Error at device.c:298 because:
dev open failed: dev.c:491 Unable to open device "LTO-4" (/dev/nst0): ERR=No
medium found
btape: btape.c:506 Device open failed. ERR=dev.c:491 Unable to open device
"LTO-4" (/dev/nst0): ERR=No medium found
26-Aug 14:05 btape: ABORTING due to ERROR in dev.c:782
dev.c:781 Bad call to rewind. Device "LTO-4" (/dev/nst0) not open
Bacula interrupted by signal 11: Segmentation violation
Kaboom! btape, btape got signal 11 - Segmentation violation. Attempting
traceback.
Kaboom! exepath=/root
Calling: /root/btraceback /root/btape 17537 /tmp
execv: /root/btraceback failed: ERR=No such file or directory
It looks like the traceback worked ...
Dumping: /tmp/btape.17537.bactrace
btape: lockmgr.c:909 lockmgr disabled
[root@tapedrivetest ~]# btape -c bacula-sd.conf /dev/nst0
Tape block granularity is 1024 bytes.
btape: butil.c:285 Using device: "/dev/nst0" for writing.
26-Aug 14:21 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" command.
26-Aug 14:21 btape JobId 0: 3302 Autochanger "loaded? drive 0", result: nothing
loaded.
26-Aug 14:21 btape: Fatal Error at device.c:298 because:
dev open failed: dev.c:491 Unable to open device "LTO-4" (/dev/nst0): ERR=No
medium found
26-Aug 14:21 btape JobId 0: Fatal error: butil.c:194 Cannot open "LTO-4"
(/dev/nst0)
------------------------------
And now I get errors accessing the tape drive
i.e :-
-----------
mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (50000):
DR_OPEN IM_REP_EN
-----------
Also now when trying the initial test I get
-------
btape -c /etc/bacula/bacula-sd.conf /dev/nst0
Tape block granularity is 1024 bytes.
btape: butil.c:285 Using device: "/dev/nst0" for writing.
26-Aug 16:57 btape: Fatal Error at device.c:298 because:
dev open failed: dev.c:491 Unable to open device "LTO-4" (/dev/nst0): ERR=No
medium found
26-Aug 16:57 btape JobId 0: Fatal error: butil.c:194 Cannot open "LTO-4"
(/dev/nst0)
-------
Is this due to no tape ? If so why, shouldn't the changer take care of this ?
If it helps here is my bacula-sd.conf
-------------
Device {
Name = LTO-4
Media Type = LTO-4
Archive Device = /dev/nst0
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
# Maximum File Size = 5GB
#Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
Changer Device = /dev/sg1
#AutoChanger = yes
# # 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'"
}
-------------
--------------------
[root@tapedrivetest ~]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: HP Model: Ultrium 4-SCSI Rev: U52W
Type: Sequential-Access ANSI SCSI revision: 05
Host: scsi0 Channel: 00 Id: 00 Lun: 01
Vendor: HP Model: MSL G3 Series Rev: E.03
Type: Medium Changer ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: GB0250EAFYK Rev: HPG1
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: GB0250EAFYK Rev: HPG1
Type: Direct-Access ANSI SCSI revision: 05
--------------------
I have been really really confused about the whole tape/changer setup.
Any help (at all!!!) would be very very helpful.
Regards
+----------------------------------------------------------------------
|This was sent by mcox AT cwcs.co DOT uk via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|