Below is the procedure on how to extend a disk space on Windows server 2003 through diskpart.exe. Tool is located under C:\Windows\system32\diskpart.exe
The extra disk space is provided through VMware hypervisor.


Below is the procedure on how to extend a disk space on Windows server 2003 through diskpart.exe. Tool is located under C:\Windows\system32\diskpart.exe
The extra disk space is provided through VMware hypervisor.


Recently when trying to open a virtual machine the below error occured:

The solution is a easy to close and re enable HA on the cluster.

Then the VM will be able to power on again.
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:
ls /sys/class/scsi_host/

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.
multipath -ll

Initialize your disk and use it appropriately.
pvcreate /dev/mapper/mpathm
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
inet_interfaces = 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 = subnet #mynetworks_style = host
You can also specify the absolute pathname of a pattern file instead of listing the patterns here. Specify type:table for table-based lookups (the value on the table right-hand side is not used). mynetworks = 192.168.0.0/16, 127.0.0.0/8 #mynetworks = $config_directory/mynetworks #mynetworks = hash:/etc/postfix/network_table
#relayhost = $mydomain #relayhost = [gateway.my.domain] #relayhost = [mailserver.isp.tld] #relayhost = uucphost relayhost = [IP_Address]
Finally test your configuration by a powershell command to verify the functionality.
Send-MailMessage -From "sender@mail.com" -To "recipient@mail.com" -Subject "test email" -Body "test subject" -SMTPServer IP_Address
