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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In