You are not logged in.

#1 2022-09-02 13:19:35

Morta
Member
Registered: 2019-07-07
Posts: 655

block device autoloading is deprecated and will be removed

I have a loop when I shutdown or reboot with this message

block device autoloading is deprecated and will be removed

I found this patch... Is there a possibility that Arch Linux Maintainers change this flag or have a I implement the second patch by hand for my kernel?

https://www.spinics.net/lists/linux-block/msg80356.html

Is this patch ok or is there a other way?

thx

Last edited by Morta (2022-09-02 13:20:00)

Offline

#2 2022-09-02 17:13:29

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: block device autoloading is deprecated and will be removed

With LTS Kernel works

Offline

#3 2022-09-02 18:31:31

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

Re: block device autoloading is deprecated and will be removed

The commit you referenced setting the default for BLOCK_LEGACY_AUTOLOAD to y has been applied since 5.18 https://github.com/torvalds/linux/commi … b71f6d7875
Arch disabled  BLOCK_LEGACY_AUTOLOAD for 5.18 which broke mdraid so was re-enabled in https://github.com/archlinux/svntogit-p … 5ceec985de
Edit:
I should note that BLOCK_LEGACY_AUTOLOAD still has the default set to y as of 6.0-rc3.

Last edited by loqs (2022-09-02 18:57:53)

Offline

#4 2022-09-04 23:16:58

rokku
Member
Registered: 2022-09-04
Posts: 2

Re: block device autoloading is deprecated and will be removed

On Linux 5.19.6-arch1-1 #1 error still occurs. any advice to fix it?

Last edited by rokku (2022-09-04 23:17:11)

Offline

#5 2022-09-04 23:23:27

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: block device autoloading is deprecated and will be removed

There is no error, ignore it.

Offline

#6 2022-09-05 01:04:36

rokku
Member
Registered: 2022-09-04
Posts: 2

Re: block device autoloading is deprecated and will be removed

But my system stuck in a loop and does not shutdown. i have to use the reset switch.

Offline

#7 2022-09-05 03:34:03

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

Re: block device autoloading is deprecated and will be removed

rokku wrote:

But my system stuck in a loop and does not shutdown. i have to use the reset switch.

You could build a kernel with BLOCK_LEGACY_AUTOLOAD unset.
I doubt it would fix your shutdown issue.  If the udev rules has not been fixed then you may have a new issue on booting.

Offline

#8 2022-09-06 19:29:46

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: block device autoloading is deprecated and will be removed

A no framebuffer patch and set to BLOCK_LEGACY_AUTOLOAD=n fix the issue. Hope for a solution soon!

Offline

#9 2022-09-07 10:40:25

leomeinel
Member
Registered: 2022-08-01
Posts: 33

Re: block device autoloading is deprecated and will be removed

Is there a way to not use deprecated autoloading while setting up an encrypted raid1 with mdadm and cryptsetup?
With boot partition (luks1) and root (luks2) being encrypted.

Last edited by leomeinel (2022-09-07 10:41:01)

Offline

#10 2022-09-07 10:41:56

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: block device autoloading is deprecated and will be removed

Yes I use RAID 0 with mdadm and it’s works described above

Offline

#11 2022-09-07 13:45:55

leomeinel
Member
Registered: 2022-08-01
Posts: 33

Re: block device autoloading is deprecated and will be removed

Morta wrote:

Yes I use RAID 0 with mdadm and it’s works described above

Okay, thats nice. However it is just a way to suppress the error that doesn't fix the underlying problem.
At least if you consider the deprecated feature to be the problem.

Last edited by leomeinel (2022-09-07 13:46:53)

Offline

#12 2022-09-14 00:42:49

leomeinel
Member
Registered: 2022-08-01
Posts: 33

Re: block device autoloading is deprecated and will be removed

This is now solved with linux 5.19.8.arch1-1 and linux-zen 5.19.8.zen1-1 probably also with the lts and hardened

Offline

#13 2022-09-14 03:45:00

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

Re: block device autoloading is deprecated and will be removed

CONFIG_BLOCK_LEGACY_AUTOLOAD=y is still set in the config https://github.com/archlinux/svntogit-p … onfig#L912
The warning message is still present https://github.com/archlinux/linux/blob … dev.c#L748

Offline

#14 2022-09-23 17:12:21

leomeinel
Member
Registered: 2022-08-01
Posts: 33

Re: block device autoloading is deprecated and will be removed

@loqs I can confirm. My last conclusion was wrong. The shutdown was just faster but the error messages are still present!

Offline

#15 2022-09-28 16:40:43

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

Re: block device autoloading is deprecated and will be removed

I can not see how the message could be connected to a loop on shutdown or reboot.  What exactly do you mean by loop?  Please post the journal for a shutdown or reboot showing the issue.

Offline

#16 2022-09-28 17:11:15

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: block device autoloading is deprecated and will be removed

https://abload.de/img/auswahl_03493d14.png

looks like this in a endless queue. In journalctl -b I can't find anything but I can put to ix.io

[morta@5erver ~]$ sudo journalctl -b | curl -F 'f:1=<-' ix.io

http://ix.io/4bIy

Offline

#17 2022-09-30 05:39:59

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: block device autoloading is deprecated and will be removed

Anyone?

Offline

#18 2022-09-30 11:50:20

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: block device autoloading is deprecated and will be removed

Morta wrote:

Anyone?

Don't do that. https://wiki.archlinux.org/title/Genera … es#Bumping

Looking at your post history, you have been asked not to bump at least once before. Do not do this again.


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#19 2022-10-01 21:32:13

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

Re: block device autoloading is deprecated and will be removed

From the screenshot something late in shutdown is calling a mount related call repeatedly and every call triggers the deprecation warning until the kernel's rate limit is reached.  The shutdown itself seems very slow / blocked.
https://freedesktop.org/wiki/Software/s … wnproblems

Offline

#20 2022-10-01 21:34:48

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: block device autoloading is deprecated and will be removed

sudo reboot —force works but I have a NFS Drive mounted and two LVM Raid 0

Offline

#21 2022-10-01 21:59:16

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

Re: block device autoloading is deprecated and will be removed

If you unmount the NFS mount before shutdown or avoid ever mounting it at boot is there any change?  If not repeat for the LVM mount.  Still no change see my link in post #19 and post the contents of shutdown-log.txt

Offline

#22 2022-10-03 18:31:01

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: block device autoloading is deprecated and will be removed

cat /shutdown-log.txt | curl -F 'f:1=<-' ix.io

http://ix.io/4ccN

Seems to working again but here my shutdown-log.txt

Offline

#23 2022-10-03 19:08:00

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 1,932
Website

Re: block device autoloading is deprecated and will be removed

I have a similar issue on my workstation, whose storage I recently upgraded from a single SSD to two SSDs in RAID-0.
When I shut down the system, it also prints a lot of those deprecation warnings.
However, the system will shut down eventually. This takes roughly between 30 sec to 5 minutes, apparently dependent on the constellation of the stars.

Offline

Board footer

Powered by FluxBB