Pages

Friday, November 12, 2021

FreeBSD NAT redirect_port

/etc/rc.conf

gateway_enable="YES"
firewall_enable="YES"
firewall_type="OPEN"
nat_enable="YES"
nat_interface="em1" 

/etc/rc.firewall

For automatic configuration edit /etc/rc.firewall, search for ${firewall_type}=[Oo][Pp][Ee][Nn] and in section  firewall_nat_enable add following two lines.

${fwcmd} nat 1 config if ${firewall_nat_interface} redirect_port tcp 192.168.100.252:80 80
${fwcmd} add 50 nat 1 ip4 from any to any via ${firewall_nat_interface}

 

Monday, November 8, 2021

Task & Project Management nástroje

 Seznam evaluovaných nástrojů pro Task & Project Management
•    ClickUp
•    Asana
•    Monday.com
•    Smartsheet
•    Trello (Atlassian)

Osobně používám Monday.com několik měsíců za účelem task managementu pro všechny mé TAM zákazníky včetně PČR. Pro osobní task management jsem zkoušel jsem ClickUp, který nabízí omezenou variantu zdarma a viděl jsem prezentace a dema na všechny nástroje přímo od vendorů.

Kdybyste chtěli znát můj osobní žebříček nástrojů, tak zatím to mám takto

1.    Asana, ClickUp, Monday.com
2.    Trello (Atlassian)
3.    Smartsheet

Tři nástroje na prvním místě mají velmi podobnou koncepci a umožňují velmi agilní projektový management včetně managementu utilizace (lidských) zdrojů.

Můj osobní názor je, že pro moje konkrétní potřeby jsem schopen použít jakýkoliv ze třech nástrojů na prvním místě, ale nejtěžší je zavést správný process a metodiku k používání jakéhokoliv z těchto nástroju, protože to není pouze o jednom člověku, ale o týmové spolupráci, takže to musí používat všichni v týmu a to je vlasntě nejsložitější, jelikož to vyžaduje trénink, dril a morálku.

Thursday, October 21, 2021

vSAN license not applied correctly

Summary
After the evaluation license expired the enterprise license was applied
The licensed features do not get passed down to the host

Cause
Engineering is aware of this issue in 6.7 and they are actively working to implement a fix for it in 6.7p06

Resolution
We manually applied the licensed features by using the following commands -

esxcfg-advcfg -s vit,allflash,stretchedcluster,erasurecoding,iopslimit,storageefficiency /VSAN/LicensedFeatures
 

Friday, September 17, 2021

RedHat - SCSI adapter

Troubleshooting commands

lspci -nnvv | grep -i SCSI -A 1
 

lsscsi
 

lsblk
 

dmesg | tail -40
 

dmesg | grep -i scsi


NUMA tunning

Advanced Virtual NUMA Attributes

VM settings

https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-89C52376-60C3-452A-A269-9F4F7FE489C6.html

NUMA nodes are heavily load imbalanced causing high contention for some virtual machines (2097369) - https://kb.vmware.com/s/article/2097369

/Numa/LocalityWeightActionAffinity as 0

 

Thursday, September 16, 2021

Read IO spike every 5 minutes for 7.0U1 (84220)

 

Symptoms
  • Storage array experiencing continuous 5 minute read spike and high CPU utilization.
  • Other storage computations like deduplication and compression can be delayed or stalled.
  • In our case it was huge environment  (200-300 host)  connected to  Pure storage array
Purpose
This article will explain the reason and provide workaround or fix.
Cause

A change was made ( in 7.0U1):

In hostd to make API call every 5 minutes.
In VMFS a new lighter API was added to get the required stat.

Impact / Risks
Storage overutilization in case of large amount o hosts and large amount of datastores.
Resolution
Not available yet
Workaround

Changing /etc/vmware/hostd/config.xml on each host.
We can recommend to try to 12 hours for customer . Changing vmfsStatsIntervalInSecs=43200.
 

A one liner to perform this task:

sed -i -e 's/<vmfsStatsIntervalInSecs>.*>/<vmfsStatsIntervalInSecs>21600<\/vmfsStatsIntervalInSecs>/g' /etc/vmware/hostd/config.xml;/etc/init.d/hostd restart
Related Information
30 mins  = vmfsStatsIntervalInSecs=1800
1  hour = vmfsStatsIntervalInSecs=3600
3  hours = vmfsStatsIntervalInSecs=10800
6  hours = vmfsStatsIntervalInSecs=21600
12 hours = vmfsStatsIntervalInSecs=43200
Default setting in  etc/vmware/hostd/config.xml
 <!-- Vmfs stats collection interval -->                                                                                 
 <!-- Min value:5 mins Default Value:5 mins - in terms of seconds -->                                                    
 <!-- Setting it below 5 mins will reset it back to 5 mins,due to perf impact on VMFS -->                                
 <vmfsStatsIntervalInSecs> 300 </vmfsStatsIntervalInSecs>      
 
 
Confidential or Internal Information


https://bugzilla.eng.vmware.com/show_bug.cgi?id=2580232 change was made ( in 7.0U1)

The relevant PR for this KB https://bugzilla.eng.vmware.com/show_bug.cgi?id=2788282

 

- Note: hostd datastore refresh invoking VMFS datastore refresh
Vol3GetAttributesVMFS6 -> Res3StatVMFS6 can end up in reading a lot of VMFS
metadata.

- The amount of VMFS metadata read would be proportional to both size of VMFS
datastore and the number of VMFS datastores on ESXi server.