Remounting VMFS volumes after transition using the ESXi CLI

October 27th, 2021 No comments

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

Categories: VMware Tags: , , , ,

Compile C++11 on MacOS / XCode

May 7th, 2019 No comments

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.

Extend Windows C: drive remotelly

April 26th, 2017 No comments

A somersault with remote Powershell call using psexec.

Read more…

Categories: Windowz Tags: , ,

Extend/resize LVM partition on RedHat/CentOS

July 18th, 2014 No comments

Brief commands to extend Linux LVM partition.

Read more…

Categories: Linux, VMware Tags: , ,

Install Mercurial on Debian Linux

June 5th, 2014 No comments
Commands to install Mercurial on Debian 6 Linux.

Read more…

Session “ReadyBoot” stopped due to the following error: 0xC0000188

May 25th, 2014 No comments

Here is solution to fix it.

Read more…

Categories: Windowz Tags: , , ,

Reset Authentec fingerprint sensor database on Windows 8

May 23rd, 2014 No comments

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.

Dell Latitude – enable biometric/fingerprint on Windows 8.1 and Authentec AES28XX

May 23rd, 2014 No comments

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…

Google rejected message – Builk Sender

December 19th, 2013 No comments

Link to contact Google Support – https://support.google.com/mail/contact/bulk_send

 

Categories: Google, Полезности Tags: , ,

Solaris: configure media on bge

October 29th, 2013 No comments

Configuring speed and duplex for bge driver on Solaris.

Read more…

Categories: Не вошло Tags:

Solaris10: jumbo frames on bge

October 29th, 2013 No comments

Configuring jumbo frames on bge NIC of SunFire V240.

Read more…

FreeBSD 9 – восстановление ZFS на root-partition

May 2nd, 2013 No comments

Приблизительный сценарий бекапа и восстановления FreeBSD 9 с ZFS на корневом разделе.
Read more…

Categories: FreeBSD Tags: , , ,

Настройка 802.1q vlan на FreeBSD 9

February 15th, 2013 No comments

Как поднять vlan интерфейс есть и в документации. Но как прописать в автозагрузку – не нашел сходу.
Первый, так сказать old style, можно сделать через cloned_interfaces. Примеров в сети – полно.
Read more…

Mercurial-2.X – create RPM distribution for Red Hat EL 4

January 19th, 2013 No comments

I’ve summarized few articles which described how to create Mercurial 2.4.2 RPM distributions.
Read more…

Categories: Linux Tags: , , , ,

Треккинг пересылок Укрпочты

January 17th, 2013 No comments

Любую посылку или конверт отправленный через Укрпочту можно отследить даже без заказа дополнительных услуг (например, уведомление через SMS).
Read more…

Suppress SSH warning on ESXi hosts

January 3rd, 2013 No comments

Supressing VMware Client warning about enables SSH service through PoverCLI.

Read more…

Categories: VMware Tags: , , ,

Enable/Disable SSH service on vCenter hosts

January 3rd, 2013 No comments

Managing ESXi hosts services through PoverCLI interface.

Read more…

Categories: VMware Tags:

Move Solaris OS to new hardware

October 11th, 2012 No comments

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.

Enable network support for Solaris 9 from CD-ROM boot.

September 21st, 2012 No comments

How to enable network support on Solaris 9 for backup and restore OS on new hard disk.

Read more…

Categories: Системы Tags: , , ,

ошибки при работе vmware-cli

August 27th, 2012 No comments

Небольшой FAQ для VMware и vCLI.

Read more…

Categories: VMware Tags: , ,

PHP + FastCGI && PHP_AUTH_USER|PHP_AUTH_PW

August 27th, 2012 No comments

Если PHP работает в FastCGI режиме, может не работать авторизация, построенная на анализе переменных PHP_AUTH_USER и PHP_AUTH_PW.

Read more…

Categories: Web & PHP Tags: , , ,

Typo3 & PHP 5.4 error after update

