note

Открыть одинаковые панели в mc

alt+i

Создание XEN PV и установка ubuntu trusty через virt-install

virt-install --paravirt --name system name --ram 10240 --vcpus 12 --disk path=/dev/VG/LVM --network bridge=br1 --graphics none --location http://ru.archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/

OpenStack Swift Backup and Recovery

Object Storage

/etc/swift is very important to have backed up. This directory contains the swift configuration files as well as the ring files and ring builder files, which if lost, render the data on your cluster inaccessible. A best practice is to copy the builder files to all storage nodes along with the ring files. Multiple backup copies are spread throughout your storage cluster.

Yandex DNS вместо DynDNS

Купил домен. Хочу холявный хостинг. Имею белый динамический ip, что делать?

Яндекс оказывает такую услугу как DNS-хостинг. Конечно же у них есть какой то свой API для работы ,чтоб не лазить через веб ковыряться.
http://help.yandex.ru/pdd/hosting.xml

1. Делегировать домен на яндекс, прописав в админке своего доменного регистратора сервера днс яндекса - dns1.yandex.net, dns2.yandex.net.

2. Подтвердить собственность домена, самым простым способом мне показалось размещение файла.html в корне вебсервера.
http://help.yandex.ru/pdd/confirm-domain.xml#confirm-domain

TOra, нет connection provider для Postgres

apt-get install libqt4-sql-psql

или совсем так:
apt-get install libqt4-sql-mysql libqt4-sql-psql libqt4-sql-sqlite libqt4-sql-odbc libqt4-sql-tds

для справки:
TOra is an open-source multi-platform database management GUI that supports accessing most of the common database platforms in use, including Oracle, MySQL, and Postgres, as well as limited support for any target that can be accessed through Qt's ODBC support.

Core dump file

set the core dump file limit as unlimited by using

ulimit -c unlimited

And also check the path of core dump generation, normally the core dump is generated in the current directory of the process but by giving the path in /proc/sys/kernel/core_pattern you can change the path and name of core generation, something like below

echo /var/log/mycore > /proc/sys/kernel/core_pattern

now the core would be generated as /var/log/mycore.pid

Please also refer the man core, if you still don't see the core then send us the output of below command cat /proc/sys/kernel/core_pattern

Corosync: Removing a Cluster Node

On the host to be removed:

Find and record the node's Corosync id: crm_node -i

Stop the cluster: /etc/init.d/corosync stop

Next, from one of the remaining active cluster nodes:

Tell the cluster to forget about the removed host: crm_node -R COROSYNC_ID

Only now is it safe to delete the node from the CIB with:
cibadmin --delete --obj_type nodes --crm_xml ''
cibadmin --delete --obj_type status --crm_xml ''

Disable unfriendly "(END)" blinking in vtysh

Then it's useful to add the "VTYSH_PAGER=more" setting in your /etc/environment file, otherwise you will see an unfriendly "(END)" blinking in the left-down corner of the screen each time your enter a command and will need to press the "q" key to continue.

костыль timezone для STB MAG250

вырезка из /var/www/stalker_portal/c/xpcom.common.js

                try{
 
                    var timezone = stb.RDir('getenv timezone_conf');
                    var board = stb.RDir('getenv board');
 
//--------------------------------------------------------------------
                    if (board == 'mag250'){
                      if (timezone == 'Europe/Moscow'){
 
                        stb.RDir('setenv timezone_conf Etc/GMT-3');
                        stb.ExecAction('reboot');
                      }
                    }