EVMS Boot-Problem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
evms (Ubuntu) |
Invalid
|
High
|
Unassigned |
Bug Description
Binary package hint: evms
On my machine (Laptop with AMD Athlon64 Mobile 3000+ CPU, Seagate ST9160821A Harddisk and Samsung SN-S082D DVD-Writer) Booting with Ubuntu7.04 stops booting, because the
boot-device ist not found. The Problem does not occur, when i replace /usr/share/
(thiswas my first solution of this problem). 2 days ago, i found a solution for use without replacing the whole directory with the "dapper" Version:
The problem seems to be, that evms_activate does not find any EVMS-Volume, if it is called to early after loading the dm-mod and raid* Modules. The failed boot-sequence drops me to a shell (after a timeout of 180 seconds). In that shell, i notice, that there are no volumes in /dev/evms. After running /sbin/evms_activate (or running /scripts/
root@talaxia:~# fdisk -l /dev/evms/
Disk /dev/evms/
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
/dev/evms/
/dev/evms/
/dev/evms/
/dev/evms/
/dev/evms/
/dev/evms/
/dev/evms/
/dev/evms/
/dev/evms/
/dev/evms/
But the same problem existed also before creating the (temporarily used) Volume on /dev/evms/
Even, if the "sleep 5" solves the problem for me, i don't know, if this value is enough for *every* installation with / on an EVMS-Volume ...
Maybe we should replace the single call to evms_activate with a loop:
for i in 1 2 3 4 5 6 7 8 9 10; do
/sbin/
test -f $ROOT && break
sleep 1
done
which (hopefully) tries to run evms_activate up to ten times until the root-device appears or 10 seconds are over (whichever is first reached), but i did not try it, because the "sleep 5" works for me ...
Btw.: There is an error-message while starting evms_activate (even if evms_activate seems to work correctly), because libgcc_s.so is not found: evms_activate is linked against libpthread, and threading with libpthread seems to need loading libgcc_s.so to initialize threading ... I would suggest to insert /lib/libgcc_s.so.1 in the initial ramdisk (to do this, only a "1 line path" to /usr/sbin/
ilse@talaxia:~$ cat mkinitramfs.diff
198a199,201
> # /lib/libgcc_s.so.1 mit hineinnehmen, Juergen Ilse 21.04.2007
> ln -s /lib/libgcc_s.so.1 ${DESTDIR}/lib
I hope, this bugreport will help to avoid this kind of problems in the final release of feisty.
Changed in evms: | |
importance: | Undecided → High |
status: | New → Triaged |
After again reading Bugreport #105386, i noticed, that this is possibly the same bug, so i added a comment with a pointer to this report in #105386.