On 2023-05-26 19:41, Andrei Borzenkov wrote:
On 26.05.2023 20:30, Carlos E. R. wrote:
On 2023-05-26 18:46, Andrei Borzenkov wrote:
On 26.05.2023 17:15, Carlos E. R. wrote:
I get this in the /var/log/warn logfile:
2023-05-26T16:00:03.721677+02:00 Elesar systemd[1]: dev-disk-by\x2dpath-pci\x2d0000:00:1f.2\x2data\x2d1\x2dpart1.swap: Cannot add dependency job, ignoring: Unit dev-disk-by\x2dpath-pci\x2d0000:00:1f.2\x2data\x2d1\x2dpart1.swap not found. 2023-05-26T16:00:03.736908+02:00 Elesar systemd[1]: message repeated 11 times: [ dev-disk-by\x2dpath-pci\x2d0000:00:1f.2\x2data\x2d1\x2dpart1.swap: Cannot add dependency job, ignoring: Unit dev-disk-by\x2dpath-pci\x2d0000:00:1f.2\x2data\x2d1\x2dpart1.swap not found.]
...
There is only one swap partition:
Elesar:~ # l /dev/disk/by-* | grep -i swap lrwxrwxrwx 1 root root 10 May 26 16:18 ssd-swap -> ../../sdb1
Here is your device.
Ok...
lrwxrwxrwx 1 root root 10 May 26 16:18 ssd-swap -> ../../sdb1 Elesar:~ #
/dev/disk/by-label: lrwxrwxrwx 1 root root 10 May 26 16:18 ssd-swap -> ../../sdb1
/dev/disk/by-partlabel: lrwxrwxrwx 1 root root 10 May 26 16:18 ssd-swap -> ../../sdb1
cer@Elesar:~> l /dev/disk/by-path/*part1* lrwxrwxrwx 1 root root 10 May 26 15:58 /dev/disk/by-path/pci-0000:00:1f.2-ata-1.0-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 May 26 15:00 /dev/disk/by-path/pci-0000:00:1f.2-ata-1.1-part1 -> ../../sdb1 lrwxrwxrwx 1 root root 10 May 26 15:00 /dev/disk/by-path/pci-0000:00:1f.2-ata-1-part1 -> ../../sdb1
Educated guess - systemd is confused by two different device paths to the same device.
A device that doesn't exist anywhere. The log entry is "...part1.swap", and the "swap" word doesn't appear on the command output.
I have no idea what "command output" you mean,
l /dev/disk/by-path/*part1*
but ...swap is not "a device", it is swap unit which is (must be) named according to swap device name. And you most certainly have swap on the /dev/sdb1 which is also /dev/disk/by-path/pci-0000:00:1f.2-ata-1.1-part1 and /dev/disk/by-path/pci-0000:00:1f.2-ata-1-part1.
Ah, swap unit. I see where I got confused. Ok, then it seems a temporary problem, swap is working fine. Thanks for the extra pair of eyes :-) -- Cheers / Saludos, Carlos E. R. (from Elesar, using openSUSE Leap 15.4)