DeH

Full Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Цитата: Здравствуйте! Есть бесплатная редакция ZCS: Release 8.6.0_GA_1153.RHEL6_64_20141215151155 RHEL6_64 FOSS edition, Patch 8.6.0_P4. Периодически на почтовый ящик админа сервера приходят вот такие сообщения: Код: Oct 21 07:24:40 mail zmconfigd[20269]: Service status change: mail.... mailbox changed from running to stopped | и по истечению 1 минуты вот такое: Код: Oct 21 07:25:42 mail zmconfigd[20269]: Service status change: mail.... mailbox changed from stopped to running | Вот что показывает системный лог почтовика (zimbra.log): Код: Oct 21 07:23:38 mail zmconfigd[20269]: Fetching All configs Oct 21 07:23:38 mail zmconfigd[20269]: All configs fetched in 0.05 seconds Oct 21 07:23:39 mail zmconfigd[20269]: Watchdog: service antivirus status is OK. Oct 21 07:23:39 mail zmconfigd[20269]: All rewrite threads completed in 0.00 sec Oct 21 07:23:39 mail zmconfigd[20269]: All restarts completed in 0.00 sec Oct 21 07:24:39 mail zmconfigd[20269]: Fetching All configs Oct 21 07:24:40 mail zmconfigd[20269]: All configs fetched in 0.21 seconds Oct 21 07:24:40 mail zmconfigd[20269]: Executed: /opt/zimbra/bin/zmstorectl status norewrite returned 1 (29 - 13) (0.06 sec) Oct 21 07:24:40 mail zmconfigd[20269]: Service status change: mail.... mailbox changed from running to stopped Oct 21 07:24:42 mail zmconfigd[20269]: Watchdog: service antivirus status is OK. Oct 21 07:24:42 mail zmconfigd[20269]: All rewrite threads completed in 0.00 sec Oct 21 07:24:42 mail zmconfigd[20269]: All restarts completed in 0.00 sec Oct 21 07:25:42 mail zmconfigd[20269]: Fetching All configs Oct 21 07:25:42 mail zmconfigd[20269]: All configs fetched in 0.05 seconds Oct 21 07:25:42 mail zmconfigd[20269]: Service status change: mail.... mailbox changed from stopped to running Oct 21 07:25:43 mail zmconfigd[20269]: Watchdog: service antivirus status is OK. Oct 21 07:25:43 mail zmconfigd[20269]: All rewrite threads completed in 0.00 sec Oct 21 07:25:43 mail zmconfigd[20269]: All restarts completed in 0.00 sec Oct 21 07:26:43 mail zmconfigd[20269]: Fetching All configs Oct 21 07:26:44 mail zmconfigd[20269]: All configs fetched in 0.05 seconds Oct 21 07:26:45 mail zmconfigd[20269]: Watchdog: service antivirus status is OK. Oct 21 07:26:45 mail zmconfigd[20269]: All rewrite threads completed in 0.00 sec Oct 21 07:26:45 mail zmconfigd[20269]: All restarts completed in 0.00 sec | Подскажите пожалуйста кто сталкивался с такой ситуацией из-за чего, если я правильно понял, периодически падает mailbox и как пофиксить. И еще... Из-за падения основной СХД (или не из-за этого - сейчас уже не выяснить) на файловой системе почтовика были обнаружены ошибки и пришлось их пофиксить при помощи fsck. После этого появились ящики, на которые невозможно зайти через веб-интерфейс (другими интерфейсами не пользуемся), а также начали появляться неудаляемые невидимые письма и прочая гадость. Вот что я смотрел в этом направлении: Код: [root@mail log]# /opt/zimbra/libexec/zmdbintegrityreport Database errors found. /opt/zimbra/mysql/bin/mysqlcheck --defaults-file=/opt/zimbra/conf/my.cnf -S /opt/zimbra/db/mysql.sock -A -C -s -u root --password=XXXXXXXX mboxgroup24.mail_item Warning : InnoDB: The B-tree of index "PRIMARY" is corrupted. Warning : InnoDB: Index "i_name_folder_id" is marked as corrupted Warning : InnoDB: Index "i_type" is marked as corrupted Warning : InnoDB: Index "i_parent_id" is marked as corrupted Warning : InnoDB: Index "i_folder_id_date" is marked as corrupted Warning : InnoDB: Index "i_index_id" is marked as corrupted Warning : InnoDB: Index "i_date" is marked as corrupted Warning : InnoDB: Index "i_mod_metadata" is marked as corrupted Warning : InnoDB: Index "i_uuid" is marked as corrupted error : Corrupt mboxgroup75.tagged_item Warning : InnoDB: Index "fk_tagged_item_item" is marked as corrupted error : Corrupt mboxgroup89.mail_item Warning : InnoDB: Index "i_name_folder_id" is marked as corrupted Warning : InnoDB: Index "i_type" is marked as corrupted Warning : InnoDB: Index "i_parent_id" is marked as corrupted Warning : InnoDB: Index "i_folder_id_date" is marked as corrupted Warning : InnoDB: Index "i_index_id" is marked as corrupted Warning : InnoDB: Index "i_date" is marked as corrupted Warning : InnoDB: Index "i_mod_metadata" is marked as corrupted Warning : InnoDB: Index "i_uuid" is marked as corrupted error : Corrupt mboxgroup95.mail_item Warning : InnoDB: Index "i_name_folder_id" is marked as corrupted Warning : InnoDB: Index "i_type" is marked as corrupted Warning : InnoDB: Index "i_parent_id" is marked as corrupted Warning : InnoDB: Index "i_index_id" is marked as corrupted Warning : InnoDB: Index "i_date" is marked as corrupted Warning : InnoDB: Index "i_mod_metadata" is marked as corrupted error : Corrupt | Код: [root@mail log]# /opt/zimbra/libexec/zmdbintegrityreport -r Database errors found. /opt/zimbra/mysql/bin/mysqlcheck --defaults-file=/opt/zimbra/conf/my.cnf -S /opt/zimbra/db/mysql.sock -A -C -s -u root --auto-repair --password=XXXXXXXX ... (аналогичные сообщения из предыдущего кода) ... mboxgroup24.mail_item note : The storage engine for the table doesn't support repair mboxgroup75.tagged_item note : The storage engine for the table doesn't support repair mboxgroup89.mail_item note : The storage engine for the table doesn't support repair mboxgroup95.mail_item note : The storage engine for the table doesn't support repair | Имеет ли смысл попробовать сделать это? https://wiki.zimbra.com/wiki/Mysql_Crash_Recovery | Решение проблем: 1. Падения mailbox, по всей видимости, были связаны именно с ошибками в базе данных почтовика, исправление которых описывается ниже. 2. Исправление таблиц. [root@mail log]# /opt/zimbra/libexec/zmdbintegrityreport Database errors found. /opt/zimbra/mysql/bin/mysqlcheck —defaults-file=/opt/zimbra/conf/my.cnf -S /opt/zimbra/db/mysql.sock -A -C -s -u root —password=XXXXXXXX mboxgroup24.mail_item Warning : InnoDB: The B-tree of index «PRIMARY» is corrupted. Warning : InnoDB: Index «i_name_folder_id» is marked as corrupted Warning : InnoDB: Index «i_type» is marked as corrupted Warning : InnoDB: Index «i_parent_id» is marked as corrupted Warning : InnoDB: Index «i_folder_id_date» is marked as corrupted Warning : InnoDB: Index «i_index_id» is marked as corrupted Warning : InnoDB: Index «i_date» is marked as corrupted Warning : InnoDB: Index «i_mod_metadata» is marked as corrupted Warning : InnoDB: Index «i_uuid» is marked as corrupted error : Corrupt mboxgroup75.tagged_item Warning : InnoDB: Index «fk_tagged_item_item» is marked as corrupted error : Corrupt mboxgroup89.mail_item Warning : InnoDB: Index «i_name_folder_id» is marked as corrupted Warning : InnoDB: Index «i_type» is marked as corrupted Warning : InnoDB: Index «i_parent_id» is marked as corrupted Warning : InnoDB: Index «i_folder_id_date» is marked as corrupted Warning : InnoDB: Index «i_index_id» is marked as corrupted Warning : InnoDB: Index «i_date» is marked as corrupted Warning : InnoDB: Index «i_mod_metadata» is marked as corrupted Warning : InnoDB: Index «i_uuid» is marked as corrupted error : Corrupt mboxgroup95.mail_item Warning : InnoDB: Index «i_name_folder_id» is marked as corrupted Warning : InnoDB: Index «i_type» is marked as corrupted Warning : InnoDB: Index «i_parent_id» is marked as corrupted Warning : InnoDB: Index «i_index_id» is marked as corrupted Warning : InnoDB: Index «i_date» is marked as corrupted Warning : InnoDB: Index «i_mod_metadata» is marked as corrupted error : Corrupt [zimbra@mail ~]$ mysql -e 'use mboxgroup24; optimize table mail_item;' +-----------------------+----------+----------+-------------------------------------------------------------------+ | Table | Op | Msg_type | Msg_text | +-----------------------+----------+----------+-------------------------------------------------------------------+ | mboxgroup24.mail_item | optimize | note | Table does not support optimize, doing recreate + analyze instead | | mboxgroup24.mail_item | optimize | status | OK | +-----------------------+----------+----------+-------------------------------------------------------------------+ [zimbra@mail ~]$ mysql -e 'use mboxgroup89; optimize table mail_item;' +-----------------------+----------+----------+-------------------------------------------------------------------+ | Table | Op | Msg_type | Msg_text | +-----------------------+----------+----------+-------------------------------------------------------------------+ | mboxgroup89.mail_item | optimize | note | Table does not support optimize, doing recreate + analyze instead | | mboxgroup89.mail_item | optimize | status | OK | +-----------------------+----------+----------+-------------------------------------------------------------------+ [zimbra@mail ~]$ mysql -e 'use mboxgroup95; optimize table mail_item;' +-----------------------+----------+----------+-------------------------------------------------------------------+ | Table | Op | Msg_type | Msg_text | +-----------------------+----------+----------+-------------------------------------------------------------------+ | mboxgroup95.mail_item | optimize | note | Table does not support optimize, doing recreate + analyze instead | | mboxgroup95.mail_item | optimize | status | OK | +-----------------------+----------+----------+-------------------------------------------------------------------+ [zimbra@mail ~]$ mysql -e 'use mboxgroup75; optimize table tagged_item;' +-------------------------+----------+----------+-------------------------------------------------------------------+ | Table | Op | Msg_type | Msg_text | +-------------------------+----------+----------+-------------------------------------------------------------------+ | mboxgroup75.tagged_item | optimize | note | Table does not support optimize, doing recreate + analyze instead | | mboxgroup75.tagged_item | optimize | status | OK | +-------------------------+----------+----------+-------------------------------------------------------------------+ [zimbra@mail ~]$ /opt/zimbra/libexec/zmdbintegrityreport [zimbra@mail ~]$ 3. Также после сбоя начали наблюдаться некие фантомные (невидимые) письма (http://s019.radikal.ru/i629/1511/6e/58c1b1d4194d.png). Удаление фантомных (невидимых) писем в почтовых ящиках. % for i in `zmprov -l gaa mydomain.ru`; do echo "rmc $i" >> /tmp/rс_start.txt; echo "fc account $i" >> /tmp/rс_start.txt; done % zmprov -f /tmp/rс_start.txt где mydomain.ru необходимо поменять на свой почтовых домен, RecalculateMailboxCounts — «Когда количество непрочитанных сообщений и/или использование квоты не синхронизированы с данными в почтовом ящике, используйте эту команду, чтобы немедленно пересчитать квотирование почтовых ящиков и пересчитать непрочитанные сообщения. Замечение: Пересчет квот почтового ящика и количества сообщений должно быть запланировано для запуска в часы минимальной нагрузки и используется для одного почтового ящика одновременно», FlushCache — чистит кеш ящика. За помощь в решении проблем выражаю благодарность товарищу со следующего ресурса: http://as.zabedu.ru/linux/zcs/zimbra-errors | Всего записей: 588 | Зарегистр. 07-06-2003 | Отправлено: 10:32 01-12-2015 | Исправлено: DeH, 14:53 01-12-2015 |
|