![]() |
|
![]() |
||||||
|
# systemctl restart mariadb
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
151218 07:15:13 mysqld_safe Number of processes running now: 0
151218 07:15:13 mysqld_safe mysqld restarted
151218 7:15:13 [Note] /usr/libexec/mysqld (mysqld 5.5.44-MariaDB) starting as process 16908 ...
151218 7:15:13 InnoDB: The InnoDB memory heap is disabled
151218 7:15:13 InnoDB: Mutexes and rw_locks use GCC atomic builtins
151218 7:15:13 InnoDB: Compressed tables use zlib 1.2.7
151218 7:15:13 InnoDB: Using Linux native AIO
151218 7:15:13 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137756672 bytes) failed; errno 12
151218 7:15:13 InnoDB: Completed initialization of buffer pool
151218 7:15:13 InnoDB: Fatal error: cannot allocate memory for the buffer pool
151218 7:15:13 [ERROR] Plugin 'InnoDB' init function returned error.
151218 7:15:13 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
151218 7:15:13 [ERROR] mysqld: Out of memory (Needed 128917504 bytes)
151218 7:15:13 [ERROR] mysqld: Out of memory (Needed 96681984 bytes)
151218 7:15:13 [ERROR] mysqld: Out of memory (Needed 72499200 bytes)
151218 7:15:13 [Note] Plugin 'FEEDBACK' is disabled.
151218 7:15:13 [ERROR] Unknown/unsupported storage engine: InnoDB
151218 7:15:13 [ERROR] Aborting
151218 7:15:13 [Note] /usr/libexec/mysqld: Shutdown complete
Tasks: 84 total, 2 running, 82 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.3 us, 0.0 sy, 0.0 ni, 99.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.3 st
KiB Mem : 500824 total, 225260 free, 112052 used, 163512 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 364196 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4336 root 20 0 0 0 0 S 0.3 0.0 0:00.08 kworker/0:2
4338 root 20 0 146032 1912 1328 R 0.3 0.4 0:00.14 top
1 root 20 0 123252 3748 2300 S 0.0 0.7 0:01.07 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:00.02 ksoftirqd/0
5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H
6 root 20 0 0 0 0 S 0.0 0.0 0:00.04 kworker/u2:0
7 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh
9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/0
10 root 20 0 0 0 0 S 0.0 0.0 0:00.26 rcu_sched
11 root 20 0 0 0 0 R 0.0 0.0 0:00.36 rcuos/0
12 root rt 0 0 0 0 S 0.0 0.0 0:00.02 watchdog/0
13 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 khelper
14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs
15 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns
16 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 perf
17 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 writeback
18 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kintegrityd
19 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 bioset
20 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kblockd
21 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 md
24 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khungtaskd
25 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kswapd0
26 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd
27 root 20 0 0 0 0 S 0.0 0.0 0:00.00 fsnotify_mark
28 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 crypto
36 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kthrotld
38 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kmpath_rdacd
39 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kpsmoused
40 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ipv6_addrconf
60 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 deferwq
90 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kauditd
212 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kworker/u2:2
214 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ata_sff
216 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
218 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 scsi_tmf_0
219 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 events_power_ef
220 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
221 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 scsi_tmf_1
225 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ttm_swap
#!/bin/bash
STATUS=`mysql -nNE --connect-timeout=5 --user=root \
-e "SHOW STATUS LIKE 'Uptime';" 2>/dev/null | tail -1 2>>/dev/null`
if [[ "${STATUS}" > 0 ]]
then
exit 0
else
/usr/sbin/service php-fpm restart
/usr/sbin/service mysql restart
exit 1
fi
ls писал(а): Что касается старого сервера, то как я понял из сообщения выше у вас у вас там сломалась операционная система - можно ее переинсталлировать через VDSmanager и будет чистый сервер в рабочем состоянии
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1