OpenVZ Forum


Home » International » Russian » CENTOS 5.2 PAE SMP sysctl
CENTOS 5.2 PAE SMP sysctl [message #35677] Tue, 14 April 2009 07:58 Go to previous message
valmon is currently offline  valmon
Messages: 18
Registered: April 2009
Location: Москва
Junior Member
Добрый день!
При ознакомлении с установкой OpenVZ на CENTOS 5.2 возникло масса вопросов, которые я хотел бы уточнить.

1) Вопросы про ядро.
Использовал как пример http://www.howtoforge.com/installing-and-using-openvz-on-cen tos5.2 Конфигурация железа такая
CPU Intel Q9450 4 ядра, 12Mb кеш
RAM 8Gb
Ставил ядро ovzkernel-PAE.i686 так как у меня больше 4 Gb памяти.

uname -a выдает:
Linux host-46-129 2.6.18-92.1.18.el5.028stab060.8PAE #1 SMP Mon Feb 9 22:32:30 MSK 2009 i686 i686 i386 GNU/Linux
То ли ядро для такой конфигурации? Так как в /boot/grub/menu.lst я не увидел упамянания о ovzkernel-PAE.i686

nuz-2.6.18-92.1.18.el5.028stab060.8PAE# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
 #boot=/dev/mapper/ddf1_4c5349202020202080862925000000003714e fbe00000a28
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-92.1.18.el5.028stab060.8PAE)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-92.1.18.el5.028stab060.8PAE ro root=/dev/VolGroup00/LogVol00
        initrd /initrd-2.6.18-92.1.18.el5.028stab060.8PAE.img
title CentOS (2.6.18-128.1.6.el5PAE)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-128.1.6.el5PAE ro root=/dev/VolGroup00/LogVol00
        initrd /initrd-2.6.18-128.1.6.el5PAE.img
title CentOS (2.6.18-128.el5PAE)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-128.el5PAE ro root=/dev/VolGroup00/LogVol00
        initrd /initrd-2.6.18-128.el5PAE.img

Что делать с 4-мя ядрами на CPU, SMP? как его включит?
В логах пишет:
**********************************************************
* This system has more than 8 Gigabyte of memory.        *
* It is recommended to install enterprise kernel version *
**********************************************************

2) Вопросы про Сеть
sysctl.conf

В статье приведен пример sysctl.conf

net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.conf.all.rp_filter = 1
kernel.sysrq = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
net.ipv4.icmp_echo_ignore_broadcasts=1
net.ipv4.conf.default.forwarding=1

У меня он выглядит вот так:

# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename
# Useful for debugging multi-threaded applications
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Controls the maximum size of a message, in bytes
kernel.msgmnb = 65536

# Controls the default maxmimum size of a mesage queue
kernel.msgmax = 65536

# Controls the maximum shared segment size, in bytes
kernel.shmmax = 4294967295

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 268435456

Могу ли я его просто довести до вида как в примере?
Ситуация усугубляема тем, что если я совершу ошибку, то потеряю доступ к серверу, так как сижу по ssh.
3) Вопрос по DNS
Почему-то на VPS не резольвятся имена DNS
Хотя все отконфигурировал, и в конфиге есть строка
NAMESERVER="213.248.1.6"

Прошу прощения если у меня слушком много очевидных вопросов.


Хостинг-Поинт | Качественный и недорогой виртуальный хостинг.

[Updated on: Wed, 15 April 2009 06:14]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OPENVZ + cacti
Next Topic: Проблема с OOMGUARPAGES
Goto Forum:
  


Current Time: Thu Oct 03 16:22:17 GMT 2024

Total time taken to generate the page: 0.08532 seconds