[systemd-devel] Questions/problems about distro integrating
Andrey Borzenkov
arvidjaar at mail.ru
Mon Nov 22 02:42:07 PST 2010
On Mon, Nov 22, 2010 at 12:33 PM, Ozan Çağlayan <ozan at pardus.org.tr> wrote:
> Salı 26 Ekim 2010 günü (saat 01:15:50) Lennart Poettering şunları yazmıştı:
>> On Sun, 17.10.10 13:39, Ozan Çağlayan (ozan at pardus.org.tr) wrote:
>>
>> Heya,
>>
>> > 1. swap.target always fails during boot. But once triggered after boot
>> > with systemctl restart, it succesfully enables the /.swap file. .swap
>> > file is on the rootfs which is an ext4 filesystem. I'm not too
>> > powerful with systemd but can this be caused by a read-only rootfs (so
>> > before remount-rootfs.target) while trying to enable swap.target?
>>
>> Unlikely.
>>
{pts/0}% sudo mount -o remount,ro /datastore
{pts/0}% LC_ALL=C sudo swapon -p 0 /datastore/nsr/test
swapon: /datastore/nsr/test: swapon failed: Read-only file system
{pts/0}% echo $?
255
>> Could you boot with systemd.log_target=kmsg systemd.log_level=debug on
>> the kernel cmdline please? Then, try to reproduce this and submit the
>> output of "dmesg" here!
>
> I now tried with v13 and still the issue persists. BTW, running systemctl
> start .swap.swap or systemctl start swap.target correctly works after the
> system is booted. Here's the dmesg output:
>
> Installed new job swap.target/start as 22
> Installed new job .swap.swap/start as 23
> About to execute: /sbin/swapon -p 0 /.swap
> Forked /sbin/swapon as 143
> .swap.swap changed dead -> activating
> Got SIGCHLD for process 143 (swapon)
> Child 143 belongs to .swap.swap
> .swap.swap swap process exited, code=exited status=255
It would be interesting to see output of swapon in this case. I wonder
if we can set StandardOutput=kmsg for swap units (it is not listed in
manual for v11 that I currently have)
> .swap.swap changed activating -> failed
> Job .swap.swap/start finished, success=no
> Unit .swap.swap entered failed state.
> swap.target changed dead -> active
> Job swap.target/start finished, success=yes
>
> # systemctl | grep swap
> .swap.swap loaded failed failed /.swap
> swap.target loaded active active Swap
>
>
> ---
> Ozan Çağlayan
> TUBITAK/UEKAE - Pardus Linux
> http://www.pardus.org.tr/eng
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
More information about the systemd-devel
mailing list