T-SQL: Jobs in suspended state

T-SQL-Commands

It is possible that sql jobs are “hanging” in a suspended state. The SQL statements below will give you an indication on what the job is waiting.The first SQL statement will create a small stored procedure in the master database, which can be called by “exec sp_check_state”.The second sql satement…

Read More

Linux: quotaon: Quota format not supported in kernel

I was building a new system for hosting, and that system is a virtualised system with  Ubuntu. The OS was built by the provider. After installing everything, I wanted to activate the quota on the filesystem. The quota check failed with the following message: After a small check, I noticed that…

Read More

SQL server: Slow SSMS

T-SQL-Commands

If you are using SSMS 17 or 18, you have maybe noticed that the SSMS startup can be very very very very slow, which is annoying for everyone. There are 2 workaround, which could resolve this issue: Open  Internet Explorer: Options Then scroll to the bottom of the list and uncheck…

Read More

Linux: GRUB slow on 4k screens

In case you have a screen with high resolutions, a 4k screen for example, it is possible that GRUB is incredibly slow. If that is the case, the workaround is to edit the /etc/default/grub file, and add/replace the following line Then run “update-grub” to update the GRUB.This will run GRUB…

Read More

Strongswan: Dynamic (BGP) IPsec VPN tunnel with strongSwan

This guide, coming from Google, explains how to use a dynamic IPsec VPN tunnel with strongSwan on Linux Step 1: Configure BIRD   # Config example for bird 1.6 #debug protocols all;router id 169.254.2.2;# Watch interface up/down eventsprotocol device {       scan time 10;}# Import interface routes (Connected)#…

Read More

T-SQL: Check status of automatic seeding

T-SQL-Commands

Automatic seeding for SQL Always On it nice, but in case of big databases this can take some time. Of course, it can be annoying if something is running, and you don’t see the status of it. The query below will show you the status of the automatic seeding, and…

Read More

T-SQL: Only run SQL agent job on primary node

T-SQL-Commands

In a SQL Always On setup, the SQL agent jobs are not synced between the different nodes. This means you need to manually create them on the other nodes. For read-write jobs, you can only run them on the active node of course. You should modify the SQL agent job…

Read More

Linux – commvault: create systemd file

If you have upgraded your old Commvault agent,or you still use an old Commvault agent on your linux ‘systemd’ system, there won’t be any start/stop script for the agent. You can use the workaround below for creating a systemd file for it.

Read More

Mysql: optimize all tables in all databases

In order to optimize all databases & tables within your mysql instance, you can use the code below. You can also use a more specific script, where only the tables are optimized which have 10MB free space and 10% free space.

Read More