LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 07:51 AM   #1
Barcoboy
Member
 
Registered: May 2010
Distribution: Slackware
Posts: 54

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, 08:57 AM   #2
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
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, 09:07 AM   #3
Barcoboy
Member
 
Registered: May 2010
Distribution: Slackware
Posts: 54

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, 10:33 AM   #4
Barcoboy
Member
 
Registered: May 2010
Distribution: Slackware
Posts: 54

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.
 
1 members found this post helpful.
Old 12-06-2018, 11:43 PM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

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

But also possibly not... Just a thought.

Last edited by rkelsen; 12-06-2018 at 11:44 PM.
 
Old 12-07-2018, 06:37 AM   #6
tramtrist
Member
 
Registered: Jul 2018
Location: Cincinnati USA
Distribution: Slackware
Posts: 535

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
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 06:48 AM.
 
Old 12-07-2018, 07:00 AM   #7
Barcoboy
Member
 
Registered: May 2010
Distribution: Slackware
Posts: 54

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, 10:52 PM   #8
Barcoboy
Member
 
Registered: May 2010
Distribution: Slackware
Posts: 54

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
 
3 members found this post helpful.
Old 12-18-2018, 01:00 PM   #9
Barcoboy
Member
 
Registered: May 2010
Distribution: Slackware
Posts: 54

Original Poster
Rep: Reputation: Disabled
Update: the bug has been found and corrected. Per the Bugzilla report:

Quote:
A fix has been queued for the 4.19 stable series and should be included in a 4.19.x stable kernel soon. See also
https://lore.kernel.org/lkml/2018121...oundation.org/
 
2 members found this post helpful.
Old 12-18-2018, 01:35 PM   #10
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,096

Rep: Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275
Quote:
Originally Posted by Barcoboy View Post
Update: the bug has been found and corrected. Per the Bugzilla report:
Looks like it will be included with 4.19.11, which is scheduled to be released this Thursday afternoon, UTC.

Edit in: The 4.19.11 update has been released and does include this patch.

Last edited by cwizardone; 12-19-2018 at 01:15 PM.
 
Old 12-18-2018, 10:25 PM   #11
tramtrist
Member
 
Registered: Jul 2018
Location: Cincinnati USA
Distribution: Slackware
Posts: 535

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
Ha.. I'll be...
Good job Barcoboy
 
Old 12-20-2018, 10:12 AM   #12
Barcoboy
Member
 
Registered: May 2010
Distribution: Slackware
Posts: 54

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tramtrist View Post
Ha.. I'll be...
Good job Barcoboy
Thanks tramtrist!

I just installed 4.19.11 on one of my machines, and my tape backups are working again.

Thanks everyone.
 
1 members found this post helpful.
  


Reply

Tags
scsi, slackware -current, tape, tar



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 02:29 AM
How to backup more than one time on same tape using DLT tape? hocheetiong Linux - Newbie 3 01-30-2008 06:54 AM
bacula - How do I setup up tape daily tape changes neocontrol Linux - Software 3 01-23-2008 09:27 PM
Using a DDS5 tape drive to restore from a DDS3 backup tape. AndrewCAtWayofthebit Linux - Hardware 1 05-14-2006 09:15 AM
Tape incremental backup to different tape tungaw2001 Linux - Software 0 08-13-2003 09:42 PM

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

All times are GMT -5. The time now is 05:30 PM.

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
Open Source Consulting | Domain Registration