Перейти до основного вмісту

Публікації

Показано дописи з липень, 2023

Оновлення firmware на DELL R710

Потрібно оновити firmware контролера PERC6i до останньої версії 6.3.3 На сайті DELL є файли оновлення для Windows і Linux, але на сервері встановлено ESXI 6.5. У форумах DELL є багато порад: 1. За допомогою openmanage та idrac, але в idrac express немає оновлення firmware контролера. 2. За допомогою bootable ISO (SSU) та repository manager, але в repository manager вже немає оновлення для такого старого сервера 3. ......... Тому найкращим варіантом виявилось створення завантажуючого USB накопичувача з CentOS7 Live CD Gnome з https://buildlogs.centos.org/centos/7/isos/x86_64/ а потім усі потрібні оновлення за допомогою другого USB накопичувача додати з https://www.dell.com/support/home/ru-rs/product-support/product/poweredge-r710/drivers Пораду знайшов у https://www.yinfor.com/2020/07/update-the-firmwares-on-my-dell-r710.html

Команда tail у Windows (DOS)

Для перегляду журналів у Windows відсутня Linux команда tail. Можна створити bat скрипт tail.bat на кшталт:  @echo off SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION rem tail.bat -d <lines> <file> rem tail.bat -f <file> rem ****** MAIN ****** IF "%1"=="-d" GOTO displayfile IF "%1"=="-f" GOTO followfile GOTO end rem ************ rem Show Last n lines of file rem ************ :displayfile SET skiplines=%2 SET sourcefile=%3 rem *** Get the current line count of file *** FOR /F "usebackq tokens=3,3 delims= " %%l IN (`find /c /v "" %sourcefile%`) DO (call SET find_lc=%%l) rem *** Calculate the lines to skip SET /A skiplines=%find_lc%-!skiplines! rem *** Display to screen line needed more +%skiplines% %sourcefile% GOTO end rem ************ rem Show Last n lines of file & follow output rem ************ :followfile SET skiplines=0 SET findend_lc=0 SET sourcefile=%2 :followloop rem *** Get the current

Міграція VM між серверами ESXI

Enable SSH Service on Source and Destination ESXI Servers To enable the SSH service, log in to the web interfaces for your ESXI servers. Then click on Host at the top right. Click Actions -> Services -> Enable Secure Shell (SSH) (if it is not already enabled). Enable SSH Client Service on Source ESXI Server. Log in to the SSH of the source ESXI server using the putty tool. You may need to run the below commands: esxcli network firewall ruleset list --ruleset-id sshClient Check if the SSH client service is enabled. If disabled, the command will return a result of ‘False’. If a ‘False’ response is returned, run this next command. If ‘False’ is not the returned response, proceed to the next step! esxcli network firewall ruleset set --ruleset-id sshClient --enabled=true Copy the VM from Source to Destination Before running the below commands, make sure the VM that will be migrated is turned off in the source ESXI server. Connect to your source ESXI server using putty or your favorite