Re: [Bacula-users] ERR=Input/output error

2022-10-06 Thread Ana Emília M . Arruda
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 >

Re: [Bacula-users] ERR=Input/output error

2022-09-17 Thread Charles Tassell
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

Re: [Bacula-users] ERR=Input/output error

2022-09-17 Thread Gary R. Schmidt
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

Re: [Bacula-users] ERR=Input/output error

2022-09-16 Thread Doug Eubanks via Bacula-users
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

Re: [Bacula-users] ERR=Input/output error

2022-09-16 Thread Charles Tassell
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.

Re: [Bacula-users] ERR=Input/output error

2022-09-16 Thread Doug Eubanks via Bacula-users
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" >

Re: [Bacula-users] ERR=Input/output error

2022-09-16 Thread Doug Eubanks via Bacula-users
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"

Re: [Bacula-users] ERR=Input/output error

2022-09-16 Thread Ana Emília M . Arruda
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

Re: [Bacula-users] ERR=Input/output error

2022-09-16 Thread Charles Tassell
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$

Re: [Bacula-users] ERR=Input/output error

2022-09-16 Thread Doug Eubanks via Bacula-users
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

Re: [Bacula-users] ERR=Input/output error

2022-09-16 Thread Charles Tassell
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

Re: [Bacula-users] ERR=Input/output error

2022-09-16 Thread Doug Eubanks via Bacula-users
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

Re: [Bacula-users] ERR=Input/output error

2022-09-15 Thread Charles Tassell
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

Re: [Bacula-users] ERR=Input/output error / only some times

2008-10-14 Thread Stefan Lubitz
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

Re: [Bacula-users] ERR=Input/output error / only some times

2008-10-14 Thread Arno Lehmann
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

Re: [Bacula-users] ERR=Input/output error / only some times

2008-10-14 Thread Arno Lehmann
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

Re: [Bacula-users] ERR=Input/output error

2007-01-28 Thread Arno Lehmann
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