Getting an error ' fsadm: Filesystem "swap" on device "/dev/mapper/rhel-swap" is not supported by this tool' while extending swap LV and it's filesystem.

Solution In Progress - Updated -

Issue

  • Unable to extend the swap filesystem
  • Extending swap along with it's LV gives an error:
# lvextend -r -L +100M rhel/swap
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
fsadm: Filesystem "swap" on device "/dev/mapper/rhel-swap" is not supported by this tool.
# lvextend -r -L +100M rhel/swap
  Size of logical volume rhel/swap changed from <2.10 GiB (537 extents) to <2.20 GiB (562 extents).
  File system extend is not supported (swap).
  File system extend error.
  Logical volume rhel/swap successfully resized.

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content