LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-06-2018, 08:51 AM   #1
Barcoboy
Member
 
Registered: May 2010
Distribution: Slackware
Posts: 36

Rep: Reputation: Disabled
Kernel 4.19.5 breaks writing to tape


Greetings.

I'm having trouble with kernel version 4.19.5 in Slackware64-current where I am not able to write data to my LTO tape drives. Using a Dell PowerVault 132t, I can run the mtx command to load/unload and move tapes around fine, and the mt command also works fine with accessing tapes in either of the LTO2 drives. However, if I run the command "tar -cvf /dev/st0 /path/to/backup", the system acts like it is writing the files to tape, but nothing seems to get actually written. Running a "tar -tvf /dev/st0" immediately exits. After hours of troubleshooting, rolling back to kernel-generic-4.19.4 and everything works fine again. This same thing is happening on a second Slackware64-current machine, with a different SCSI card, accessing a second PowerVault 132t. There are no logs generated in /var/log/syslog or /var/log/messages either. Tried kernel 4.19.6 and it does the same thing as 4.19.5. Looked at the 4.19.5 changelog, and I can't see anything obvious which would be responsible for causing this behavior.

Just wondering if anyone else can confirm this happening on their systems?
 
Old 12-06-2018, 09:57 AM   #2
hitest
Guru
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 5,613

Rep: Reputation: 1660Reputation: 1660Reputation: 1660Reputation: 1660Reputation: 1660Reputation: 1660Reputation: 1660Reputation: 1660Reputation: 1660Reputation: 1660Reputation: 1660
Quote:
Originally Posted by Barcoboy View Post
Greetings.

I'm having trouble with kernel version 4.19.5 in Slackware64-current where I am not able to write data to my LTO tape drives.
Good morning. Slackware64-current is now at kernel 4.19.7.

Code:
bash-4.4$ uname -rpm
4.19.7 x86_64 Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
Does the issue happen with the newer kernel?
 
Old 12-06-2018, 10:07 AM   #3
Barcoboy
Member
 
Registered: May 2010
Distribution: Slackware
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hitest View Post
Good morning. Slackware64-current is now at kernel 4.19.7.

Code:
bash-4.4$ uname -rpm
4.19.7 x86_64 Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
Does the issue happen with the newer kernel?
Thanks for the reply. Didn't realize that 4.19.7 was out yet. I will give it a try.
 
Old 12-06-2018, 11:33 AM   #4
Barcoboy
Member
 
Registered: May 2010
Distribution: Slackware
Posts: 36

Original Poster
Rep: Reputation: Disabled
Unfortunately, 4.19.7 behaves the same as 4.19.5 and 4.19.6. I noticed I can read a tape that was dumped with tar in 4.19.4, but as soon as I try to tar something new in 4.19.7, I am unable to read it back.
 
Old 12-07-2018, 12:43 AM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 2,115

Rep: Reputation: 457Reputation: 457Reputation: 457Reputation: 457Reputation: 457
Possibly connected to this issue: https://www.linuxquestions.org/quest...on-4175643737/

But also possibly not... Just a thought.

Last edited by rkelsen; 12-07-2018 at 12:44 AM.
 
Old 12-07-2018, 07:37 AM   #6
tramtrist
LQ Newbie
 
Registered: Jul 2018
Location: Detroit, MI / Nagoya JP
Distribution: Slackware, Debian Buster
Posts: 12

Rep: Reputation: Disabled
That was also my first thought rkelsen. But that bug existed on all 4.19.y versions and I think was most prevalent on nvme drives or devices where mq was used heavily. Not sure about tape. *edit* although high volumes of data copy were very much a part of the scenario where the corruption hit
Supposedly 4.19.8 will be released this weekend and that bug will be fixed.
Couldn't hurt to wait and test again after 4.19.8 is released...
If it still doesn't work you may want to report it to kernel devs....

Last edited by tramtrist; 12-07-2018 at 07:48 AM.
 
Old 12-07-2018, 08:00 AM   #7
Barcoboy
Member
 
Registered: May 2010
Distribution: Slackware
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rkelsen View Post
Possibly connected to this issue: https://www.linuxquestions.org/quest...on-4175643737/

But also possibly not... Just a thought.
I saw that, but am not sure this is the issue in my case, since it isn't really corruption that is happening but actually nothing at all being written to the tape except for filemarks. It is like the data is being sent over the SCSI bus, but the drive is not accepting it. Plus, up until 4.19.5, everything worked fine. Copying files from disk to disk appears to be fine as well.

Quote:
Originally Posted by tramtrist View Post
Supposedly 4.19.8 will be released this weekend and that bug will be fixed.
Couldn't hurt to wait and test again after 4.19.8 is released...
If it still doesn't work you may want to report it to kernel devs....
Will do. Not a critical problem because I can keep 4.19.4 on my main server, and test newer kernels on the second machine.
 
Old 12-08-2018, 11:52 PM   #8
Barcoboy
Member
 
Registered: May 2010
Distribution: Slackware
Posts: 36

Original Poster
Rep: Reputation: Disabled
Unfortunately, still broken with 4.19.8.

Reported to kernel Bugzilla... bug #201935.

https://bugzilla.kernel.org/show_bug.cgi?id=201935
 
2 members found this post helpful.
  


Reply

Tags
scsi, slackware -current, tape, tar


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Linux 4.2 breaks permissions for cd writing ioctl? TheRealGrogan Slackware 13 09-22-2015 03:29 AM
How to backup more than one time on same tape using DLT tape? hocheetiong Linux - Newbie 3 01-30-2008 07:54 AM
bacula - How do I setup up tape daily tape changes neocontrol Linux - Software 3 01-23-2008 10:27 PM
Using a DDS5 tape drive to restore from a DDS3 backup tape. AndrewCAtWayofthebit Linux - Hardware 1 05-14-2006 10:15 AM
Tape incremental backup to different tape tungaw2001 Linux - Software 0 08-13-2003 10:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration