swap file created by cloudinit on xfs can't be avtivated (swapon: swapfile has holes)
Issue
- swap file created by cloudinit on xfs can't be activate => swapon: swapfile has holes
- the file is created but swapon failed with this error : kernel: swapon: swapfile has holes
Environment
Red Hat Enterprise Linux 7
Red Hat Enterprise Linux 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.