Sometimes we struggle with slow or broken repository.
First make sure that the yum-fastestmirror plugin is enabled.
Then clear cache with:
Continue reading “How to disable yum repository”
How to generate self signed wildcard ssl certificate
First genarate RSA private key.
Use 2048 bit or even better 4096 bit key
openssl genrsa 2048 > host.key
Now generate signing request.
enter *.domain.com for the Common Name
openssl req -new -x509 -nodes -sha256 -days 3650 -key host.key > host.crt
Continue reading “How to generate self signed wildcard ssl certificate”
XenServer create local ISO Storage Repository
Connect to the XenServer via SSH.
Create designed directory, e.g.:
mkdir /iso
Then run following command:
Put in “location=” param correct path
Continue reading “XenServer create local ISO Storage Repository”
How to Setup XenServer 7 to enable Auto-Start Virtual Machines
First enable auto-start on XenServer:
# xe pool-list
uuid ( RO) : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Copy UUID and use command:
# xe pool-param-set uuid=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX other-config:auto_poweron=true
Continue reading “How to Setup XenServer 7 to enable Auto-Start Virtual Machines”
How to limit binary logs in MariaDB
MariaDb binarny log size is depended on number of days to store on hard drive.
You can change this limit without rebooting server.
See example below how to set limit of 10 days.
First check you are satisfied with date period:
mysql> select date(now()) + interval 0 second - interval 10 day;
+---------------------------------------------------+
| date(now()) + interval 0 second - interval 10 day |
+---------------------------------------------------+
| 2016-12-20 00:00:00 |
+---------------------------------------------------+
1 row in set (0.00 sec)
mysql>
Continue reading “How to limit binary logs in MariaDB”