1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] systemd + separate /var (was Re: more testing for systemd: defaulting to it)
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20systemd%20%2B%20separate%20/var%20%28was%20Re%3A%20more%20testing%20for%0A%20systemd%3A%20defaulting%20to%20it%29&In-Reply-To=%3C4E6E18F9.8050703%40colin.guthr.ie%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="007992.html">
<LINK REL="Next" HREF="007873.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] systemd + separate /var (was Re: more testing for systemd: defaulting to it)</H1>
<B>Colin Guthrie</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20systemd%20%2B%20separate%20/var%20%28was%20Re%3A%20more%20testing%20for%0A%20systemd%3A%20defaulting%20to%20it%29&In-Reply-To=%3C4E6E18F9.8050703%40colin.guthr.ie%3E"
TITLE="[Mageia-dev] systemd + separate /var (was Re: more testing for systemd: defaulting to it)">mageia at colin.guthr.ie
</A><BR>
<I>Mon Sep 12 16:36:41 CEST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="007992.html">[Mageia-dev] more testing for systemd: defaulting to it
</A></li>
<LI>Next message: <A HREF="007873.html">[Mageia-dev] systemd ?
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7996">[ date ]</a>
<a href="thread.html#7996">[ thread ]</a>
<a href="subject.html#7996">[ subject ]</a>
<a href="author.html#7996">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>'Twas brillig, and Sander Lepik at 12/09/11 07:22 did gyre and gimble:
><i> 08.09.2011 16:53, Thierry Vignaud kirjutas:
</I>>><i> Hi
</I>>><i>
</I>>><i> In order to got more testing for systemd, I'm considering switching
</I>>><i> the installer to:
</I>>><i> - install it
</I>>><i> - default to it (aka add "init=/bin/systemd")
</I>>><i>
</I>>><i> WDYT?
</I>>><i>
</I>>><i> See you
</I>><i> I got another problem. This time with /var. For two systems i have
</I>><i> created /var as a separate volume on LVM. And systemd can't start /var.
</I>><i> It's complaining that some deps failed. So long i only noticed different
</I>><i> types of loggers that won't start. Also complaining about failed deps.
</I>><i> So is there a loop? Loggers won't start as they want to log on /var and
</I>><i> /var can't be mounted as it needs some logger to log it?! I'll try to
</I>><i> test it more on VM but so long it seems that separated /var is causing
</I>><i> boot problems :S (one system didn't start at all (and has weird
</I>><i> repeating errors:
</I>><i> <A HREF="http://dl.dropbox.com/u/4210594/IMG_20110911_230902.jpg">http://dl.dropbox.com/u/4210594/IMG_20110911_230902.jpg</A> ) so i have to
</I>><i> revert back to sysvinit).
</I>
OK, so unless you use rsyslog, I think there could easily be a logging loop.
I packaged the latest rsyslog with all the systemd goodness a couple
weeks back so it should be cool now.
You should definitely mount /var before starting your logger, (systemd
will happily pass over any accumulated log output to the actual logger
when it starts - well not quite systemd, passing it over, but it happens
magically anyway!)
So the question is "Why isn't /var mounted early enough?".
I'm not really in a position to think about why this is right now, but
suffice to say, the auto mounter in systemd should really automatically
mount /var as soon as it's needed, so perhaps the logger is somehow
starting before the automounter?
If you do: "man systemd.special" and look for info about
local-fs.target, it contains some interesting info about how /etc/fstab
is processed.
Primarily it needs the "auto" keyword in the options. Perhaps if you add
"auto" to the mount options (should be harmless for non-systemd) then
things will work fine?
Worth a shot.
Col
--
Colin Guthrie
mageia(at)colin.guthr.ie
<A HREF="http://colin.guthr.ie/">http://colin.guthr.ie/</A>
Day Job:
Tribalogic Limited [<A HREF="http://www.tribalogic.net/">http://www.tribalogic.net/</A>]
Open Source:
Mageia Contributor [<A HREF="http://www.mageia.org/">http://www.mageia.org/</A>]
PulseAudio Hacker [<A HREF="http://www.pulseaudio.org/">http://www.pulseaudio.org/</A>]
Trac Hacker [<A HREF="http://trac.edgewall.org/">http://trac.edgewall.org/</A>]
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="007992.html">[Mageia-dev] more testing for systemd: defaulting to it
</A></li>
<LI>Next message: <A HREF="007873.html">[Mageia-dev] systemd ?
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7996">[ date ]</a>
<a href="thread.html#7996">[ thread ]</a>
<a href="subject.html#7996">[ subject ]</a>
<a href="author.html#7996">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|