Gentoo Archives: gentoo-user-ru

From: Konstantin <konstantin@××××××××.com>
To: gentoo-user-ru@l.g.o
Subject: [gentoo-user-ru] Re: [gentoo-user-ru] DomU повисает в процессе загрузки
Date: Mon, 16 Apr 2012 14:03:40
Message-Id: 1074593771.20120416170253@astafjev.com
In Reply to: [gentoo-user-ru] Re: [gentoo-user-ru] Re: [gentoo-user-ru] DomU повисает в процессе загрузки by Nikita Kipriyanov
1 Hello Nikita,
2
3 Monday, April 16, 2012, 13:35:29, Nikita Kipriyanov wrote:
4 > 12.04.2012 18:05, Konstantin пишет:
5 >> Thursday, April 12, 2012, 12:51:36, Konstantin wrote:
6 >>> Thursday, April 12, 2012, 11:48:53, Konstantin wrote:
7 >>>> Но вывод все равно останавливается на
8 >>>> -----------------------------------------------------------------------
9 >>>> device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@××××××.com
10 >>>> TCP cubic registered
11 >>>> blkfront: xvda1: flush diskcache: enabled
12 >>>> -----------------------------------------------------------------------
13 >>>> или гораздо реже на
14 >>>> -----------------------------------------------------------------------
15 >>>> INIT: Entering runlevel: 3
16 >>>> * Mounting network filesystems ...
17 >>>> [ ok ]
18 >>>> * Doing udev cleanups
19 >>>> * Starting local
20 >>>> [ ok ]
21 >>>> -----------------------------------------------------------------------
22 >> Пересобрал все ядра заново. Необходимые backend модули для Dom0 и
23 >> frontend для DomU включил статически. Донастроил сеть и опять увидев
24 >> ---------------------
25 >> * Starting local
26 >> [ ok ]
27 >> ---------------------
28 >>
29 >> обратил внимание, что domU на самом деле все-таки работает. Подключился по
30 >> ssh и изменил inittab на
31 >>
32 >> -------------------------------------------------
33 >> # TERMINALS
34 >> x1:12345:respawn:/sbin/agetty 38400 console linux
35 >> #c1:12345:respawn:/sbin/agetty 38400 tty1 linux
36 >> #c2:2345:respawn:/sbin/agetty 38400 tty2 linux
37 >> #c3:2345:respawn:/sbin/agetty 38400 tty3 linux
38 >> #c4:2345:respawn:/sbin/agetty 38400 tty4 linux
39 >> #c5:2345:respawn:/sbin/agetty 38400 tty5 linux
40 >> #c6:2345:respawn:/sbin/agetty 38400 tty6 linux
41 >> -------------------------------------------------
42 >>
43 >> Командой
44 >> localhost ~ # init q
45 >> заставил init перечитать этот конфигурационный файл и был приятно
46 >> удивлен тем, что консоль в Dom0 ожила. Так что вынужден признать, что
47 >> DomU иногда все-таки загружался и проблема вывода была в неправильной
48 >> настройке консоли.
49 >>
50 >> Осталась вторая и надеюсь последняя проблема. Сейчас DomU запускается
51 >> успешно примерно один раз из трех. Каждый раз при неудачном запуске
52 >> ядро выводит следующий текст:
53 >>
54 >> -------------------------------------------------------------
55 >> Switching to clocksource xen
56 >> pnp: PnP ACPI: disabled
57 >> CE: xen increased min_delta_ns to 150000 nsec
58 >> CE: xen increased min_delta_ns to 225000 nsec
59 >> CE: xen increased min_delta_ns to 337500 nsec
60 >> CE: xen increased min_delta_ns to 506250 nsec
61 >> CE: xen increased min_delta_ns to 759375 nsec
62 >> CE: xen increased min_delta_ns to 1139062 nsec
63 >> CE: xen increased min_delta_ns to 1708593 nsec
64 >> CE: xen increased min_delta_ns to 2562889 nsec
65 >> CE: xen increased min_delta_ns to 3844333 nsec
66 >> CE: xen increased min_delta_ns to 5766499 nsec
67 >> CE: xen increased min_delta_ns to 8649748 nsec
68 >> CE: xen increased min_delta_ns to 10000000 nsec
69 >> CE: Reprogramming failure. Giving up
70 >> CE: Reprogramming failure. Giving up
71 >> hrtimer: interrupt took 5171 ns
72 >> TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
73 >> TCP: Hash tables configured (established 131072 bind 65536)
74 >> TCP reno registered
75 >> UDP hash table entries: 512 (order: 2, 16384 bytes)
76 >> UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
77 >> CE: xen increased min_delta_ns to 150000 nsec
78 >> CE: xen increased min_delta_ns to 225000 nsec
79 >> CE: xen increased min_delta_ns to 337500 nsec
80 >> CE: xen increased min_delta_ns to 506250 nsec
81 >> CE: xen increased min_delta_ns to 759375 nsec
82 >> CE: xen increased min_delta_ns to 1139062 nsec
83 >> CE: xen increased min_delta_ns to 1708593 nsec
84 >> CE: xen increased min_delta_ns to 2562889 nsec
85 >> CE: xen increased min_delta_ns to 3844333 nsec
86 >> CE: xen increased min_delta_ns to 5766499 nsec
87 >> CE: xen increased min_delta_ns to 8649748 nsec
88 >> CE: xen increased min_delta_ns to 10000000 nsec
89 >> CE: Reprogramming failure. Giving up
90 >> CE: Reprogramming failure. Giving up
91 >> platform rtc_cmos: registered platform RTC device (no PNP device found)
92 >> -------------------------------------------------------------
93 >>
94 >> В случае же успешного запуска я не вижу никаких "CE: " сообщений и все
95 >> выглядит примерно так:
96 >> --------------------------------
97 >> PCI: System does not support PCI
98 >> PCI: System does not support PCI
99 >> Switching to clocksource xen
100 >> pnp: PnP ACPI: disabled
101 >> NET: Registered protocol family 2
102 >> IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
103 >> TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
104 >> TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
105 >> TCP: Hash tables configured (established 131072 bind 65536)
106 >> TCP reno registered
107 >> --------------------------------
108 >>
109 >> Продолжаю поиск решения.
110 >>
111 > а можно для полноты картины - что за оборудование у вас?
112
113 Хотел воспользоваться программой dmidecode, но после команды
114
115 ~ # dmidecode -t baseboard
116 # dmidecode 2.10
117 SMBIOS 2.4 present.
118
119 ядро раскрашилось. :)
120
121 Насколько помню, это одноюнитовый сервер начального уровня Intel server board s3000ah
122
123 CPU:
124 processor : 3
125 vendor_id : GenuineIntel
126 cpu family : 6
127 model : 15
128 model name : Intel(R) Xeon(R) CPU X3220 @ 2.40GHz
129 stepping : 11
130 microcode : 0xb6
131 cpu MHz : 2400.158
132 cache size : 4096 KB
133 fpu : yes
134 fpu_exception : yes
135 cpuid level : 10
136 wp : yes
137 flags : fpu de tsc msr pae cx8 apic sep cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl aperfmperf pni est ssse3 cx16 hypervisor lahf_lm dts
138 bogomips : 4800.31
139 clflush size : 64
140 cache_alignment : 64
141 address sizes : 36 bits physical, 48 bits virtual
142 power management:
143
144 Кстати, чтобы запуск DomU происходил без проблем, tsc_mode лучше установить
145 во второй режим (never emulate) tsc_mode=2
146
147 --
148 Konstantin