[systemd-devel] cannot start swap unit on lvm
lennart at poettering.net
Wed Sep 12 23:11:52 PDT 2012
On Thu, 30.08.12 21:00, Alexey Shabalin (a.shabalin at gmail.com) wrote:
> Sorry, i know that swap on lvm bad idea, but ...
> systemd-189 used systemd-fstab-generator and lvm2-activation-generator
> (i deleted fedora-storage-init.service and
> For test:
> - in fstab:
> UUID=a8ce6981-1afd-4af6-8783-784b3c7a7d64 swap swap
> default 0 0
> after run systemd-fstab-generator i have in /tmp
> # Automatically generated by systemd-fstab-generator
> systemctl start
> cannot activate swap, error by timeout.
> but swapon "/dev/disk/by-uuid/a8ce6981-1afd-4af6-8783-784b3c7a7d64" fork fine.
This indicates that the device never showed up as device node in
system. Most likely this is borkage in LVM's udev rules, and should be
reported to that package.
Please check with "udevadm info
/dev/disk/by-uuid/a8ce6981-1afd-4af6-8783-784b3c7a7d64" if the device is
properly initialized and the systemd tag appears in TAGS=. Only then
systemd will pick it up.
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel