Colobridge WIKI

Centos-5-minimal

Применимость: Linux, OpenVZ


Шаблон операционной системы для технологии виртуализации OpenVZ.

Минимально необходимый набор пакетов.

После установки доступен SSH-доступ, пароль root задается при установке VPS.

  • vzubc - контроль использования лимитов
  • vzlimcheck - утилита для мониторинга лимитов

chkconfig --list
crond          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mcstrans       	0:off	1:off	2:on	3:on	4:on	5:on	6:off
multipathd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
netplugd       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rawdevices     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off

ps ax
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:01 init [3]      
26437 ?        Sl     0:00 /sbin/rsyslogd -m 0
26452 ?        Ss     0:00 /usr/sbin/sshd
26465 ?        Ss     0:00 crond
26493 ?        Rs     0:00 sshd: root@ttyp0 
27650 ttyp0    Ss     0:00 -bash
27768 ttyp0    R+     0:00 ps ax''

free
             total       used       free     shared    buffers     cached
Mem:       3460096      43352    3416744          0          0          0
-/+ buffers/cache:      43352    3416744
Swap:            0          0          0

1. Память можно сэкономить заменой rsyslog на что нибудь аналогичное.

2. Виртуальная память (swap) не отображается внутри конейнера OpenVZ

audit-libs-1.7.17-3.el5
authconfig-5.3.21-6.el5
basesystem-8.0-5.1.1.el5.centos
bash-3.2-24.el5
binutils-2.17.50.0.6-14.el5
bzip2-1.0.3-6.el5_5
bzip2-libs-1.0.3-6.el5_5
centos-release-5-5.el5.centos
centos-release-notes-5.5-0
chkconfig-1.3.30.2-2.el5
coreutils-5.97-23.el5_4.2
cpio-2.6-23.el5_4.1
cracklib-2.8.9-3.3
cracklib-dicts-2.8.9-3.3
crontabs-1.10-8
cyrus-sasl-lib-2.1.22-5.el5_4.3
db4-4.3.29-10.el5_5.2
device-mapper-1.02.39-1.el5_5.2
device-mapper-event-1.02.39-1.el5_5.2
device-mapper-multipath-0.4.7-34.el5_5.6
dhclient-3.0.5-23.el5_5.2
diffutils-2.8.1-15.2.3.el5
dmraid-1.0.0.rc13-63.el5
dmraid-events-1.0.0.rc13-63.el5
e2fsprogs-1.39-23.el5_5.1
e2fsprogs-libs-1.39-23.el5_5.1
elfutils-libelf-0.137-3.el5
ethtool-6-4.el5
expat-1.95.8-8.3.el5_5.3
filesystem-2.4.0-3.el5
findutils-4.2.27-6.el5
fipscheck-1.2.0-1.el5
fipscheck-lib-1.2.0-1.el5
gawk-3.1.5-14.el5
gdbm-1.8.0-26.2.1
glib2-2.12.3-4.el5_3.1
glibc-2.5-49.el5_5.7
glibc-common-2.5-49.el5_5.7
gpg-pubkey-e8562897-459f07a4
grep-2.5.1-55.el5
groff-1.18.1.1-11.1
gzip-1.3.5-11.el5.centos.1
hmaccalc-0.9.6-3.el5
info-4.8-14.el5
initscripts-8.45.30-3.el5.centos
iproute-2.6.18-11.el5
iputils-20020927-46.el5
keyutils-libs-1.2-1.el5
kpartx-0.4.7-34.el5_5.6
krb5-libs-1.6.1-36.el5_5.6
less-436-2.el5
libacl-2.2.39-6.el5
libattr-2.4.32-1.1
libcap-1.10-26
libgcc-4.1.2-48.el5
libselinux-1.33.4-5.5.el5
libsepol-1.15.2-3.el5
libstdc++-4.1.2-48.el5
libsysfs-2.0.0-6
libtermcap-2.0.8-46.1
libuser-0.54.7-2.1.el5_4.1
libxml2-2.6.26-2.1.2.8.el5_5.1
logrotate-3.7.4-9.el5_5.2
ltrace-0.5-13.45svn.el5
lvm2-2.02.56-8.el5_5.6
lynx-2.8.5-28.1.el5_2.1
m2crypto-0.16-6.el5.6
MAKEDEV-3.23-1.2
man-1.6d-1.1
mc-4.6.1a-35.el5
mcstrans-0.2.11-3.el5
mingetty-1.07-5.2.2
mkinitrd-5.1.19.6-61.el5_5.2
mktemp-1.5-23.2.2
module-init-tools-3.3-0.pre3.1.60.el5_5.1
nash-5.1.19.6-61.el5_5.2
ncurses-5.5-24.20060715
net-tools-1.60-81.el5
newt-0.52.2-15.el5
nspr-4.8.6-1.el5_5
nss-3.12.8-1.el5.centos
openldap-2.3.43-12.el5_5.3
openssh-4.3p2-41.el5_5.1
openssh-server-4.3p2-41.el5_5.1
openssl-0.9.8e-12.el5_5.7
pam-0.99.6.2-6.el5_5.2
passwd-0.73-1
pcre-6.6-2.el5_1.7
perl-5.8.8-32.el5_5.2
popt-1.10.2.3-20.el5_5.1
procps-3.2.7-16.el5
psmisc-22.2-7
python-2.4.3-27.el5_5.3
python-elementtree-1.2.6-5
python-iniparse-0.2.3-4.el5
python-sqlite-1.1.7-1.2.1
python-urlgrabber-3.1.0-5.el5
readline-5.1-3.el5
rpm-4.4.2.3-20.el5_5.1
rpm-libs-4.4.2.3-20.el5_5.1
rpm-python-4.4.2.3-20.el5_5.1
rsyslog-3.22.1-3.el5_5.1
sed-4.1.5-5.fc6
setup-2.5.58-7.el5
sgpio-1.2.0_10-2.el5
shadow-utils-4.0.17-15.el5
slang-2.0.6-4.el5
sqlite-3.3.6-5
SysVinit-2.86-15.el5
tar-1.15.1-30.el5
tcp_wrappers-7.6-40.7.el5
termcap-5.5-1.20060701.1
tzdata-2010l-1.el5
udev-095-14.21.el5_5.1
usermode-1.88-3.el5.2
util-linux-2.13-0.52.el5_4.1
vim-minimal-7.0.109-6.el5
vixie-cron-4.1-77.el5_4.1
wget-1.11.4-2.el5_4.1
yum-3.2.22-26.el5.centos
yum-fastestmirror-1.1.16-14.el5.centos.1
yum-metadata-parser-1.1.2-3.el5.centos
zlib-1.2.3-3