July 8th, 2012 No comments

Косяки с движком Typo3, которые возникли после обновленияя PHP до версии 5.4.

Read more…

Categories: Web & PHP Tags: , , ,

FreeBSD: исправление Current_Pending_Sector

January 27th, 2012 No comments

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 2.8

January 5th, 2012 No comments

При инсталяции 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 лезет в сеть за лицензиями или еще чем-то.

Categories: Web & PHP Tags:

Переход на Vbulletin 4.1 с импортом данных из phpBB3

November 30th, 2011 No comments

Задача импорта данных из форума phpBB3 в Vbulletin 4.1 вполне реальная. Но есть несколько “подводных камней”, которые стоит учесть еще до импорта.

Read more…

Categories: VBulletin Tags: , , ,

Таможня и добро: список личных вещей, которые можно ввезти через границу без пошлины

October 7th, 2011 No comments

Собираетесь лететь за границу? Будет полезно прочитать…

Read more…

FreeBSD и named на динамическим интерфейсе

October 6th, 2011 No comments

Ситуация: нужно запустить DNS-сервер на динамическом интерфейсе (ppp, pppoe etc).

Read more…

Adsense: перезапросить чек или объединить несколько платежей

August 22nd, 2011 No comments

Бывает, что накопилось несколько чеков от Google Adsense. А, скорее всего, отоваривать один чек выгоднее, чем несколько. В самый раз объединить платежи, чтобы со следующей выплаты Гуглем получить один чек.

Read more…

Fatal error: Class ‘DataObjects_Clients’ not found in openx-…/www/admin/zone-include.php

February 8th, 2011 No comments

Заметил ошибочку в работе 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
Categories: Web & PHP Tags: , ,

“Затемнить” область с банерами внизу страницы

October 4th, 2010 No comments

Бывает нужно затемнить каку-то область, например, код банеров и счетчиков внизу страницы…

<div  style="opacity: 0.5;filter: alpha(opacity=50);">
<код банера>
</div>

Categories: HTML & CSS Tags: , , ,

Работа с контроллером 3ware 9000 серии под FreeBSD

October 3rd, 2010 No comments

Несколько комманд для работы в контроллером.

Read more…

Выделить блок Важных сообшений для нескольких форумов

July 13th, 2010 No comments

Найти в шаблоне 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">&nbsp;</td> </tr> </if>
Categories: VBulletin Tags: , ,

Работа с Adaptec 5805 из FreeBSD 8

July 11th, 2010 No comments

Для начала инсталируем 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

Categories: FreeBSD Tags: , , ,

Symlink за пределы шары Samba

July 6th, 2010 No comments

В старых версиях 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 RAID под FreeBSD

July 6th, 2010 No comments

При деградации ata-массива (ну, бывает шлейф соскочил 🙂 ) далеко не всегда можно перестроить.

Read more…

dmesg прошивки 1.0.1.4 роутера ASUS RT-N16

July 3rd, 2010 No comments

Лог от роутера. Даже не знаю зачем оно мне надо…

Read more…

Set ESXi 7 relaxed password policy

December 21st, 2021 No comments

Go to Host > Manage > System > Advance Settings
Search for Security.PasswordQualityControl.
Change to “retry=3 min=1,1,1,1,1”

Categories: VMware Tags: ,

2007 TOYOTA RAV4 3.5L 6-cyl Engine Code 2GRFE

July 8th, 2019 No comments

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:

Oil FilterEa® Oil Filter (EA15K02)
Oil FilterWIX 57047 Oil Filter
Air FilterWIX 49172 Air Filter
Cabin Air FilterWIX 24511 Cabin Air Filter (0)[1]
Cabin Air FilterWIX 24483 Cabin Air Filter[2]

[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

Categories: Cars, Toyota Tags: , , , ,

SSH reverse SOCKs tunnel

May 3rd, 2019 No comments

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

Categories: FreeBSD, Linux, Системы Tags: , ,