Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

10/1/24, 15:15 Document 2988785.

1
Copyright (c) 2024, Oracle. All rights reserved. Oracle Confidential.

Oracle Linux: "kernel: Trying to write to read-only block-device sdx" Errors are Reporting Frequently in /var/log/messages (Doc ID
2988785.1)

In this Document

Symptoms
Changes
Cause
Solution
References

APPLIES TO:

Linux OS - Version Oracle Linux 8.8 and later


Linux x86-64

SYMPTOMS

New installation of Grid Infrastructure for a standalone server with Oracle ASM Filter Driver.After rebooting the Linux server and Oracle GI/ASM starting up normally and able to start
database with no issues.

The messages stop appearing in the log after shutting down the database and GI/ASM. The errors return when GI/ASM is started.

However, there will be connectivity problems and intermittent disconnections.The following messages are continuously display in /var/log/messages.

Sep 20 04:43:30 hostname kernel: Trying to write to read-only block-device sde


Sep 20 04:43:30 hostname kernel: Trying to write to read-only block-device sdk
Sep 20 04:43:33 hostname kernel: Trying to write to read-only block-device sdk
Sep 20 04:43:33 hostname kernel: Trying to write to read-only block-device sdi
Sep 20 04:43:33 hostname kernel: Trying to write to read-only block-device sde
Sep 20 04:43:33 hostname kernel: Trying to write to read-only block-device sdk
Sep 20 04:43:36 hostname kernel: Trying to write to read-only block-device sdk
Sep 20 04:43:36 hostname kernel: Trying to write to read-only block-device sdi
Sep 20 04:43:36 hostname kernel: Trying to write to read-only block-device sde
Sep 20 04:43:36 hostname kernel: Trying to write to read-only block-device sdk

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=wf3vg1tj3_58&id=2988785.1 1/2
10/1/24, 15:15 Document 2988785.1

CHANGES

New Environment

CAUSE

With soft filtering, AFD turns a device into a non-writable device by simply enabling its read-only bit. Multipath doesn't handle devices being set into read-only mode. They need to
be turned into read-write (rw) mode. Enabling soft-filtering would cause AFD to turn the device into read-only mode. This generates an udev event that causes the mpath* device
symblinks to disappear.

SOLUTION

If multipathing does not provide the ability to turn the mpath* devices into read-only, then AFD soft-filtering cannot work. So soft-filtering has to be disabled as a workaround.

Disable afd filtering by running :

#asmcmd afd_filter -d

REFERENCES
https://community.oracle.com/mosc/discussion/4546036/kernel-errors-trying-to-write-to-read-only-block-device-nvme
NOTE:2865373.1 - Oracle restart/RAC with multipath errored out "CLSRSC-180"

Didn't find what you are looking for?

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=wf3vg1tj3_58&id=2988785.1 2/2

You might also like