Gentoo Archives: gentoo-user

From: Maxim Wexler <maxim.wexler@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] lvm problem -- is timing?
Date: Sun, 21 Jun 2009 21:16:53
Message-Id: a0811460906211416m1f2ff148pd9e473ee584d6668@mail.gmail.com
In Reply to: Re: [gentoo-user] lvm problem -- is timing? by Dirk Heinrichs
1 > Could you please remove rc.log, reboot and post the fresh rc.log?
2
3 Done:
4
5 rc shutdown logging started at Sun Jun 21 14:40:55 2009
6
7 * Stopping local...
8 [ ok ]
9 * Saving random seed...
10 [ ok ]
11 * Deactivating swap devices...
12 [ ok ]
13 * Unmounting network filesystems...
14 [ ok ]
15 * Bringing down interface lo
16 * Removing addresses
17 * Stopping gpm...
18 [ ok ]
19 * Stopping syslog-ng...
20 [ ok ]
21 Reading all physical volumes. This may take a while...
22 Found volume group "vg" using metadata type lvm2
23 5 logical volume(s) in volume group "vg" now active
24 mount: /dev/sda1 already mounted on /boot
25 mount: /dev/vg/usr already mounted on /usr
26 mount: /dev/vg/home already mounted on /home
27 mount: /dev/vg/opt already mounted on /opt
28 mount: /dev/vg/var already mounted on /var
29 mount: /dev/vg/tmp already mounted on /tmp
30 mount: shm already mounted on /dev/shm
31 mount: tmpfs already mounted on /tmp
32 nothing was mounted
33 * Stopping prebootmisc...
34 [ ok ]
35 * Unmounting loopback devices
36 * Unmounting filesystems
37 * Unmounting /var...
38 [ ok ]
39 * Unmounting /opt...
40 [ ok ]
41 * Unmounting /home...
42 [ ok ]
43 * Unmounting /usr...
44 [ ok ]
45 * Unmounting /tmp...
46 [ ok ]
47 * Unmounting /boot...
48 [ ok ]
49 * lvm uses addon code which is deprecated
50 * and may not be available in the future.
51 * Shutting down the Logical Volume Manager
52 * Shutting Down logical volume: /dev/vg/home ...
53 [ ok ]
54 * Shutting Down logical volume: /dev/vg/opt ...
55 [ ok ]
56 * Shutting Down logical volume: /dev/vg/tmp ...
57 [ ok ]
58 * Shutting Down logical volume: /dev/vg/usr ...
59 [ ok ]
60 * Shutting Down logical volume: /dev/vg/var ...
61 [ ok ]
62 * Shutting Down volume group: vg ...
63 [ ok ]
64 * Finished Shutting down the Logical Volume Manager
65 * Stopping udevd...
66 [ ok ]
67
68 rc shutdown logging stopped at Sun Jun 21 14:41:04 2009
69
70
71 rc boot logging started at Sun Jun 21 08:41:52 2009
72
73 * Setting system clock using the hardware clock [Local Time]...
74 [ ok ]
75 * Autoloaded 0 module(s)
76 * lvm uses addon code which is deprecated
77 * and may not be available in the future.
78 * Setting up the Logical Volume Manager...
79 Locking type 1 initialisation failed.
80 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
81 Couldn't find all physical volumes for volume group vg.
82 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
83 Couldn't find all physical volumes for volume group vg.
84 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
85 Couldn't find all physical volumes for volume group vg.
86 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
87 Couldn't find all physical volumes for volume group vg.
88 Volume group "vg" not found
89 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
90 Couldn't find all physical volumes for volume group vg.
91 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
92 Couldn't find all physical volumes for volume group vg.
93 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
94 Couldn't find all physical volumes for volume group vg.
95 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
96 Couldn't find all physical volumes for volume group vg.
97 Volume group "vg" not found
98 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
99 Couldn't find all physical volumes for volume group vg.
100 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
101 Couldn't find all physical volumes for volume group vg.
102 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
103 Couldn't find all physical volumes for volume group vg.
104 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
105 Couldn't find all physical volumes for volume group vg.
106 Volume group "vg" not found
107 * Failed to setup the LVM
108 [ !! ]
109 * ERROR: lvm failed to start
110 * device-mapper uses addon code which is deprecated
111 * and may not be available in the future.
112 * Checking local filesystems ...
113 /dev/sda2: clean, 6837/65952 files, 41219/263424 blocks
114 /dev/sda1: clean, 37/12544 files, 9602/50148 blocks
115 fsck.ext2: No such file or directory while trying to open /dev/vg/usr
116 /dev/vg/usr:
117 The superblock could not be read or does not describe a correct ext2
118 filesystem. If the device is valid and it really contains an ext2
119 filesystem (and not swap or ufs or something else), then the superblock
120 is corrupt, and you might try running e2fsck with an alternate superblock:
121 e2fsck -b 8193 <device>
122
123 fsck.ext2: No such file or directory while trying to open /dev/vg/home
124 /dev/vg/home:
125 The superblock could not be read or does not describe a correct ext2
126 filesystem. If the device is valid and it really contains an ext2
127 filesystem (and not swap or ufs or something else), then the superblock
128 is corrupt, and you might try running e2fsck with an alternate superblock:
129 e2fsck -b 8193 <device>
130
131 fsck.ext2: No such file or directory while trying to open /dev/vg/opt
132 /dev/vg/opt:
133 The superblock could not be read or does not describe a correct ext2
134 filesystem. If the device is valid and it really contains an ext2
135 filesystem (and not swap or ufs or something else), then the superblock
136 is corrupt, and you might try running e2fsck with an alternate superblock:
137 e2fsck -b 8193 <device>
138
139 fsck.ext2: No such file or directory while trying to open /dev/vg/var
140 /dev/vg/var:
141 The superblock could not be read or does not describe a correct ext2
142 filesystem. If the device is valid and it really contains an ext2
143 filesystem (and not swap or ufs or something else), then the superblock
144 is corrupt, and you might try running e2fsck with an alternate superblock:
145 e2fsck -b 8193 <device>
146
147 fsck.ext2: No such file or directory while trying to open /dev/vg/tmp
148 /dev/vg/tmp:
149 The superblock could not be read or does not describe a correct ext2
150 filesystem. If the device is valid and it really contains an ext2
151 filesystem (and not swap or ufs or something else), then the superblock
152 is corrupt, and you might try running e2fsck with an alternate superblock:
153 e2fsck -b 8193 <device>
154
155 * Operational error
156 [ !! ]
157 * Remounting root filesystem read/write...
158 [ ok ]
159 * Updating /etc/mtab...
160 [ ok ]
161 * Mounting local filesystems...
162 mount: special device /dev/vg/usr does not exist
163 mount: special device /dev/vg/home does not exist
164 mount: special device /dev/vg/opt does not exist
165 mount: special device /dev/vg/var does not exist
166 mount: special device /dev/vg/tmp does not exist
167 * Some local filesystem failed to mount
168 [ !! ]
169 * Setting hostname to localhost...
170 [ ok ]
171 * Configuring kernel parameters...
172 [ ok ]
173 Reading all physical volumes. This may take a while...
174 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
175 Couldn't find all physical volumes for volume group vg.
176 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
177 Couldn't find all physical volumes for volume group vg.
178 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
179 Couldn't find all physical volumes for volume group vg.
180 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
181 Couldn't find all physical volumes for volume group vg.
182 Volume group "vg" not found
183 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
184 Couldn't find all physical volumes for volume group vg.
185 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
186 Couldn't find all physical volumes for volume group vg.
187 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
188 Couldn't find all physical volumes for volume group vg.
189 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
190 Couldn't find all physical volumes for volume group vg.
191 Volume group "vg" not found
192 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
193 Couldn't find all physical volumes for volume group vg.
194 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
195 Couldn't find all physical volumes for volume group vg.
196 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
197 Couldn't find all physical volumes for volume group vg.
198 Couldn't find device with uuid 'ldwVeS-gwl4-HE4Z-M3Gw-DILI-Dbjh-2lHroF'.
199 Couldn't find all physical volumes for volume group vg.
200 Volume group "vg" not found
201 mount: /dev/sda1 already mounted on /boot
202 mount: shm already mounted on /dev/shm
203 mount: tmpfs already mounted on /tmp
204 mount: special device /dev/vg/usr does not exist
205 mount: special device /dev/vg/home does not exist
206 mount: special device /dev/vg/opt does not exist
207 mount: special device /dev/vg/var does not exist
208 mount: special device /dev/vg/tmp does not exist
209 mkdir: cannot create directory `/var/log': File exists
210 * failed to create needed directory /var/log
211 [ !! ]
212 * ERROR: bootmisc failed to start
213 * Setting terminal encoding [UTF-8]...
214 [ ok ]
215 * Setting console font [default8x16]...
216 Cannot open font file default8x16
217 Cannot open font file default8x16
218 Cannot open font file default8x16
219 Cannot open font file default8x16
220 Cannot open font file default8x16
221 Cannot open font file default8x16
222 Cannot open font file default8x16
223 Cannot open font file default8x16
224 Cannot open font file default8x16
225 Cannot open font file default8x16
226 Cannot open font file default8x16
227 Cannot open font file default8x16
228 [ !! ]
229 * ERROR: consolefont failed to start
230 * Loading key mappings [us]...
231 cannot open file windowkeys
232 * Error loading key mappings
233 [ !! ]
234 * ERROR: keymaps failed to start
235 * Bringing up interface lo
236 * 127.0.0.1/8...
237 [ ok ]
238 * Adding routes
239 * 127.0.0.0/8 via 127.0.0.1...
240 [ ok ]
241 * Activating swap devices...
242 [ ok ]
243 * Initializing random number generator...
244 [ ok ]
245
246 rc boot logging stopped at Sun Jun 21 14:41:54 2009
247
248
249 rc default logging started at Sun Jun 21 14:41:54 2009
250
251 * lvm uses addon code which is deprecated
252 * and may not be available in the future.
253 * Setting up the Logical Volume Manager...
254 [ ok ]
255 Reading all physical volumes. This may take a while...
256 Found volume group "vg" using metadata type lvm2
257 5 logical volume(s) in volume group "vg" now active
258 mount: /dev/sda1 already mounted on /boot
259 mount: shm already mounted on /dev/shm
260 mount: tmpfs already mounted on /tmp
261 /dev/mapper/vg-usr on /usr type ext2 (rw,noatime)
262 /dev/mapper/vg-home on /home type ext2 (rw,noatime)
263 /dev/mapper/vg-opt on /opt type ext2 (rw,noatime)
264 /dev/mapper/vg-var on /var type ext2 (rw,noatime)
265 /dev/mapper/vg-tmp on /tmp type ext2 (rw,noatime)
266 * Creating user login records...
267 [ ok ]
268 * Cleaning /var/run...
269 [ ok ]
270 * Wiping /tmp directory...
271 [ ok ]
272 * Setting console font [default8x16]...
273 [ ok ]
274 * Starting syslog-ng...
275 [ ok ]
276 * Starting gpm...
277 [ ok ]
278 * Loading key mappings [us]...
279 [ ok ]
280 * Setting keyboard mode [UTF-8]...
281 [ ok ]
282 * Mounting network filesystems...
283 [ ok ]
284 * Starting local...
285 [ ok ]
286
287 rc default logging stopped at Sun Jun 21 14:41:57 2009
288
289
290 >
291 > BTW: Do you see messages like this:
292 >
293 > * device-mapper uses addon code which is deprecated
294 > * and may not be available in the future.
295
296 Yes
297
298 >
299 > Also: What are your versions of bl2 and openrc?
300
301 OpenRC 0.4.4, bl-2.0.1
302
303
304
305 > Did you compare the contents of those packages (esp. openrc) with the
306 > contents
307 > of your /etc/runlevels?
308
309 I assume you mean /usr/share/openrc/runlevels.
310
311 Under /usr/share/openrc/runlevels/boot there are definitely
312 differences: no device-mapper, no consolefont, no lvm, no root
313
314 Under /usr/share/openrc/runlevels/default: no gpm, syslog-ng
315
316 Under /usr/share/openrc/runlevels/sysinit: no udev.
317
318 No /usr/share/openrc/runlevels/single also no nonetwork
319
320 shutdown runlevels the same.
321
322
323 >
324 > It may also help to wipe /etc/runlevels and copy the contents of
325 > /usr/share/openrc/runlevels/ into it, then add symlinks for lvm,
326 > device-mapper
327 > and (if needed) dmcrypt to the boot runlevel again.
328
329 Don't understand. The links in /etc/runlevels and
330 /usr/share/openrc/runlevels are identical(except for the omissions
331 noted above) eg bootmisc -> /etc/init.d/bootmisc. Maybe if I add the
332 missing links to /usr/share/openrc/runlevels that'll fix things...I'll
333 try that in the meantime.
334
335 Thanks for the hints!
336
337 mw

Replies

Subject Author
Re: [gentoo-user] lvm problem -- is timing? Maxim Wexler <maxim.wexler@×××××.com>
Re: [gentoo-user] lvm problem -- is timing? Neil Bothwick <neil@××××××××××.uk>
Re: [gentoo-user] lvm problem -- is timing? Dirk Heinrichs <dirk.heinrichs@××××××.de>