Sometimes infrastructure servers are physical and directly connected to storage and not virtual ones. In virtualization cases, one has to assign a new virtual disk on the virtual server and proceed with the expand. In case of a physical server one should do the following in order to assign more space on a partition or a lvm.
Find storage adapters and rescan them:
echo"- - -">/sys/class/scsi_host/hostX/scan
where X is 0 to 10 in my system (some online and some offline)
After re scanning storage adapters a new multipath device will be visible and ready to be used.
Sometimes due to network configuration you cannot use your SMTP server and you want to send emails through a proxy/relay. Below you can find how to configure a linux machine so that to act as an SMTP relay and forward emails to one SMTP server.
First if not installed you should install postfix package for your linux server depending on the distribution. For example on a RedHat server you should do:
sudo yum install postfix
Then you should edit the below postfix configuration lines. Postfix configuration is handled by /etc/postfix/main.cf
Change inet_interfaces from localhsot to all
Configure the source from which the emails will be sent. For example you can use a specific host or a subnet of hosts. In my case I chose a subnet so the second line should be uncommented.
#mynetworks_style = class
#mynetworks_style = host
Configure your subnet source Address and mask.
You can also specify the absolute pathname ofapattern file instead
of listing the patterns here.Specify type:table fortable-based lookups
(the value on the table right-hand side isnotused).
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table
Add your SMTP server address in the latest line
#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
Finally test your configuration by a powershell command to verify the functionality.
There are multiple ways available to patch a VMware Infrastructure. Two of the very common ones are through Update Manager or esxcli.
Update Manager enables centralized, automated patch and version management for VMware vSphere and offers support for VMware ESXi hosts, and virtual machines. Unfortunately it is available only on vCenter deployments and you cannot use it on standalone hosts.
When you need to update a standalone host you can follow the procedure described below.
In my case I wanted to patch an ESXi host from 6.7 Build 8941472 to 6.7 Build 9484548.
First you download the patch definitions from VMware site. In my case I needed to download the below bundle package:
Then, the package should be uploaded to the local or any available datastore so that host can access it. Also ssh should be enabled so that one can connect on the host with root account.
change directory and find the location of the file
Lastly execute the below command, and reboot the host
esxcli software vib update--depot filePath
The version available after the reboot, should be the new one