[SOLVED] SystemD: SWAP not found

May 18, 2019
231
15
38
Varies
Every minute, to the :00 second, the log shows
Code:
systemd dev-disk-by\x2dpartlabel-Linux\x5cx20filesystem.swap: Cannot add dependency job, ignoring: Unit dev-disk-by\x2dpartlabel-Linux\x5cx20filesystem.swap not found

Code:
~# cat /etc/fstab

#/dev/sda3         none        swap    defaults,pri=1        0 0
UUID=b3768774-778e-4060-9c3b-43516459e408         none        swap    defaults,pri=1        0 0
#/dev/sdb3         none        swap    defaults,pri=1        0 0
UUID=7e153023-64fc-432a-8254-4123775d3467         none        swap    defaults,pri=1        0 0
#/dev/sdc3         none        swap    defaults,pri=1        0 0
UUID=76f2bae2-4633-4ff5-b967-4ae1f4ebf197         none        swap    defaults,pri=1        0 0
#/dev/sdd3         none        swap    defaults,pri=1        0 0
UUID=ef6c02a8-c491-454d-a8bb-9748784d3830         none        swap    defaults,pri=1        0 0

Code:
~# lsblk -f | grep -i swap
├─sda3                                      swap              zfs-storage-sdx5 b3768774-778e-4060-9c3b-43516459e408                  [SWAP]
├─sdb3                                      swap              zfs-storage-sdx5 7e153023-64fc-432a-8254-4123775d3467                  [SWAP]
├─sdc3                                      swap              zfs-storage-sdx5 76f2bae2-4633-4ff5-b967-4ae1f4ebf197                  [SWAP]
├─sdd3                                      swap              zfs-storage-sdx5 ef6c02a8-c491-454d-a8bb-9748784d3830                  [SWAP]

Code:
~# ll /dev/disk/by-partlabel/Linux\\x20filesystem
lrwxrwxrwx 1 root root 10 Apr  7 15:30 '/dev/disk/by-partlabel/Linux\x20filesystem' -> ../../sdb3

Code:
~# ll /dev/sdd3
brw-rw---- 1 root disk 8, 51 Apr  7 15:29 /dev/sdd3

Code:
~# smartctl -a /dev/sdd3
SMART overall-health self-assessment test result: PASSED

KlnNnO9.png

There are no google results for this...
 
With systemctl itself, you can list all units and see which ones failed. Maybe there is an issuse with systemd trying to use the systemd-gpt-auto-generator and systemd-fstab-generator.
 
Thanks Alwin. Problem went away on its own. at the time one of the backups ran.

So if I see this again I should run `systemctl list-units --state=failed` while the problem is active?
 
So if I see this again I should run `systemctl list-units --state=failed` while the problem is active?
Yes, or just systemctl to go through the whole list.
 
  • Like
Reactions: Proxygen