Значения не определенные тарифным планом могут меняться

vzubc 
#####################################################################################################################
BEANS FOR UID 267
resource                     held              maxheld              barrier                limit              failcnt
kmemsize                  1.63 mb              1.87 mb            321.28 mb            353.41 mb                    0
lockedpages                     0                    0             64.25 mb             64.25 mb                    0
privvmpages              43.73 mb             54.03 mb           3379.00 mb           3379.00 mb                    0
shmpages                  2.50 mb              2.56 mb            157.00 mb            157.00 mb                    0
numproc                         9                   15                  400                  400                    0
physpages                 7.53 mb              7.62 mb                    0            MAX_ULONG                    0
vmguarpages                     0                    0           3072.00 mb        8388608.00 mb                    0
oomguarpages              7.53 mb              7.62 mb           3072.00 mb        8388608.00 mb                    0
numtcpsock                      2                    2                 8224                 8224                    0
numflock                        1                    2                 1000                 1100                    0
numpty                          1                    1                  512                  512                    0
numsiginfo                      0                    2                 1024                 1024                    0
tcpsndbuf                34.19 kb              0.00 kb             74.97 mb            107.09 mb                    0
tcprcvbuf                32.00 kb              0.00 kb             74.97 mb            107.09 mb                    0
othersockbuf              2.27 kb              9.69 kb             37.48 mb             69.61 mb                    0
dgramrcvbuf               0.00 kb              8.27 kb             37.48 mb             37.48 mb                    0
numothersock                    3                    8                 8224                 8224                    0
dcachesize              116.46 kb            121.04 kb             70.18 mb             72.28 mb                    0
numfile                       243                  306               131584               131584                    0
numiptent                      10                   10                  400                  400                    0