LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-08-2017, 03:01 PM   #46
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373

I recently noticed that I was hearing my hard drive[s] doing a similar thing. Tonight, on a whim, I stopped conky (which didn't change anything) then I pkilled hddtemp and, lo and behold, the noise stopped.
I'm fairly sure I only started getting this noise recently so I can only assume it's a bug in hddtemp?
 
Old 06-23-2017, 07:16 AM   #47
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
Quote:
Originally Posted by business_kid View Post
... It would be helpful if you could summarize problems, progress, and remaining issues while eliminating what didn't work. ...

Good idea. I'll do it systematically from the beginning of the thread please bear with me.


Problem:

"I can hear that one hard disk is briefly accessed about 88 times / minute -- sounds like a quietly beating heart. This is on rare occasions about once a month.


/ is on a SSD, so no mechanical noises can come from there. Two partitions are mounted from two seagate disks, /home with ext4 on sda and /backup with ext4 ond sdb. About six partitions on sda and sdb are not mounted.


What I tried so far:

iostat: no problem obvious
fstab: no problem obvious
indexing a file?: akonadi, mysqld killed, no change; not a new disk / partition
swapping: no
smartmontools: installed, no Problem, but seagate changed the meaning of the parameters without disclosing what they now stand for...
seatools: results in "everything roger" and SMART will be "not triggered"
lsof |grep sdX: no problem obvious for the experts either
iotop: kworker and systemd both are at the top but numbers read 0
sync: no change
"relatime" in fstab: no change
"lazytime" in fstab: no change
"noatime" in fstab: no Change
Firmware of sda: unresolvable
"echo 1 > /proc/sys/vm/block_dump": did not change anything
"diff <(grep '_bytes: [1-9]' /proc/*/io) <(sleep 1;grep '_bytes: [1-9]' /proc/*/io)": came with empty result
"dmesg|tail": indicated activities of jbd2, the journalling daemon of ext4


Resume:

There is an indicator thad jbd2 is the culprit but no real proof (while Hardware can't be ruled out entirely). I found no way to shut jbd2 down while /home is mounted (and not endangering my data).


Is a dirtied inode a sign of danger:
Code:
[ 5060.928177] DOM Worker(3327): dirtied inode 9437485 (recovery.js.tmp) on sda6


Suggestions? And thanks for everybody's patience .

Last edited by JZL240I-U; 06-23-2017 at 07:18 AM.
 
Old 06-23-2017, 07:51 AM   #48
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Have you tried putting them to sleep with hddparm? Should be something like "hddparm -S 5 /dev/sde" run with root permission.
 
Old 06-23-2017, 11:18 AM   #49
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
To me, this isn't looking like a software problem, unless you can tell us it is. I think we may have to consider disk firmware or internals as a possibility. You seem to have been thorough.

As you have several unmounted partitions, I would enlist the spare space and try to move the problem. If there is no spare space (otherwise occupied) could you unmount one or the other in a process of elimination and mount it only when needed?
 
Old 06-23-2017, 12:04 PM   #50
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by business_kid View Post
To me, this isn't looking like a software problem, unless you can tell us it is. I think we may have to consider disk firmware or internals as a possibility. You seem to have been thorough.

As you have several unmounted partitions, I would enlist the spare space and try to move the problem. If there is no spare space (otherwise occupied) could you unmount one or the other in a process of elimination and mount it only when needed?
As I aluded to, unless you specifically tell the disk to power down, using hddparm, it probably won't power down and, for whatever reason (I noted hddtemp), will do this.
Not that I disagree completely just that I don't think software has been ruled out.
 
Old 06-24-2017, 04:34 AM   #51
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I spent a lot of time addressing hardware faults in strange hardware in a past life in Industrial Electronics. Then my industry customers moved manufacturing to China, India & Poland, but I didn't :-/.

Then I survived on a well sensitive 'seat of the pants' for assessing the most likely cause, and my comment gave you the benefit of that. I agree software has not been ruled out entirely, and don't believe it ever can be. But your previous work as detailed in the review has caused it to recede as a likely cause. You can get more definite ruling out the hardware/firmware in the disk, which I suggest you do, and then you have nearly proved it's software or PC related. It's also very difficult to rule out hardware & firmware entirely. As complexity and chip density increases, certainty in maintenance issues reduces. Today's pcs are complex machines.
 
Old 06-28-2017, 07:22 AM   #52
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
Then we are at a dead end. As already written in post #37 of this thread, I'm unable to update the firmware of sda due to a faulty update from seagate. But I'll sure try hddtemp when it starts ticking again.

In the meantime I'll open a new thread and ask whether somebody knows how to stop jbd2. If and when I get results I'll post a link here.

<edit> Just to be on the secure side I checked the seagate site again. It is contradictionary in itself, saying in one place that there is no new firmware while on an other page it offers the faulty firmware *sigh*.

I just noticed that I can umount sdb (i.e. /backup) next time, thus restricting the possible target once more. Will be back </edit>

Last edited by JZL240I-U; 06-29-2017 at 04:24 AM.
 
Old 10-01-2017, 12:21 PM   #53
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
Okay.

It is not /dev/sdb (backup). Umounted it, heart still beating.

It is not hddtemp either. Stopped it, heart still beating, also after starting it again.

"hdparm -S 5 /dev/sda" doesn't do the trick, either.

*grrr*

I wonder, whether we can crack this nut eventually...

Thanks for your support.
 
Old 10-01-2017, 01:52 PM   #54
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
This is a maintenance bodge, but may work for you. It's sort of Horse Sense.
Quote:
Horse sense is the thing horses have which prevents them betting on people.
W.C. Fields
When the 88 times/minute heartbeat starts up again, encourage it and do nothing to stop it.
Then go round the disks, put a finger on them and feel for vibration. Or put an ear to it and listen for it. Often putting a head between 2 disks and listening for left/right is best.

This is the stupid but most effective way to get at this. I don't have your exact disk alignment, and don't feel like reading 52 posts to discover you haven't laid it out. If you find the disk, then maybe we can go after why.
 
Old 10-01-2017, 03:04 PM   #55
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Skimming through part of this thread...is /home mounted on a spinning hard drive (/dev/sda)? If so, then it could be any number of things related to X and the desktop environment periodically writing to the hard drive. If you have any sort of web browser or numerous other sorts of software running, there will be periodic writes (these generally assist in recovering what you were working on in case of a power failure or software crash).

If you have /home on a spinning hard drive, I think you're just going to have to live with the system writing to /home often. If the noise is annoying to you, put /home on the SSD instead. You can use symlinks to link to the spinning hard drive for stuff which is too big to fit on the SSD.

Although it's annoying, I would recommend nesting those symlinks within a folder so they are not directly in ~. If you don't, then even something as simple as "ls" in bash can access and probably spin up the hard drive (even if just to see whether or not the symlink is broken).
 
Old 10-02-2017, 06:08 AM   #56
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by business_kid View Post
This is a maintenance bodge, but may work for you. It's sort of Horse Sense.
When the 88 times/minute heartbeat starts up again, encourage it and do nothing to stop it.
Then go round the disks, put a finger on them and feel for vibration. Or put an ear to it and listen for it. Often putting a head between 2 disks and listening for left/right is best.

This is the stupid but most effective way to get at this. I don't have your exact disk alignment, and don't feel like reading 52 posts to discover you haven't laid it out. If you find the disk, then maybe we can go after why.
I've used a flathead screwdriver as a stethoscope to help with that. Any vibrations from the disk get transferred to the screwdriver, then put the handle of the screwdriver against your head, which transfers the vibration to your head/eardrum making it easier to hear.
 
Old 10-02-2017, 08:11 AM   #57
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
@business_kid & jpollard Good idea, I'll make doubly sure that it is /dev/sda next time it starts ticking again.

@IsaacKuo Yes, this is a spinning disk. I have three but mounted partitions only from two, one of which I can umount to no effect. So it is quite clearly emanating from /home mounted on /dev/sda6.

It occurs only every other month or so, therefore I interpret it as a faulty condition (glitch) in the system with no harm done so far. BUT(!) I want to know what it is.

I started another thread on the suspicion that it might be the jbd2-demon of the ext4 file system: https://www.linuxquestions.org/quest...em-4175608780/ but at the last occurrence I forgot to try the suggestion there -- mea culpa, mea maxima culpa. But the ticking will come again, never fear .
 
Old 10-03-2017, 03:45 AM   #58
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by jpollard View Post
I've used a flathead screwdriver as a stethoscope to help with that. Any vibrations from the disk get transferred to the screwdriver, then put the handle of the screwdriver against your head, which transfers the vibration to your head/eardrum making it easier to hear.
/OT
I cut my teeth and did most of my work around high voltage. Screwdrivers weren't much help there, except you could approach Extra High Tension (EHT 20KV or more) with a screwdriver tip, a spark would jump up to half an inch (12-13 mm) and you could check your EHT as you earthed it through the plastic. I carelessly left a knuckle over the metal one day, and the spark jumped again without the limiting protection of the plastic. I didn't do it twice!
 
Old 11-05-2017, 10:43 AM   #59
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
@business_kid & jpollard Yep, it is definitely /dev/sda, I put my finger on it and can clearly feel the vibrations during every "tick". I can't "umount -f"/dev/sda6 (/home), system tells me it is in use...

The suggestion in the other thread doesn't help either, seems to be more Arch specific but I am running SUSE -- not to mention the fact that I don't want a long commit interval since usually there is no ticking. Btw. changing commit times would work only after a reboot and then the ticking is gone anyway...
 
Old 11-05-2017, 12:21 PM   #60
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
At long last we have eliminated your umpteen drives and got it down to the / partition. 59 posts is nearly a record length for a problem - enter it for the Guinnes Book of records, or the LQ equivalent. We Irish are always finding excuses for introducing booze into a conversation :-).

Anyhow, next time this happens, get a root console open and run
Code:
umount -a (Ignore 'can't unmount' errors)
lsof > ~/lsof_bad.txt
/ will not be unmounted, of course. ideally you'd unmount everything else. If the 'umount -a' stops it, be sure to mention it when you report back, but continue here. Then when it's stopped
Code:
umount -a
lsof > ~/lsof_good.txt
Then, you can narrow it further with
Code:
diff ~/lsof_bad.txt ~/lsof_good.txt > lsof.diff
Post the output. It's possible that things are running in /opt or /home or places which are causing this. Presuming that's not the case, you can eliminate them (See below). That will certainly narrow it down to hopefully a few apps.
If you find that an appreciable number of things are running from other drives that you know are not causing this, change the lsof commands to read
Code:
lsof |grep -v -e 'home' -e 'opt' > file
or wherever the known innocent stuff resides. This will help to keep the diff as short as possible. The -v on grep selects non matching lines. You can pack multiple -e 'something' options in a single grep.
 
  


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
Constant disk i/o accesses in Mint and WinXP runbei Linux - Newbie 7 12-17-2008 03:21 PM
Disk Accesses Suse10.2 64 bit hcgrant SUSE / openSUSE 7 06-15-2007 03:00 PM
High disk accesses volume guarriman Linux - General 1 07-18-2006 01:29 PM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM
hard disk accesses continually... denbark3725 Linux - Software 2 08-23-2002 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:36 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