Unable to create swap file with error “swapon failed: Invalid argument”

Unable to create swap file with error “swapon failed: Invalid argument” Environment Red Hat Enterprise Linux 6 Red Hat Enterprise Linux 7 XFS Issue swapon fails with error “swapon failed: Invalid argument” if swap file created using fallocate Resolution There are 3 resolutions : Create the swap file with dd instead of fallocate if using … Read more

How To Add Swap on CentOS 7

Introduction One of the easiest ways to make your server more responsive, and guard against out-of-memory errors in your application, is to add some swap space. Swap is an area on a storage drive where the operating system can temporarily store data that it can no longer hold in memory. This gives you the ability to increase … Read more

Pin It on Pinterest

Open chat