|
|
|
Проблема с загрузкой нового ядра
|
|||
|---|---|---|---|
|
#18+
Предыстория. Стоял Etch с ядром 2.4 + Firebird 1.5 - возникла проблема - с какой то переодичностью начались биться базы. Решил обновить его до 2.0 хотя бы и Lenny. Поправил соурс лист на архив.дебиан, обновился до последних пакетов, поставил ядро 2.6.18 для 686, поправил lilo.conf Перезапускаюсь и ... местный энекейщик присылает мне текст загрузки begin: Running /scripts/local-premount done. Usage: mod probe -и дальши пишуться ключи и х там много прописано потом modprobe -r [-n] [-i] [v] <modulename> ... modprobe -l -t <dirname> [ -a <modulename> ...] mount: Cannont read /etc/fstab: No such file or directory Begin: Running /scripts/local-bottom ... Done. Done. Begin: Running /scripts/local-bottom ... mount mounting /root/dev/ on /dev/.static/dev failed: No such file or directorymount Done mount mounting /sys om /root/sys failed: No such file or directorymount mount mounting /proc on /root/proc failed: No such file or directorymount Target filesystem doesn`t have /sbin/init Старое ядро грузится без проблем. На системе стоит софтовый раид в зеркало :~# fdisk -l Disk /dev/md/0: 79.9 GB, 79998877696 bytes 2 heads, 4 sectors/track, 19530976 cylinders Units = cylinders of 8 * 512 = 4096 bytes This doesn't look like a partition table Probably you selected the wrong device. Device Boot Start End Blocks Id System /dev/md/0p1 ? 233721421 254807611 84344761 69 Unknown Partition 1 does not end on cylinder boundary. /dev/md/0p2 ? 212689936 446425119 934940732+ 73 Unknown Partition 2 does not end on cylinder boundary. /dev/md/0p3 ? 322 322 0 74 Unknown Partition 3 does not end on cylinder boundary. /dev/md/0p4 360710145 360716696 26207+ 0 Empty Partition 4 does not end on cylinder boundary. Partition table entries are not in disk order Disk /dev/ide/host0/bus1/target0/lun0/disc: 81.9 GB, 81964302336 bytes 16 heads, 63 sectors/track, 158816 cylinders Units = cylinders of 1008 * 512 = 516096 bytes Device Boot Start End Blocks Id System /dev/ide/host0/bus1/target0/lun0/part1 * 1 155010 78125008+ fd Linux raid autodetect /dev/ide/host0/bus1/target0/lun0/part2 155011 158816 1918224 82 Linux swap / Solaris Disk /dev/ide/host0/bus0/target0/lun0/disc: 81.9 GB, 81963220480 bytes 255 heads, 63 sectors/track, 9964 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/ide/host0/bus0/target0/lun0/part1 * 1 9726 78124063+ fd Linux raid autodetect /dev/ide/host0/bus0/target0/lun0/part2 9727 9964 1911735 82 Linux swap / Solaris :~$ cat /etc/fstab # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> /dev/md/0 / ext3 errors=remount-ro 0 0 /dev/discs/disc0/part2 none swap sw 0 0 /dev/discs/disc1/part2 none swap sw 0 0 proc /proc proc defaults 0 0 /dev/cdrom /cdrom iso9660 ro,user,noauto 0 0 По инету поискал, вроде пишут надо fsck -yv запускать, но что то побаиваюсь на рабочей то системе. :~# fsck / fsck 1.40-WIP (14-Nov-2006) e2fsck 1.40-WIP (14-Nov-2006) /dev/md/0 is mounted. WARNING!!! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage. Do you really want to continue (y/n)? no check aborted. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.07.2011, 11:37 |
|
||
|
Проблема с загрузкой нового ядра
|
|||
|---|---|---|---|
|
#18+
Так ничего не выйдет, апгрейд надо проводить по документации. В частности, при апгрейде 2.4 -> 2.6 надо было обновлять многие юзерлендовые компоненты: modprobe в том числе. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.07.2011, 11:46 |
|
||
|
Проблема с загрузкой нового ядра
|
|||
|---|---|---|---|
|
#18+
Мутаген, вроде бы и так по документации инетовской ) буду благодарен если скажете по какой именно. modprobe не обновляется как пакет? как его отдельно обновить? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.07.2011, 11:48 |
|
||
|
Проблема с загрузкой нового ядра
|
|||
|---|---|---|---|
|
#18+
Мутаген, почитал :/# aptitude show module-init-tools Пакет: module-init-tools Состояние: установлен Автоматически установлен: да Версия: 3.3-pre4-2 Приоритет: важный Раздел: admin Сопровождающий: Marco d'Itri <md@linux.it> Размер в распакованном виде: 315k Зависимости: libc6 (>= 2.3.6-6), lsb-base (>= 3.0-6) Конфликтуют: modutils (<= 2.4.21-1) Описание: tools for managing Linux kernel modules This package contains a set of programs for loading, inserting, and removing kernel modules for Linux (versions 2.5.48 and above). It serves the same function that the "modutils" package serves for Linux 2.4. Теги: admin::kernel, implemented-in::c, interface::commandline, role::program, scope::utility :/# cat /etc/modules # /etc/modules: kernel modules to load at boot time. # # This file should contain the names of kernel modules that are # to be loaded at boot time, one per line. Comments begin with # a "#", and everything on the line after them are ignored. 8139too ide-scsi sr_mod sg md Извините, но не понимаю что нужно ( ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.07.2011, 12:19 |
|
||
|
Проблема с загрузкой нового ядра
|
|||
|---|---|---|---|
|
#18+
стоит переделать initrd, проверить ещё раз чего написано в lilo.conf и запустить lilo снова. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.07.2011, 14:54 |
|
||
|
Проблема с загрузкой нового ядра
|
|||
|---|---|---|---|
|
#18+
Мутагенстоит переделать initrd Это как? не совсем понял. Лило пересобирал повторно, ядро переставлял, толку нет, в понедельник еще раз погляжу что там в конфе, исправлял то там не много... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.07.2011, 20:17 |
|
||
|
Проблема с загрузкой нового ядра
|
|||
|---|---|---|---|
|
#18+
initrd указывается в lilo.conf, рядом с ядром. Это имидж загрузочного образа, делается командой mkinitrd (или mkinitramfs, не помню как в антиквариате было) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.07.2011, 21:19 |
|
||
|
Проблема с загрузкой нового ядра
|
|||
|---|---|---|---|
|
#18+
wolverinПредыстория. Стоял Etch с ядром 2.4 + Firebird 1.5 - возникла проблема - с какой то переодичностью начались биться базы. Решил обновить его до 2.0 хотя бы и Lenny. ... Непонятки з самого начала. Во-первых, etch поставлялся с ядром 2.6.18. Откуда у тебя 2.4 и почему ты не обновил его согласно инструкции ? Во-вторых, что-то не видно топика о бьющихся базах в профильном форуме . Может, сперва следовало там спросить? Ну и в третьих, а почему 2.0, а не 2.1, а еще лучше 2.5? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.07.2011, 00:09 |
|
||
|
Проблема с загрузкой нового ядра
|
|||
|---|---|---|---|
|
#18+
miwaonline, 1. серваку лет 7, а может и все 10, стояли там и 2 и 3 версии Дебиана, соответственно когда админ обновил до etch и перестал поддерживать - тогда там и осталось стоять ядро 2.4. Согласно инструкции и обновлял, о чем и написал в первом посте - обновился до последних пакетов etch, поставил последнее ядро 2.6.18, поправил lilo.conf - после перезапуска оно не грузится. 2. о бьющихся базах - смысл задавать вопрос на форуме, когда стоит устаревшая версия субд!? 3. потому что по архитектуре 1.5 от 2.0 не сильно отличается хотя бы в плане перехода, когда до 2.1 даже 2.0 не тривиально обновляется, это уже не говоря о том, что могут "поплыть" кривые запросы. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.07.2011, 06:21 |
|
||
|
Проблема с загрузкой нового ядра
|
|||
|---|---|---|---|
|
#18+
Мутаген, :~# cat /etc/lilo.conf # /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)', # --------------- `install-mbr(8)', `/usr/share/doc/lilo/', # and `/usr/share/doc/mbr/'. # +---------------------------------------------------------------+ # | !! Reminder !! | # | | # | Don't forget to run `lilo' after you make changes to this | # | conffile, `/boot/bootmess.txt', or install a new kernel. The | # | computer will most likely fail to boot if a kernel-image | # | post-install script or you don't remember to run `lilo'. | # | | # +---------------------------------------------------------------+ # Support LBA for large hard disks. # lba32 # Overrides the default mapping between harddisk names and the BIOS' # harddisk order. Use with caution. #disk=/dev/hde # bios=0x81 #disk=/dev/sda # bios=0x80 # Specifies the boot device. This is where Lilo installs its boot # block. It can be either a partition, or the raw device, in which # case it installs in the MBR, and will overwrite the current MBR. # boot=/dev/md/0 # Specifies the device that should be mounted as root. (`/') # root=/dev/md/0 # Enable map compaction: # Tries to merge read requests for adjacent sectors into a single # read request. This drastically reduces load time and keeps the # map smaller. Using `compact' is especially recommended when # booting from a floppy disk. It is disabled here by default # because it doesn't always work. # # compact # Installs the specified file as the new boot sector # You have the choice between: bmp, compat, menu and text # Look in /boot/ and in lilo.conf(5) manpage for details # install=menu # Specifies the location of the map file # map=/boot/map # You can set a password here, and uncomment the `restricted' lines # in the image definitions below to make it so that a password must # be typed to boot anything but a default configuration. If a # command line is given, other than one specified by an `append' # statement in `lilo.conf', the password will be required, but a # standard default boot will not require one. # # This will, for instance, prevent anyone with access to the # console from booting with something like `Linux init=/bin/sh', # and thus becoming `root' without proper authorization. # # Note that if you really need this type of security, you will # likely also want to use `install-mbr' to reconfigure the MBR # program, as well as set up your BIOS to disallow booting from # removable disk or CD-ROM, then put a password on getting into the # BIOS configuration as well. Please RTFM `install-mbr(8)'. # # password=tatercounter2000 # Specifies the number of deciseconds (0.1 seconds) LILO should # wait before booting the first image. # delay=20 # You can put a customized boot message up if you like. If you use # `prompt', and this computer may need to reboot unattended, you # must specify a `timeout', or it will sit there forever waiting # for a keypress. `single-key' goes with the `alias' lines in the # `image' configurations below. eg: You can press `1' to boot # `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'. # # message=/boot/bootmess.txt # prompt # single-key # delay=100 # timeout=100 # Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>) # # vga=ask # vga=9 # vga=normal # Kernel command line options that apply to all installed images go # here. See: The `boot-prompt-HOWO' and `kernel-parameters.txt' in # the Linux kernel `Documentation' directory. # # append="" # Boot up Linux by default. # default=Linux image=/vmlinuz label=Linux initrd=/initrd.img read-only image=/vmlinuz.old label=LinuxOLD read-only # restricted # alias=1 image=/vmlinuz.old1 label=LinuxOLD1 read-only optional # restricted # alias=2 # If you have another OS on this machine to boot, you can uncomment the # following lines, changing the device name on the `other' line to # where your other OS' partition is. # # other=/dev/hda4 # label=HURD # restricted # alias=3 LinuxOLD - грузится нормально. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.07.2011, 06:23 |
|
||
|
Проблема с загрузкой нового ядра
|
|||
|---|---|---|---|
|
#18+
Мутаген, честно говоря не совсем понял что нужно сделать, но запустил какой то глупый апдейт ) но по моему ничего не поможет, вечером ребутну сервак... :~# update-initramfs -u update-initramfs: Generating /boot/initrd.img-2.6.18-6-686 W: mdadm: I am supposed to start /dev/md/0 from the initial ramdisk, W: mdadm: yet I cannot find the array in the configuration file. W: mdadm: I am thus reverting to starting all arrays. Added Linux * Added LinuxOLD Added LinuxOLD1 The boot record of /dev/md/0 has been updated. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.07.2011, 13:35 |
|
||
|
Проблема с загрузкой нового ядра
|
|||
|---|---|---|---|
|
#18+
не помогло (( ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.07.2011, 14:15 |
|
||
|
Проблема с загрузкой нового ядра
|
|||
|---|---|---|---|
|
#18+
Вообщем проблему решил - она в варингах и не правильной точке монтирования в mdadm.conf Нашел решение здесь ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.07.2011, 10:52 |
|
||
|
|

start [/forum/topic.php?fid=25&msg=37365086&tid=1484117]: |
0ms |
get settings: |
8ms |
get forum list: |
17ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
149ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
60ms |
get tp. blocked users: |
1ms |
| others: | 210ms |
| total: | 463ms |

| 0 / 0 |
