OpenVZ Forum


Home » International » Russian » [SOLVED] Не могу стартовать radius на VZ
icon4.gif  [SOLVED] Не могу стартовать radius на VZ [message #32702] Mon, 25 August 2008 07:32 Go to next message
Iakor is currently offline  Iakor
Messages: 6
Registered: July 2008
Junior Member
From: *transtk.ru
Добрый день!

Есть следующая проблема:
Имеется HN:
gentoo1 ~ # uname -a
Linux gentoo1 2.6.18-028stab053 #6 SMP Thu Jul 31 11:34:16 MSD 2008 i686 Intel(R) Xeon(R) CPU 3060 @ 2.40GHz GenuineIntel GNU/Linux


Внутри развернута VZ:

#  Copyright (C) 2000-2007 SWsoft. All rights reserved.
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#

ONBOOT="yes"

# UBC parameters (in form of barrier:limit)
KMEMSIZE="11055923:11377049"
LOCKEDPAGES="256:256"
PRIVVMPAGES="65536:69632"
SHMPAGES="21504:21504"
NUMPROC="240:240"
PHYSPAGES="0:2147483647"
VMGUARPAGES="33792:2147483647"
OOMGUARPAGES="26112:2147483647"
NUMTCPSOCK="360:360"
NUMFLOCK="188:206"
NUMPTY="16:16"
NUMSIGINFO="256:256"
TCPSNDBUF="1720320:2703360"
TCPRCVBUF="1720320:2703360"
OTHERSOCKBUF="1126080:2097152"
DGRAMRCVBUF="262144:262144"
NUMOTHERSOCK="360:360"
DCACHESIZE="3409920:3624960"
NUMFILE="9312:9312"
AVNUMPROC="180:180"
NUMIPTENT="128:128"

# Disk quota parameters (in form of softlimit:hardlimit)
#DISKSPACE="1048576:1153024"
DISKSPACE="1572864:1572864"
DISKINODES="200000:220000"
QUOTATIME="0"

# CPU fair sheduler parameter
CPUUNITS="1000"


VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
OSTEMPLATE="opensuse-10-i386-default"
ORIGIN_SAMPLE="vps.basic"
IP_ADDRESS="10.200.3.20"
HOSTNAME="radius1"


VZ была обновлена до suse 10.2

radius1:/ # cat /etc/issue

Welcome to openSUSE 10.2 (i586) - Kernel \r (\l).


После обновления до 10.2 через rpm -i были установлены дополнительно пакеты (не через yast):
freeradius-1.1.7-9.suse1010.i586.rpm
net-snmp-5.3.0.1-25.22.i586.rpm


При запуске radiusd в процессах показывает что он запустился:
radius1:/ # service radiusd start
Starting RADIUS daemon                                                done
radius1:/ # ps aux | grep radiusd
root      5582  0.0  0.1   1576   516 pts/1    S    11:21   0:00 logger -p local3.info -t radiusd
root      5583 98.5  0.5   4728  1448 pts/1    R    11:21   0:36 /opt/radius/sbin/radiusd -x
root      5586  0.0  0.1   1692   488 pts/1    S+   11:21   0:00 grep radiusd
radius1:/ #


А в открытых портах он не светится... :-(

radius1:/ # netstat -anep
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name
tcp        0      0 127.0.0.1:2544          0.0.0.0:*               LISTEN      0          4483066    12274/zmd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      0          4483289    13386/master
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      0          4483051    12224/portmap
tcp        0      0 :::22                   :::*                    LISTEN      0          4483111    13322/sshd
tcp        0      0 ::1:25                  :::*                    LISTEN      0          4483291    13386/master
tcp        0    656 10.200.3.20:22          10.10.50.244:3020       ESTABLISHED 0          4932527    3749/0
udp        0      0 0.0.0.0:111             0.0.0.0:*                           0          4483050    12224/portmap

При запуске Радиса с помощью strace

radius1:/ # strace /opt/radius/sbin/radiusd -x 2> out
Starting - reading configuration files ...

Он зависает и в файле "out" мы видим:

.........................................
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f42000
read(6, "#\n# clients.conf - client config"..., 4096) = 2937
read(6, "", 4096)                       = 0
close(6)                                = 0
munmap(0xb7f42000, 4096)                = 0
stat64("/etc/raddb/snmp.conf", {st_mode=S_IFREG|0640, st_size=1405, ...}) = 0
open("/etc/raddb/snmp.conf", O_RDONLY|O_LARGEFILE) = 6
fstat64(6, {st_mode=S_IFREG|0640, st_size=1405, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f42000
read(6, "#\n# snmp.conf - snmp configurati"..., 4096) = 1405
read(6, "", 4096)                       = 0
close(6)                                = 0
munmap(0xb7f42000, 4096)                = 0
read(4, "find that the server is regularl"..., 4096) = 4096
read(4, "he locations of the \'passwd\', \'s"..., 4096) = 4096
stat64("/etc/raddb/eap.conf", {st_mode=S_IFREG|0640, st_size=10977, ...}) = 0
open("/etc/raddb/eap.conf", O_RDONLY|O_LARGEFILE) = 6
fstat64(6, {st_mode=S_IFREG|0640, st_size=10977, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f42000
read(6, "# -*- text -*-\n#\n#  Whatever you"..., 4096) = 4096
read(6, "rt.pem\n\n\n\t\t\t#\n\t\t\t#  For DH ciphe"..., 4096) = 4096
read(6, " will be taken from the reply to"..., 4096) = 2785
read(6, "", 4096)                       = 0
close(6)                                = 0
munmap(0xb7f42000, 4096)                = 0
read(4, "{raddbdir}/ldap.attrmap\n\n\t\tldap_"..., 4096) = 4096
read(4, "null = no\n\t}\t\n\n\t#  A simple valu"..., 4096) = 4096
read(4, "r}/users\n\t\tacctusersfile = ${con"..., 4096) = 4096
stat64("/etc/raddb/sql.conf", {st_mode=S_IFREG|0640, st_size=16480, ...}) = 0
open("/etc/raddb/sql.conf", O_RDONLY|O_LARGEFILE) = 6
fstat64(6, {st_mode=S_IFREG|0640, st_size=16480, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f42000
read(6, "#\n#  Configuration for the SQL m"..., 4096) = 4096
read(6, " no\n\n\t##########################"..., 4096) = 4096
read(6, "AcctSessionTime=unix_timestamp(\'"..., 4096) = 4096
read(6, "-Output-Gigawords:-0}\' << 32 | \\"..., 4096) = 4096
read(6, "\t#\n\t# Set to \'yes\' to read radiu"..., 4096) = 96
read(6, "", 4096)                       = 0
close(6)                                = 0
munmap(0xb7f42000, 4096)                = 0
read(4, ":\t\t${confdir}/pgsql-voip.conf\n\t#"..., 4096) = 4096
read(4, "on each login\n\t#  we send back t"..., 4096) = 4096
read(4, "\tproxy-reply\tattributes from the"..., 4096) = 4096
read(4, "Timeout = `%{expr:2 + 3}`\n\t#\n\t# "..., 4096) = 4096
read(4, "d passwords\n\t#  won\'t work.\n\tAut"..., 4096) = 4096
read(4, "\'nostrip\' option in the \'realm\'\n"..., 4096) = 242
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0xb7f43000, 4096)                = 0
open("/etc/raddb/dictionary", O_RDONLY|O_LARGEFILE) = 4
stat64("/etc/raddb/dictionary", {st_mode=S_IFREG|0644, st_size=940, ...}) = 0
open("/dev/urandom", O_RDONLY|O_LARGEFILE) = 6
read(6, "t@[\252\212D\262\336\356$A\354)\316\203\225\302\26\337"..., 1024) = 512
read(6, "", 512)                        = 0

Причем последняя строчка
read(6, "", 512) = 0
Повторяется до тех пор пока не прервешь команду strace /opt/radius/sbin/radiusd -x 2> out с помощью Ctrl+C
Или пока диск не переполнится этим файлом "out"

Не подскажите, Уважаемые, где копать?

[Updated on: Mon, 25 August 2008 10:09]

Report message to a moderator

Re: Не могу стартовать radius на VZ [message #32709 is a reply to message #32702] Mon, 25 August 2008 10:06 Go to previous message
Iakor is currently offline  Iakor
Messages: 6
Registered: July 2008
Junior Member
From: *transtk.ru
Отвечаю сам себе Smile

gentoo1 ~ # rm -f /dev/urandom
gentoo1 ~ #mknod /dev/urandom c 1 9


Решило проблему.
Previous Topic: [solved] Ядра с поддержкой EM64T
Next Topic: Монтирование раздела внутри VPS
Goto Forum:
  


Current Time: Tue Aug 20 02:50:48 GMT 2019