Getting "systemd: Job swap.target/start failed with result 'dependency'" messages and failed to use new swap.

Solution Verified - Updated -

Issue

  • After configuring new swap on device, system takes longer time boot and failed to use new swap.

  • System shows messages like below :

Nov  7 12:06:20 lvm systemd: Failed to activate swap /dev/mapper/testswapvg-testswaplv.
Nov  7 12:06:20 lvm systemd: Job swap.target/start failed with result 'dependency'.
Nov  7 12:06:20 lvm systemd: Unit dev-mapper-testswapvg\x2dtestswaplv.swap entered failed state.

Environment

  • Red Hat Enterprise Linux 7

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