OpenVZ Forum


Home » International » Russian » CentOS 4.3 x86_64 and LVM trouble
CentOS 4.3 x86_64 and LVM trouble [message #2393] Mon, 03 April 2006 06:14 Go to next message
Shooter is currently offline  Shooter
Messages: 7
Registered: April 2006
Junior Member
В качестве основной ОС использую CentOS 4.3 x86_64 всю операционку ставлю на LVM, кроме /boot и swap
/dev/sda1 /boot ext3
/dev/sda2 swap
/dev/sda3 LVM
Внутри LVM создаю корневую и /tmp в виде двух логических volume, форматирую ext3.
С родным ядром грузится нормально. После установки ядра 2.6.8-022stab072.2-smp грузится перестает, зависает на первоначальном этапе загрузки ядра сразу после определения VG.

К сожалению логи не сохранились. Скажите какую инфу надо предоставить, чтобы помочь диагностировать и решить эту проблему.

Второй вопрос - CentOS 4.3 имеет ядро ветки 2.6.9, а OpenVZ 2.6.8 не вызовет ли такой переход проблем?
Re: CentOS 4.3 x86_64 and LVM trouble [message #2397 is a reply to message #2393] Mon, 03 April 2006 11:23 Go to previous messageGo to next message
Shooter is currently offline  Shooter
Messages: 7
Registered: April 2006
Junior Member
Поставил CentOS в минимальной конфигурации, LVM не создавал. Поставил ядно OpenVZ, бутнулся, создал LVM, при попытке активации получаю следующую ошибку

# uname -a
Linux linux.local 2.6.8-022stab072.2-smp #1 SMP Mon Mar 20 14:54:26 MSK 2006 x86_64 x86_64 x86_64 GNU/Linux
# vgchange --verbose --available y
Finding all volume groups
Finding volume group "VG00"
1 logical volume(s) in volume group "VG00" already active
Found volume group "VG00"
device-mapper: deps ioctl failed: Invalid argument
_deps: task run failed for (253:0)
Failed to add device (253:0) to dtree
1 logical volume(s) in volume group "VG00" now active

№ mkfs.ext3 /dev/mapper/VG00-openvz
mke2fs 1.35 (28-Feb-2004)
mkfs.ext3: Device size reported to be zero. Invalid partition specified, or
partition table wasn't reread after running fdisk, due to
a modified partition being busy and in use. You may need to reboot
to re-read your partition table.

Меняю ядро на дефолтное, перезагружаюсь.
# uname -a
Linux linux.local 2.6.9-34.ELsmp #1 SMP Thu Mar 9 06:23:23 GMT 2006 x86_64 x86_64 x86_64 GNU/Linux

# vgchange --verbose --available y
Finding all volume groups
Finding volume group "VG00"
1 logical volume(s) in volume group "VG00" already active
Found volume group "VG00"
Activated logical volumes in volume group "VG00"
1 logical volume(s) in volume group "VG00" now active

Скажите, что я делаю не так?
Где грабли?
Re: CentOS 4.3 x86_64 and LVM trouble [message #2400 is a reply to message #2397] Mon, 03 April 2006 12:46 Go to previous messageGo to next message
Shooter is currently offline  Shooter
Messages: 7
Registered: April 2006
Junior Member
После установки beta kernel все заработало.
# uname -a
Linux linux.local 2.6.16-026test005.1-smp #1 SMP Mon Mar 20 19:09:41 MSK 2006 x86_64 x86_64 x86_64 GNU/Linux
# vgchange --verbose --available y
Finding all volume groups
Finding volume group "VG00"
1 logical volume(s) in volume group "VG00" already active
Found volume group "VG00"
Activated logical volumes in volume group "VG00"
1 logical volume(s) in volume group "VG00" now active
Re: CentOS 4.3 x86_64 and LVM trouble [message #2414 is a reply to message #2393] Tue, 04 April 2006 09:50 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

RedHat поломалили compatibility в LVM.
смотрите http://bugzilla.openvz.org/show_bug.cgi?id=120

здесь можно взять stable kernel 075.1, который скоро будет зарелизин после тщательного тестирования:
http://download.openvz.org/~dev/075/


http://static.openvz.org/userbars/openvz-developer.png
Re: CentOS 4.3 x86_64 and LVM trouble [message #2417 is a reply to message #2414] Tue, 04 April 2006 10:15 Go to previous messageGo to next message
Shooter is currently offline  Shooter
Messages: 7
Registered: April 2006
Junior Member
Прошу прощения, но у меня x86_64.
Мне бы патчик или SRPM, ну а лучше всего готовое ядро в RPM Smile

[Updated on: Tue, 04 April 2006 10:17]

Report message to a moderator

Re: CentOS 4.3 x86_64 and LVM trouble [message #2422 is a reply to message #2417] Tue, 04 April 2006 10:48 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

залил туда же SRC RPM. x86-64 пока не билдил сорри

http://static.openvz.org/userbars/openvz-developer.png
Re: CentOS 4.3 x86_64 and LVM trouble [message #2424 is a reply to message #2422] Tue, 04 April 2006 10:57 Go to previous messageGo to next message
Shooter is currently offline  Shooter
Messages: 7
Registered: April 2006
Junior Member
Ничего, мне и этого хватитЬ.

Спасибо.
Re: CentOS 4.3 x86_64 and LVM trouble [message #2546 is a reply to message #2424] Sun, 09 April 2006 15:32 Go to previous messageGo to next message
Shooter is currently offline  Shooter
Messages: 7
Registered: April 2006
Junior Member
Так и не удалось забилдить это (ovzkernel-2.6.8-022stab075.1.src.rpm) ядро под x86_64.
Очень похоже на использование 32битного кода не зависимо от target. Но моего опыта и знаний хватает только на ИМХО.

+ make ARCH=x86_64 -s -j4 bzImage
SYMLINK include/asm -> include/asm-x86_64
SPLIT include/linux/autoconf.h -> include/config/*
CHK include/asm-x86_64/offset.h
UPD include/asm-x86_64/offset.h
CHK include/linux/compile.h
UPD include/linux/compile.h
In file included from arch/x86_64/ia32/ia32_ioctl.c:178:
include/linux/compat_ioctl.h:745: error: `HIDIOCGVERSION' undeclared here (not in a function)
include/linux/compat_ioctl.h:745: error: initializer element is not constant
include/linux/compat_ioctl.h:745: error: (near initialization for `ioctl_start[664].cmd')
include/linux/compat_ioctl.h:745: error: initializer element is not constant
include/linux/compat_ioctl.h:745: error: (near initialization for `ioctl_start[664]')

Полный вывод
rpmbuild -bb --target=x86_64 kernel-ovz.spec > /tmp/build.log 2>&1
в аттаче.
  • Attachment: build.log
    (Size: 47.33KB, Downloaded 325 times)
Re: CentOS 4.3 x86_64 and LVM trouble [message #2547 is a reply to message #2546] Sun, 09 April 2006 19:31 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

возьмите 076. там это было исправлено.


http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: как создать свой template?
Next Topic: Очень странное поведение под большой нагрузкой
Goto Forum:
  


Current Time: Mon Jul 28 21:49:19 GMT 2025

Total time taken to generate the page: 0.26830 seconds