[SOLVED]HDD spin-up unexpectedly

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED]HDD spin-up unexpectedly

Postby mackowiakp » Dec 11th, '23, 10:00

Some process occasionally causes the HDD connected via USB 3.0 to spin-up.
The drive is normally unmounted and mounted only for off-line backup needs.
I wanted to investigate the situation using auditd, but it turns out that it is no longer supported by the 6.5 kernel.

Code: Select all
[root@Piotr ~]# ls -la /dev/sdb
brw-rw---- 1 root disk 8, 16 gru 11 08:01 /dev/sdb
[root@Piotr ~]# auditctl -a always,exit -F devmajor=8 -F devminor=16
Error - audit support not in kernel
Cannot open netlink audit socket


What tool could I use instead of the command above?
Last edited by mackowiakp on Jan 8th, '24, 06:13, edited 1 time in total.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: HDD spin-up unexpectedly

Postby doktor5000 » Dec 11th, '23, 14:43

Some more details about your setup would be helpful. Is the external HDD listed in your fstab or do you mount it by means of your desktop environment ?
Also, when the HDD spins up, what process do you see when you run iotop ? And how often do those occur, once per day, more or less often ... ?

My guess would either by the daily msec scans or some thumbnailer.
As we don't have audit support enabled, you could leave something like fatrace running and watch the mount for the external HDD.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17996
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: HDD spin-up unexpectedly

Postby mackowiakp » Dec 11th, '23, 15:00

HDD is listed in fstab (user mountable) and mounted from Bash backup script.
iotop does note show any proces with that dev.
IT occurs 2-3 times per hour, unregulary
For test I disabled msec but it still spin up
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: HDD spin-up unexpectedly

Postby morgano » Dec 11th, '23, 15:10

I now requested an update of auditd, 3.1.2 say it have updated tables for 6.5 kernels.
Just guessing that may be the problem.
Would be great if you could test and feedback that update in the bug.
https://bugs.mageia.org/show_bug.cgi?id=32616
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1467
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: HDD spin-up unexpectedly

Postby doktor5000 » Dec 11th, '23, 15:59

Why do you suggest an audit update is needed? OP probably doesn't even have audit support enabled (kernel option audit=1) as we neither have it installed nor enabled by default.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17996
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: HDD spin-up unexpectedly

Postby johnpenguin » Jan 7th, '24, 00:51

Perhaps the device is performing a SMART test. If you check the SMART properties, it will tell you when the last SMART test was performed.
johnpenguin
 
Posts: 37
Joined: Feb 28th, '19, 02:15

Re: HDD spin-up unexpectedly

Postby mackowiakp » Jan 7th, '24, 01:47

I think its possible because disk is pooled every 30 min by default. So I try to disable checking of this disk in smartd.conf.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: HDD spin-up unexpectedly

Postby mackowiakp » Jan 8th, '24, 06:13

johnpenguin wrote:Perhaps the device is performing a SMART test. If you check the SMART properties, it will tell you when the last SMART test was performed.

Yep, its right solution!
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: [SOLVED]HDD spin-up unexpectedly

Postby morgano » Feb 17th, '24, 19:07

auditd, but it turns out that it is no longer supported by the 6.5 kernel.

If you want to try again, and/or help QA auditd, a new version is in testing.
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1467
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest