swapon failed with error "last_page 0x200000000 is larger than actual size of swapspace"

Solution In Progress - Updated -

Issue

  • swapon failed with error following errors.
# swapon -v /dev/mapper/rhel-swap
swapon /dev/mapper/rhel-swap
swapon: /dev/mapper/rhel-swap: found swap signature: version 1, page-size 4, same byte order
swapon: /dev/mapper/rhel-swap: pagesize=4096, swapsize=8589934592, devsize=5368709120
swapon: /dev/mapper/rhel-swap: last_page 0x200000000 is larger than actual size of swapspace
swapon: /dev/mapper/rhel-swap: swapon failed: Invalid argument

Environment

  • Red Hat Enterprise Linux 7,8

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