Skip to contentSkip to conversation

New: Kernel metadata repair facility is not available, but kernel has CONFIG_XFS_ONLINE_REPAIR=y

Bug 217604 [email protected] 3 participants 6 messages Jun 28, 2023 – Jun 29, 2023

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=217604

Bug ID: 217604
Summary: Kernel metadata repair facility is not available, but
kernel has CONFIG_XFS_ONLINE_REPAIR=y
Product: File System
Version: 2.5
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: XFS
Assignee: [email protected]
Reporter: [email protected]
Regression: No

Hi,

I'm trying the new xfs_scrub and I get this error:

$ sudo xfs_scrub /mnt/xfs
EXPERIMENTAL xfs_scrub program in use! Use at your own risk!
Error: /mnt/xfs: Kernel metadata repair facility is not available.  Use -n to
scrub.
Info: /mnt/xfs: Scrub aborted after phase 1.
/mnt/xfs: operational errors found: 1

But the XFS_ONLINE_SCRUB and XFS_ONLINE_REPAIR are enabled in my kernel:

$ zcat /proc/config.gz | grep XFS
CONFIG_XFS_FS=y
CONFIG_XFS_SUPPORT_V4=y
# CONFIG_XFS_QUOTA is not set
CONFIG_XFS_POSIX_ACL=y
# CONFIG_XFS_RT is not set
CONFIG_XFS_ONLINE_SCRUB=y
CONFIG_XFS_ONLINE_REPAIR=y
# CONFIG_XFS_WARN is not set
# CONFIG_XFS_DEBUG is not set
# CONFIG_VXFS_FS is not set

I'm on kernel 6.3.8 and xfsprogs 6.3.0. Do I need to enable XFS_DEBUG as well?

xfs_scrub -n seems to run fine.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#1 lore raw
Quoted 19 lines · On Wed, Jun 28, 2023 at 08:50:43AM +0000, [email protected] wrote:

https://bugzilla.kernel.org/show_bug.cgi?id=217604

Bug ID: 217604
Summary: Kernel metadata repair facility is not available, but
kernel has CONFIG_XFS_ONLINE_REPAIR=y
Product: File System
Version: 2.5
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: XFS
Assignee: [email protected]
Reporter: [email protected]
Regression: No

Hi,

Quoted 8 lines

I'm trying the new xfs_scrub and I get this error:

$ sudo xfs_scrub /mnt/xfs
EXPERIMENTAL xfs_scrub program in use! Use at your own risk!
Error: /mnt/xfs: Kernel metadata repair facility is not available.  Use -n to
scrub.
Info: /mnt/xfs: Scrub aborted after phase 1.
/mnt/xfs: operational errors found: 1

We haven't merged all the online repair code yet so it is not yet available to use. Please close the bug and monitor the upstream XFS list to find out when the repair code is fully merged and enabled at runtime.

FWIW, it is far better to send a message to the mailing list ([email protected]) to find out what the status of something is than it is to raise a bug just to ask a question about support...

-Dave.

Signature · 2 lines
Dave Chinner
[email protected]
#2 lore raw

[Bug 217604] Kernel metadata repair facility is not available, but kernel has XFS_ONLINE_REPAIR=y

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=217604

--- Comment #1 from Dave Chinner ([email protected]) ---

Quoted 19 lines · On Wed, Jun 28, 2023 at 08:50:43AM +0000, [email protected] wrote:

https://bugzilla.kernel.org/show_bug.cgi?id=217604

Bug ID: 217604
Summary: Kernel metadata repair facility is not available, but
kernel has CONFIG_XFS_ONLINE_REPAIR=y
Product: File System
Version: 2.5
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: XFS
Assignee: [email protected]
Reporter: [email protected]
Regression: No

Hi,

Quoted 8 lines

I'm trying the new xfs_scrub and I get this error:

$ sudo xfs_scrub /mnt/xfs
EXPERIMENTAL xfs_scrub program in use! Use at your own risk!
Error: /mnt/xfs: Kernel metadata repair facility is not available.  Use -n to
scrub.
Info: /mnt/xfs: Scrub aborted after phase 1.
/mnt/xfs: operational errors found: 1

We haven't merged all the online repair code yet so it is not yet available to use. Please close the bug and monitor the upstream XFS list to find out when the repair code is fully merged and enabled at runtime.

FWIW, it is far better to send a message to the mailing list ([email protected]) to find out what the status of something is than it is to raise a bug just to ask a question about support...

-Dave.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#3 lore raw

[Bug 217604] Kernel metadata repair facility is not available, but kernel has XFS_ONLINE_REPAIR=y

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=217604

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |DOCUMENTED

--- Comment #2 from [email protected] ---
OK Dave, I'll do that. Maybe the help for XFS_ONLINE_REPAIR can mention that it is not yet working, to avoid future confusion.

Actually, I was reporting another kernel bug (vmalloc error), which was probably seen before and currently it is in network drivers (no idea, why it is there).

I'm telling you, as it might be XFS related. I see the bug exactly once a day and when I look at my cron.daily jobs, it happens during xfs_fsr run.

https://bugzilla.kernel.org/show_bug.cgi?id=217502

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#4 lore raw

Re: [Bug 217604] Kernel metadata repair facility is not available, but kernel has XFS_ONLINE_REPAIR=y

Quoted 4 lines · On Thu, Jun 29, 2023 at 07:10:35AM +0000, [email protected] wrote:

https://bugzilla.kernel.org/show_bug.cgi?id=217604

[email protected] changed:

Quoted 8 lines

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |DOCUMENTED

--- Comment #2 from [email protected] ---
OK Dave, I'll do that. Maybe the help for XFS_ONLINE_REPAIR can mention that it is not yet working, to avoid future confusion.

Both kernel and userspace yell EXPERIMENTAL when you invoke any part of the online fsck system; I thought that was sufficient...

--D

Quoted 14 lines

Actually, I was reporting another kernel bug (vmalloc error), which was probably seen before and currently it is in network drivers (no idea, why it is there).

I'm telling you, as it might be XFS related. I see the bug exactly once a day and when I look at my cron.daily jobs, it happens during xfs_fsr run.

https://bugzilla.kernel.org/show_bug.cgi?id=217502

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#5 lore raw

[Bug 217604] Kernel metadata repair facility is not available, but kernel has XFS_ONLINE_REPAIR=y

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=217604

--- Comment #3 from Darrick J. Wong ([email protected]) ---

Quoted 6 lines · On Thu, Jun 29, 2023 at 07:10:35AM +0000, [email protected] wrote:

https://bugzilla.kernel.org/show_bug.cgi?id=217604

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------

Quoted 7 lines
             Status|NEW                         |RESOLVED
         Resolution|---                         |DOCUMENTED

--- Comment #2 from [email protected] ---
OK Dave, I'll do that. Maybe the help for XFS_ONLINE_REPAIR can mention that it
is not yet working, to avoid future confusion.

Both kernel and userspace yell EXPERIMENTAL when you invoke any part of the online fsck system; I thought that was sufficient...

--D

Quoted 15 lines

Actually, I was reporting another kernel bug (vmalloc error), which was probably seen before and currently it is in network drivers (no idea, why it is
there).

I'm telling you, as it might be XFS related. I see the bug exactly once a day and when I look at my cron.daily jobs, it happens during xfs_fsr run.

https://bugzilla.kernel.org/show_bug.cgi?id=217502

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.