вторник, 28 февраля 2017 г.

Не освобождается место после удаления файла.

Ищем того, кто держит файл.
# lsof | grep deleted | grep catalina.out

Получаем id процесса.
java 2963 jira 1w REG 253,0 709437 1838640 /opt/atlassian/jira/logs/catalina.out (deleted)

Ищем ссылку на файл.
# ls -l /proc/2963/fd | grep catalina.out
l-wx------. 1 jira jira 64 Feb 28 16:34 1 -> /opt/atlassian/jira/logs/catalina.out (deleted)

Обнуляем файл.
# cat /dev/null > /proc/2963/fd/1



четверг, 26 января 2017 г.

Импорт ovf с ошибкой Unsupported hardware family vmx-11

Просто меняем в ovf  vmx-11 на vmx-7, например.
Затем снимаем контрольную сумму (SHA1) файла ovf  и меняем её в файле mf.
Контрольную сумму можно получить консольной утилитой fciv от Microsoft.

понедельник, 9 января 2017 г.

Решение для SSL3_GET_CLIENT_HELLO:no shared cipher.

При подключении через vSphere Client выдает "the client could not send a complete request". В логе /var/log/rhttpproxy.log следующее:
SSLStreamImpl::DoServerHandshake (04512860) SSL_accept failed. Dumping SSL error queue
error:1408A0C1:SSL routines:SSL3_GET_CLIENT_HELLO:no shared cipher

Решение отсюда:

  1. Connect to the host via SSH.
  2. Navigate to the directory:

    /etc/vmware/rhttpproxy/
  3. Backup the config.xml file. Do not skip this step.
  4. Open config.xml file using vi editor.
  5. Add the <cipherList>ALL</cipherList> parameter between the <ssl>...</ssl> section of the configuration file. Use the model below as an example: 

    <config>
    ...<vmacore>...<ssl><doVersionCheck> false </doVersionCheck><useCompression>true</useCompression><libraryPath>/lib/</libraryPath><handshakeTimeoutMs>120000</handshakeTimeoutMs><cipherList>ALL</cipherList></ssl>...</vmacore>...</config>
  6. Save and close the config.xml file
  7. Reset the rhttpproxy service for the change to take effect by running the command:

    /etc/init.d/rhttpproxy restart

понедельник, 31 октября 2016 г.

Поиск удалившего файлы на шаре.

Для Windows Server 2003.
Заходим в Security log, фильтруем по EventID 560, далее поиск искомого объекта по полю Description. Нас интересует доступ типа delete.

вторник, 28 июня 2016 г.

При сбое времени на контроллере домена (eventid 2042).

По адресу HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NTDS\Parameters
редактируем или создаем DWord-параметр "Allow Replication With Divergent and Corrupt Partner" и присваиваем ему значение 1.
Запускаем репликацию между контролерами домена и убеждаемся что она прошла корректно.
repadmin /syncall DC_2.domen
repadmin /showrepl

Присваиваем DWord-параметру "Allow Replication With Divergent and Corrupt Partner" значение 0.

понедельник, 11 апреля 2016 г.

Настройка ssh в Cisco

Делаем
1. cisco> enable
2. cisco# clock set 17:10:00 28 Aug 2009 
3. cisco# configure terminal
4. cisco(config)# ip domain name test.dom
5. cisco(config)# crypto key generate rsa
6. cisco(config)# service password-encryption
7. cisco(config)# username user privilege 15 password 7 Pa$$w0rd
8. cisco(config)# aaa new-model
9. cisco(config)# line vty 0 4
10. cisco(config-line)# transport input ssh
11. cisco(config-line)# logging synchronous
12. cisco(config-line)# exit

По мотивам https://habrahabr.ru/post/68262/