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 - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-28-2017, 07:51 AM   #1
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
How to temporarily stop the jbd2-demon of the ext4 file system?


I have a hard disk which is from time to time annoying me: it starts "ticking" like a quietly and steadily beating heart (i.e. it is moving ist magnetic heads about 88 times / minute). Searching for the cause is documented in this lengthy thread: http://www.linuxquestions.org/questi...rt-4175594770/


One possible culprit might be jbd2:


Code:
PC:/home/me # dmesg|tail
[ 4283.984763] jbd2/sda6-8(954): WRITE block 453324480 on sda6 (8 sectors)
[ 4283.985042] jbd2/sda6-8(954): WRITE block 453324488 on sda6 (8 sectors)
[ 4286.696612] kworker/u16:3(4218): WRITE block 3769248 on sdc2 (8 sectors)
[ 4289.512775] jbd2/sda6-8(954): WRITE block 453324496 on sda6 (8 sectors)
[ 4289.512802] jbd2/sda6-8(954): WRITE block 453324504 on sda6 (8 sectors)
[ 4289.513094] jbd2/sda6-8(954): WRITE block 453324512 on sda6 (8 sectors)
[ 4291.899308] bash(4579): READ block 49416608 on sdc2 (32 sectors)
[ 4291.899374] bash(4578): READ block 49542552 on sdc2 (32 sectors)
[ 4291.911403] dmesg(4578): READ block 49542584 on sdc2 (104 sectors)
[ 4291.911442] tail(4579): READ block 49416640 on sdc2 (104 sectors)

To make sure, I want to temporarily switch off jbd2 but I have no idea how to proceed. Google did not help *sigh*. Anybody here with this particular piece of knowledge?
 
Old 06-28-2017, 08:08 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
jdb2 is run by the kernel for the Journaling of ext4 filesystems. Since it is started by the kernel I don't think it can be turned off.

However, this post suggests you can change the timing by doing a workaround:
Quote:
Adding commit=60 to the partition's entry in fstab increases the interval to 30-45 seconds.
If you change the timing and see if it affects how often you hear the clicks it might help prove this is your issue.
 
Old 06-28-2017, 08:10 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,901

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
probably you can find something useful here: https://bbs.archlinux.org/viewtopic.php?id=113516&p=2
 
Old 06-29-2017, 04:26 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
I'll have to wait until the disk is doing it again. I'll report then. Thanks for your inputs.
 
Old 11-05-2017, 10:39 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Sorry, but no. pm-utils are not installed and /var/log/crond.log, /var/log/everything.log and /var/log/auth.log don't even exist, so that can't be it either. Funny. Any other ideas?

Last edited by JZL240I-U; 11-06-2017 at 08:50 AM.
 
Old 11-06-2017, 08:41 AM   #6
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
If your distro/version uses systemd it may not have syslog (/var/log/...) files but instead rely on journald. (On RHEL7 they use both.)

You can use "journalctl" to view logging done by journald. "man journalctl" will give you all the usage options.
You can run "journalctl -l" to see entire lines.
 
Old 11-06-2017, 12:34 PM   #7
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Hi MensaWater,

Yes, openSUSE uses journald, thanks.

But those are sh*tty man-pages (and none of your fault, I'd guess). Darn dot.abbreviations (.SH .SE .PP ...) with no legend, not to mention the hare-brained formatting -- grrr.

Problem is, it happened last time yesterday, so it's many thousands of lines back in the log. Do you have any idea what we are looking for so I can "grep" for the culprit?
 
  


Reply



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
LXer: Linux Kernel 3.2.71 LTS Brings s390, x86, Btrfs, EXT4, and JBD2 Improvements LXer Syndicated Linux News 0 08-19-2015 05:00 AM
How to change file system from ext4 journeying to ext4 writeback ? 5883 Linux - Newbie 6 03-10-2014 08:04 AM
Ext4 and jbd2 macd Linux - General 3 09-21-2013 08:55 PM
[SOLVED] file system check for ext4 file systems anon091 Linux - Newbie 18 12-24-2012 01:37 PM
Ext4 File System - Out or Not?? QueenZ Linux - Newbie 12 02-12-2009 04:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:04 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
Open Source Consulting | Domain Registration