You are not logged in.

#1 2023-10-26 15:44:07

LogXx
Member
Registered: 2019-07-25
Posts: 19

[SOLVED] HDD spins up during poweroff

On my Arch computer I have two disks: the main SSD where system is installed and HDD (model WDC WD10EZEX-22M) for files. I set my HDD to spin down after 15 minutes of idling through Gnome Disks utility.

Thing is, the system mounts hdd on poweroff if it is inactive and then almost immediately disk emergency shutdown is performed (judging by the sound the disk makes). I don't really understand why this happens though, because I use this disk not quite often.  Is there a way to keep disk spun down at poweroff?

According to systemd messages, HDD spin up occurs on "Stopping Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling" step.

Last edited by LogXx (2023-10-26 17:57:34)

Offline

#2 2023-10-26 16:24:21

loqs
Member
Registered: 2014-03-06
Posts: 17,483

Re: [SOLVED] HDD spins up during poweroff

If the disk is not being shut down cleanly I would look at https://bugs.archlinux.org/task/80064 https://bugzilla.kernel.org/show_bug.cgi?id=218038 which should be fixed in linux 6.5.9.arch2-1.

With respect to the HDD being spun up does the system use LVM apart from the systemd services?

Offline

#3 2023-10-26 17:34:57

LogXx
Member
Registered: 2019-07-25
Posts: 19

Re: [SOLVED] HDD spins up during poweroff

I don't use LVM in my system as far as I know

Last edited by LogXx (2023-10-26 17:36:26)

Offline

#4 2023-10-26 17:45:19

loqs
Member
Registered: 2014-03-06
Posts: 17,483

Re: [SOLVED] HDD spins up during poweroff

Are there any packages depending on lvm2 such as udisks2?

pacman -Qi lvm2

Offline

#5 2023-10-26 17:46:47

LogXx
Member
Registered: 2019-07-25
Posts: 19

Re: [SOLVED] HDD spins up during poweroff

loqs wrote:

Are there any packages depending on lvm2 such as udisks2?

pacman -Qi lvm2

Yes.

...
Required By     : udisks2
...

Offline

#6 2023-10-26 17:51:41

loqs
Member
Registered: 2014-03-06
Posts: 17,483

Re: [SOLVED] HDD spins up during poweroff

See https://bugs.archlinux.org/task/79804 you could try masking lvm2-monitor.service.

Offline

#7 2023-10-26 17:57:18

LogXx
Member
Registered: 2019-07-25
Posts: 19

Re: [SOLVED] HDD spins up during poweroff

loqs wrote:

See https://bugs.archlinux.org/task/79804 you could try masking lvm2-monitor.service.

Looks like masking solves the issue, thank you!

Offline

Board footer

Powered by FluxBB