systemd[1]: Failed to activate swap /ephemeral0.2.

Solution Verified - Updated -

Issue

  • Service ephemeral0.2.swap shows the failed status.
* ephemeral0.2.swap - /ephemeral0.2
   Loaded: loaded (/etc/fstab; generated)
   Active: failed (Result: exit-code) since Fri 2021-12-03 14:51:07 CST; 10min ago
     What: /ephemeral0.2
     Docs: man:fstab(5)
           man:systemd-fstab-generator(8)

Dec 03 14:51:07 abc4 systemd[1]: Activating swap /ephemeral0.2...
Dec 03 14:51:07 abc4 swapon[850]: swapon: cannot open /ephemeral0.2: No such file or directory
Dec 03 14:51:07 abc4 systemd[1]: ephemeral0.2.swap: Swap process exited, code=exited status=255
Dec 03 14:51:07 abc4 systemd[1]: ephemeral0.2.swap: Failed with result 'exit-code'.
Dec 03 14:51:07 abc4 systemd[1]: Failed to activate swap /ephemeral0.2.

Environment

  • Red Hat Enterprise Linux 8.4
  • Azure VM

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