[systemd-devel] cannot start swap unit on lvm
Alexey Shabalin
a.shabalin at gmail.com
Thu Aug 30 10:00:36 PDT 2012
Hello.
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
fedora-storage-init-late.service).
For test:
- in fstab:
UUID=a8ce6981-1afd-4af6-8783-784b3c7a7d64 swap swap
default 0 0
after run systemd-fstab-generator i have in /tmp
dev-disk-by\x2duuid-a8ce6981\x2d1afd\x2d4af6\x2d8783\x2d784b3c7a7d64.swap
---------------------
# Automatically generated by systemd-fstab-generator
[Unit]
SourcePath=/etc/fstab
DefaultDependencies=no
Conflicts=umount.target
Before=umount.target
[Swap]
What=/dev/disk/by-uuid/a8ce6981-1afd-4af6-8783-784b3c7a7d64
----------------
systemctl start
"dev-disk-by\x2duuid-a8ce6981\x2d1afd\x2d4af6\x2d8783\x2d784b3c7a7d64.swap"
cannot activate swap, error by timeout.
but swapon "/dev/disk/by-uuid/a8ce6981-1afd-4af6-8783-784b3c7a7d64" fork fine.
--
Alexey Shabalin
More information about the systemd-devel
mailing list