SUSE Support

Here When You Need Us

Azure WALinuxAgent mkfs.btrfs -F error

This document (000021493) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 15 on Azure

Situation

The Azure WALinuxAgent fails to start up.  A failure is seen formatting and mounting the resource disk for the Azure WALinuxAgent  (WAAGENT) daemon with the following messages:
python3[5902]: ... WARNING Daemon Daemon Failed to mount resource disk. Attempting to format and retry mount. [mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.]

python3[5902]: ... ERROR Daemon Daemon Command: [mkfs.btrfs -F /dev/sdb1], return code: [127], result: [/bin/sh: mkfs.btrfs: command not found]

python3[5902]: ... ERROR Daemon Daemon Command: [mount -t btrfs -o compress=lzo /dev/sdb1 /mnt], return code: [32], result: [mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.]

python3[5902]: ... ERROR Daemon Daemon Failed to mount resource disk [ResourceDiskError] Could not mount /dev/sdb1 after syncing partition table: [32] mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.

python3[5902]: ... ERROR Daemon Daemon Event: name=WALinuxAgent, op=ActivateResourceDisk, message=[ResourceDiskError] Could not mount /dev/sdb1 after syncing partition table: [32] mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.
The format and failure of the BTRFS resource disk prevented the WALinuxAgent from starting.

Resolution

A patch has been released for python-azure-agent-2.9.1.1-150400.3.41.1 or greater to resolve this issue, https://www.suse.com/support/update/announcement/2024/suse-fu-20242688-1/ .  The best option is to patch an affected system, otherwise apply the below.

To work around this we need to set an alternative file system for the agents resource disk.  Open up /etc/waagent.conf with your favorite editor and update to use the ext4 file system, proper settings are seen below (compress will be blank):
ResourceDisk.Filesystem=ext4
compress=
Upon restarting the agent it should now be able to create its resource disk.

Cause

There is an upstream bug that is not accounting for the proper BTRFS flags for the "force" option.  The bug is recorded here:

https://github.com/Azure/WALinuxAgent/issues/2849

Status

Reported to Engineering

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000021493
  • Creation Date: 12-Jul-2024
  • Modified Date:07-Aug-2024
    • SUSE Linux Enterprise Server
    • SUSE Linux Enterprise Server for SAP Applications

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.