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
tar (child): /dev/nst0: Cannot write: Input/output error
tar (child): Error is not recoverable: exiting now
tar: /dev/nst0: Wrote only 4096 of 10240 bytes
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Error code: 2
I'm wondering if I need to try something other than Ubuntu 22.04.
Have you checked the tape cartridge is writeable?
Have you checked the entire device chain is writeable?
Simpler test: dd if=/dev/urandom of=/dev/nst bs=1024 count=1024
And you shouldn't use the 'z' option to "tar" when testing, in this case
it is harmless but it is a bad habit.
Cheers,
Gary B-)
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users