Pages

Tuesday, December 24, 2019

How to Use Netcat Commands

Sources:



root@flxb-node-01:~ # nc -z -v www.google.com 80
Connection to www.google.com 80 port [tcp/http] succeeded!

root@flxb-node-01:~ # nc -z -v www.google.com 443
Connection to www.google.com 443 port [tcp/https] succeeded!

Monday, December 16, 2019

Clone Nested ESXi

The easiest and cleaner way after the clone, is to completely reset ESXi system configurations

I find the "reset system configuration" in DCUI very useful for this task.
There is also a way to perform this task via SSH:

#  /sbin/firmwareConfig.sh --reset   (this will automatically reboot your host)
# /sbin/firmwareConfig.sh --reset-only (this will not reboot host and needs to be done manually)


However, if you do not want to start from scratch you can tweek cloned system. The process is inspired by https://www.virtuallyghetto.com/2013/12/how-to-properly-clone-nested-esxi-vm.html

# to inherit vmknic MAC addresses from hardware NICs (actually vNICs)

esxcli system settings advanced set -o /Net/FollowHardwareMac -i 1

#verification
esxcli system settings advanced list -o /Net/FollowHardwareMac

# change IP settings and DNS hostname
Do it in DCUI

# reset ESXi UUID

sed -i 's/system\/uuid.*//' /etc/vmware/esx.conf
reboot

# Verification of ESXi UUID - esxcli
esxcli system uuid get

# Verification of ESXi UUIDs for all ESXi hosts within vCenter - powercli
Get-VMHost | Select Name,@{N='ESXi System UUid';E={(Get-Esxcli -VMHost $_).system.uuid.get()}}

# if the ESXi host was cloned from the ESXi host already connected to vCenter reset VPXA config

edit file /etc/vmware/vpxa/vpxa.cfg
locate section <vpxa></vpxa> and delete all content inside

reboot

# just in case local datastore was cloned along with ESXi

esxcli storage vmfs snapshot resignature -l datastore1


# NOTE: to have nested vSAN on native vSAN, you have to add following settings into your physical vSAN nodes
esxcli system settings advanced set -o /VSAN/FakeSCSIReservations -i 1


UNDERLINE INFO

# Historicky se pry pouzivala tato nastaveni

esxcli system settings advanced set -o /VMFS3/HardwareAcceleratedLocking -i 1
esxcli system settings advanced set -o /LSOM/VSANDeviceMonitoring -i 0
esxcli system settings advanced set -o /LSOM/lsomSlowDeviceUnmount -i 0
esxcli system settings advanced set -o /VSAN/SwapThickProvisionDisabled -i 1
esxcli system settings advanced set -o /VSAN/FakeSCSIReservations -i 1

esxcli system settings advanced list -o /VMFS3/HardwareAcceleratedLocking
esxcli system settings advanced list -o /LSOM/VSANDeviceMonitoring
esxcli system settings advanced list -o /LSOM/lsomSlowDeviceUnmount
esxcli system settings advanced list -o /VSAN/SwapThickProvisionDisabled
esxcli system settings advanced list -o /VSAN/FakeSCSIReservations

# Default hodnoty jsou
esxcli system settings advanced set -o /VMFS3/HardwareAcceleratedLocking -i 1
esxcli system settings advanced set -o /LSOM/VSANDeviceMonitoring -i 1
esxcli system settings advanced set -o /LSOM/lsomSlowDeviceUnmount -i 1
esxcli system settings advanced set -o /VSAN/SwapThickProvisionDisabled -i 1
esxcli system settings advanced set -o /VSAN/FakeSCSIReservations -i 1

Sunday, December 1, 2019

2-Node vSAN design and performance test

2-node vSAN
capacity planning
sizing
performance

ESXi Logical Specification

ESXi Logical Specification

vSAN Logical Design

vSAN Logical Design
Results of performance tests generated by IOmeter

Results of performance tests