Steps
- Log in to the ESXi console using SSH.
- List the newly added LUNs with existing VMFS signatures and VMFS labels:
esxcfg-volume -l
- Remount the VMFS volumes persistently with the same signature:
For regular volumes:
esxcfg-volume -M|–persistent-mount VMFS UUID|label
For spanned volumes:
esxcfg-volume -M vmfs-span-ds
Source: https://docs.netapp.com/us-en/ontap-7mode-transition/san-host/task_remounting_vmfs_volumes_after_transition_using_esxi_cli_console.html
By https://stackoverflow.com/questions/14228856/how-to-compile-c-with-c11-support-in-mac-terminal
As others have pointed out you should use clang++
rather than g++
. Also, you should use the libc++ library instead of the default libstdc++; The included version of libstdc++ is quite old and therefore does not include C++11 library features.
clang++ -std=c++11 -stdlib=libc++ -Weverything main.cpp
If you haven’t installed the command line tools for Xcode you can run the compiler and other tools without doing that by using the xcrun
tool.
xcrun clang++ -std=c++11 -stdlib=libc++ -Weverything main.cpp
Also if there’s a particular warning you want to disable you can pass additional flags to the compiler to do so. At the end of the warning messages it shows you the most specific flag that would enable the warning. To disable that warning you prepend no-
to the warning name.
For example you probably don’t want the c++98 compatibility warnings. At the end of those warnings it shows the flag -Wc++98-compat
and to disable them you pass -Wno-c++98-compat
.
A somersault with remote Powershell call using psexec.
Read more…
Brief commands to extend Linux LVM partition.
Read more…
Commands to install Mercurial on Debian 6 Linux.
Read more…
Here is solution to fix it.
Read more…
To reset Authentec fingerprint sensor internal database on Windows 8 used tool from Toshiba site – TFPU WBF Delete Fingerprint Tool.
Or one 23Kb program from this archive – Biometric Cleanup Utility. Be careful, it wipes data without confirmation.
I used Dell Latitude E5520 laptop and Windows 8.1 is not supported on it. Dell Support site has not driver available. Terrible, but…
Used these steps to enable fingerprint authorization.
Read more…
Configuring speed and duplex for bge driver on Solaris.
Read more…
Configuring jumbo frames on bge NIC of SunFire V240.
Read more…
Приблизительный сценарий бекапа и восстановления FreeBSD 9 с ZFS на корневом разделе.
Read more…
Как поднять vlan интерфейс есть и в документации. Но как прописать в автозагрузку – не нашел сходу.
Первый, так сказать old style, можно сделать через cloned_interfaces. Примеров в сети – полно.
Read more…
I’ve summarized few articles which described how to create Mercurial 2.4.2 RPM distributions.
Read more…
Любую посылку или конверт отправленный через Укрпочту можно отследить даже без заказа дополнительных услуг (например, уведомление через SMS).
Read more…
Supressing VMware Client warning about enables SSH service through PoverCLI.
Read more…
Managing ESXi hosts services through PoverCLI interface.
Read more…
Simple answer (from here http://compgroups.net/comp.sys.sun.admin/move-solaris-from-one-server-to-another-ho/480239):
You can create a new /etc/path_to_inst for the new machine using devfsadm.
1.) Restore the backup on the new machine
2.) Mount new root-Filesystem e.g. under /a
3.) Execute devfsadm -r /a -p /a/etc/path_to_inst
Option -p is not in the manual page, but for me it worked a lot of times.
How to enable network support on Solaris 9 for backup and restore OS on new hard disk.
Read more…
Небольшой FAQ для VMware и vCLI.
Read more…
Если PHP работает в FastCGI режиме, может не работать авторизация, построенная на анализе переменных PHP_AUTH_USER и PHP_AUTH_PW.
Read more…
Косяки с движком Typo3, которые возникли после обновленияя PHP до версии 5.4.
Read more…
SMART мониторинг отрапортовал об ошибке на одном из дисков, включенных в ZFS пул. Надо лечить…
# smartctl -A /dev/ad6
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG TYPE RAW_VALUE
5 Reallocated_Sector_Ct 0x0033 Pre-fail 0
196 Reallocated_Event_Count 0x0032 Old_age 0
197 Current_Pending_Sector 0x0022 Old_age 1
Read more…
При инсталяции OpenX на новом хостинге получил много ошибок/предупреждений.
——————————————————————————–
MESSAGE: Undefined variable: imgPath
TYPE: Notice
FILE: /.../www/admin/install.php
LINE: 75
DEBUG INFO:
70 $oMenu->add(new OA_Admin_Menu_Section('install', '', ''));
71
72 if ($oController->hasLayout()) {
73 //layout
74 $oPageHeader = $oController->getModelProperty('pageHeader');
75 phpAds_PageHeader('install', $oPageHeader, $imgPath, false, true, false);
76 }
77 if ($view) {
78 $view->display();
79 }
80 echo $actionContent;
Лечится просто – на время установки отменить disable_functions в php.ini. Сам install.php лезет в сеть за лицензиями или еще чем-то.
Задача импорта данных из форума phpBB3 в Vbulletin 4.1 вполне реальная. Но есть несколько “подводных камней”, которые стоит учесть еще до импорта.
Read more…
Собираетесь лететь за границу? Будет полезно прочитать…
Read more…
Ситуация: нужно запустить DNS-сервер на динамическом интерфейсе (ppp, pppoe etc).
Read more…
Бывает, что накопилось несколько чеков от Google Adsense. А, скорее всего, отоваривать один чек выгоднее, чем несколько. В самый раз объединить платежи, чтобы со следующей выплаты Гуглем получить один чек.
Read more…
Заметил ошибочку в работе OpenX. В Админка -> Zones -> Linked Banners выдавало
OpenX: Fatal error: Class ‘DataObjects_Clients’ not found in openx-2.8.5/www/admin/zone-include.php
Солюшн: редактируем файл openx-…/www/admin/zone-include.php, в конце блока инклудов прописываем
require_once MAX_PATH . '/lib/max/Dal/Admin/Clients.php';
Все работает…
OpenX: Fatal error: Class ‘DataObjects_Clients’ not found in openx-2.8.4/www/admin/zone-include.php
Бывает нужно затемнить каку-то область, например, код банеров и счетчиков внизу страницы…
<div style="opacity: 0.5;filter: alpha(opacity=50);">
<код банера>
</div>
Несколько комманд для работы в контроллером.
Read more…
Найти в шаблоне FORUMHOME блок:
$threadbits_sticky
Добавить после:
$threadbits_sticky <if condition="in_array($foruminfo[forumid], array(1,2,3,4))"> <tr><td colspan="<if condition="(($show['threadicons'] AND $colspan = 6) OR (!$show['threadicons'] AND $colspan = 5)) AND ($show['inlinemod'] AND $colspan++)"></if>$colspan"> </td> </tr> </if>
Для начала инсталируем sysutil/arcconf и devel/ncurses (автоматически зависимость в портах не отслеживается).
— посмотреть все настройки контроллера, логических и физических устройств
arcconf GETCONFIG 1 al
— удалить логические устройства 7, 6, 5, 4
arcconf delete 1 LOGICALDRIVE 7 6 5 4
— Создать массив – RAID5
arcconf create 1 LOGICALDRIVE Name SASr5 MAX 5 0 4 0 5 0 6 0 7
— Создать массив RAID0 из четерые дисков
arcconf CREATE 1 LOGICALDRIVE Name SWAP Wcache WBB Stripesize 128 MAX 0 0 0 0 1 0 2 0 3
— посмотреть текущее состояние контролеров
arcconf GETSTATUS 1
В старых версиях Samba symlink мог ссылаться на любой файл сервера. В новых версиях (в 3.4 точно) это поправлено для исключения symlink-атак (http://www.samba.org/samba/news/symlink_attack.html). Меняем взад…
Файл smb.conf
В глобальную секцию добавляем
[global]
unix extensions = no
[...]
В Описании шары
[...]
wide links = yes
follow symlinks = yes
[...]
При деградации ata-массива (ну, бывает шлейф соскочил 🙂 ) далеко не всегда можно перестроить.
Read more…
Лог от роутера. Даже не знаю зачем оно мне надо…
Read more…
Go to Host > Manage > System > Advance Settings
Search for Security.PasswordQualityControl.
Change to “retry=3 min=1,1,1,1,1”
LUBRICANTS & FLUIDS:
Engine Oil
Grade 1……SL
Maximum Performance Signature Series 5W-30 Synthetic Motor Oil (ASLQT)
Performance Plus XL 5W-30 Synthetic Motor Oil (XLFQT)
Performance OE 5W-30 Synthetic Motor Oil (OEFQT) All TEMPS……5W-30
Automatic Transmission,U151E……WS
Signature Series Fuel-Efficient Synthetic Automatic Transmission Fluid (ATL) (ATLPK)
OE Fuel-Efficient Synthetic Automatic Transmission Fluid (OTLQT)
Automatic Transmission,U140F……WS
Signature Series Fuel-Efficient Synthetic Automatic Transmission Fluid (ATL) (ATLPK)
OE Fuel-Efficient Synthetic Automatic Transmission Fluid (OTLQT)
Automatic Transmission,U151F……WS
Signature Series Fuel-Efficient Synthetic Automatic Transmission Fluid (ATL) (ATLPK)
OE Fuel-Efficient Synthetic Automatic Transmission Fluid (OTLQT)
Automatic Transmission,U241E……WS
Signature Series Fuel-Efficient Synthetic Automatic Transmission Fluid (ATL) (ATLPK)
OE Fuel-Efficient Synthetic Automatic Transmission Fluid (OTLQT)
Differential, Rear……GL-5
Above 0 F……85W-90
Severe Gear® 75W-90 (SVGPK)
SAE 80W-90 Synthetic Gear Lube (AGLPK)
Differential, Rear……GL-5
Below 0 F……80W-90
SAE 80W-90 Synthetic Gear Lube (AGLPK)
Severe Gear® 75W-90 (SVGPK)
Severe Gear® 75W-110 (SVTPK)
Transfer Case,U/K TRC……GL-5
Above 0 F……85W-90
Severe Gear® 75W-90 (SVGPK)
SAE 80W-90 Synthetic Gear Lube (AGLPK)
Transfer Case,U/K TRC……GL-5
Below 0 F……80W-90
SAE 80W-90 Synthetic Gear Lube (AGLPK)
Severe Gear® 75W-90 (SVGPK)
Severe Gear® 75W-110 (SVTPK)
Fluids
Brake Fluid……HB
DOT 3 and 4 Brake Fluid (BFLVCN) [1]
[1] Hydraulic Brake Fluid, DOT 3
FILTERS:
[1] Charcoal Impregnated
[2] Particulate; Not all models may be outfitted with a cabin air filter. Please verify before ordering.
CAPACITIES:
Engine, with filter……….6.4 quarts [1]
Cooling System, With Tow Package Initial Fill……….9.8 quarts
Passenger Car & Light Truck Antifreeze & Coolant
AMSOIL Antifreeze and Engine Coolant
Cooling System, WO/ Tow Package Initial Fill……….9.4 quarts
Passenger Car & Light Truck Antifreeze & Coolant
AMSOIL Antifreeze and Engine Coolant
Automatic Transmission, U241E Initial Fill……….3.7 quarts
Automatic Transmission, U151E Initial Fill……….3.7 quarts
Automatic Transmission, U140F Initial Fill……….3.7 quarts
Automatic Transmission, U151F Initial Fill……….3.7 quarts
Automatic Transmission, Total Fill
5 speed U151F……….Not Specified
5 speed U151E……….Not Specified
4 speed U241E……….Not Specified
4 speed U140F……….Not Specified
Differential, Rear……….1.1 pints
Transfer Case, U/K TRC……….1.1 pints
[1] After refill check oil level.
TORQUES:
Oil Drain Plug…..30 ft/lbs
Transfer Case
Fill Plug 28 ft/lbs
Drain Plug 28 ft/lbs
Linked from here – https://www.amsoil.com/MyGarage/VehicleLookupPrint.aspx?url2=2007+TOYOTA+RAV4+A
To open reverse SSH SOCKS5 forwarding:
>ssh -l RemoteUser -R 8765:127.0.0.1:22 -v RemoteHost \
ssh -v -D 1080 -p 8765 127.0.0.1 -N -l LocalUser