Hello Doug,
On Sat, Sep 17, 2022 at 5:58 AM Doug Eubanks via Bacula-users <
bacula-users@lists.sourceforge.net> wrote:
> This is getting weirder. The mt eof, rewind and status commands work.
> The tar command failed.
>
> root@dl160g11:/opt/bacula/etc# mt -f /dev/st0 eof
>
Hi Doug. Hmm, have you tried with another tape? Also, double check
that the tape doesn't have the write protect tab engaged.
https://www.ibm.com/docs/en/ts3500-tape-library?topic=media-setting-write-protect-switch-lto-tape-cartrige
The only other thing I can think of is that the tape drive
On 17/09/2022 13:56, Doug Eubanks via Bacula-users wrote:
This is getting weirder. The mt eof, rewind and status commands work. The tar
command failed.
[SNIP]
root@dl160g11:/opt/bacula/etc# tar zcf /dev/nst0 /opt/bacula ; echo "Error code:
$?"
tar: Removing leading `/' from member names
This is getting weirder. The mt eof, rewind and status commands work. The tar
command failed.
root@dl160g11:/opt/bacula/etc# mt -f /dev/st0 eof
root@dl160g11:/opt/bacula/etc# mt -f /dev/nst0 rewind
root@dl160g11:/opt/bacula/etc# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block
Hmm, that's odd that the mt commands work but the btape doesn't... I'm
wondering if the mt commands just aren't reporting an error. Try
writing a small volume with tar:
tar zcf /dev/nst0 /etc/skel ; echo "Error code: $?"
On 2022-09-16 23:33, Doug Eubanks wrote:
The mt commands run fine.
Thanks for catching that, I added the drive index but it's still giving me the
same error.
Doug
On Fri, Sep 16, 2022, at 10:03 AM, Ana Emília M. Arruda wrote:
> Hello Doug,
>
> It seems that the tape device configuration is missing the "DriveIndex" value:
>
> Device {
> Name = "LTO-7"
>
The mt commands run fine. The btape command gives a similar error.
root@dl160g11:/opt/bacula/etc# ../bin/btape -c /opt/bacula/etc/bacula-sd.conf
/dev/nst0
Tape block granularity is 1024 bytes.
btape: butil.c:295-0 Using device: "/dev/nst0" for writing.
btape: btape.c:477-0 open device "LTO-7"
Hello Doug,
It seems that the tape device configuration is missing the "DriveIndex"
value:
Device {
Name = "LTO-7"
Description = "LTO-7"
MediaType = "LTO-7"
DeviceType = "Tape"
DriveIndex = 0 < if this is the only drive in the tape library,
this value should be 0
ArchiveDevice
Hi Doug,
Hmm, that looks fine. Try the following:
mt -f /dev/nst0 status
mt -f /dev/nst0 rewind
mt -f /dev/st0 eof
mt -f /dev/nst0 rewind
btape -c /opt/bacula/etc/bacula-sd.conf /dev/nst0
On 2022-09-16 10:55, Doug Eubanks wrote:
Here's the requested output.
bacula@dl160g11:/home/douge$
Here's the requested output.
bacula@dl160g11:/home/douge$ ls -dl /dev/nst* /dev/sg*
groups
mtx -f /dev/sg3 status
crwxrwx--- 1 root tape 9, 128 Sep 15 15:14 /dev/nst0
crwxrwx--- 1 root tape 9, 224 Sep 15 15:14 /dev/nst0a
crwxrwx--- 1 root tape 9, 160 Sep 15 15:14 /dev/nst0l
crwxrwx--- 1 root
Hi Doug,
Try running the following and posting the output:
su -s /bin/bash bacula
ls -dl /dev/nst* /dev/sg*
groups
mtx -f /dev/sg3 status
exit
That will switch you to the bacula user, check the permissions of the
various devices, and attempt to run the mtx command as the bacula user.
On
Good morning, thank you for your reply.
The bacula user is definitely in the tape group.
root@dl160g11:/opt/bacula/bin# mtx -f /dev/sg3 status
Storage Changer /dev/sg3:1 Drives, 8 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag = ABT001L7
Hi Doug,
Is bacula running as root? On most setups it runs as the bacula
user, so you would need to make sure that that user is in the "tape"
group and has rw access to /dev/nst0.
On 2022-09-15 12:17, Doug Eubanks via Bacula-users wrote:
Hello!
I'm setting up an HP autochanger with an
Hello!
I'm setting up an HP autochanger with an LTO-7 drive with Bacula on Ubuntu
22.04 server at home. I've been able to run mt and mtx commands successfully
to erase a tape and change the loaded tape.
I've installed Bacula 13.0.1 using apt-get from the repo. I also installed
Bacularis for
Hi Arno,
thanks for the infos. I found the following messages in /var/log/messages.
Could this show a problem? I am not familiar with this
Until now I have not worked with smartmontools. I have installed them
and added the /dev/sg3 in the smartd.conf file.
Let's see what happens.
The Tapes I am
Hi,
14.10.2008 11:54, Stefan Lubitz wrote:
Hi all,
I have a strange behavior when I run btape.
The test abborts at different positions. Sometimes it runs completely.
Sometimes it stops after the rewind or after the Got EOF on tape.
I have no idea where I can search what's wrong. The
Hi,
14.10.2008 15:47, Stefan Lubitz wrote:
Hi Arno,
thanks for the infos. I found the following messages in /var/log/messages.
Could this show a problem?
Definitely.
I am not familiar with this
Until now I have not worked with smartmontools. I have installed them
and added the /dev/sg3
Hi all,
I have a strange behavior when I run btape.
The test abborts at different positions. Sometimes it runs completely.
Sometimes it stops after the rewind or after the Got EOF on tape.
I have no idea where I can search what's wrong. The strange thing is,
that I was able to write (bconsole /
Hi All,
I received ERR=Input/output error upon executing label barcodes.
However, update slots was successful. Any ideas? Verbose bconsole
output provided below:
Connecting to Storage daemon Tape at uwharrie:9103 ...
Sending label command for Volume MSR100L3 Slot 1 ...
3301 Issuing autochanger
Hello,
On 1/28/2007 10:59 PM, Mike Seda wrote:
Hi All,
I received ERR=Input/output error upon executing label barcodes.
However, update slots was successful. Any ideas? Verbose bconsole
output provided below:
Connecting to Storage daemon Tape at uwharrie:9103 ...
Sending label command
20 matches
Mail list logo