Windows IOPS and MB/s benchmarking

You have bought een new system and the first thing what you want to do is check the disk performance (ehhh that’s always the first thing I want to know πŸ˜› )

ThereΒ  is one tool I always use: ATTO Disk Benchmark

disk-benchmark

This is a very nice tool to quickly see how fast your troughput is of your new system.

But sometimes you want to check your IOPS. Then you can use another nice microsoft commandline benchmark tool DiskSpd

You can use this parameter to benchmark:

diskspd -b8K -d30 -o4 -t8 -h -r -w25 -L -Z1G -c20G testfile.dat

This example command line will run a 30 second random I/O test using a 20GB test file located on the T: drive, with a 25% write and 75% read ratio, with an 8K block size. It will use eight worker threads, each with four outstanding I/Os and a write entropy value seed of 1GB. It will save the results of the test to a text file called DiskSpeedResults.txt. This is a pretty good set of parameters for a SQL Server OLTP workload.

Example:

diskspd
Orginal article

If you get errors like:

Results for timespan 1:
*******************************************************************************
The test was interrupted before the measurements began. No results are displayed.
Error generating I/O requests

Or file creation errors like “Error opening file: testfile.dat” please try to replace the minus “-” characters with your keyboard. Sometimes your browser copy the wrong character.

Happy benchmarking πŸ˜€

IIS Log Analyzer

Download Log Parser 2.2 from the microsoft site. After the installation google is your friend

Example

Hits on a particular page by IP address

LogParser -i:IISW3C "SELECT c-ip, COUNT(*) As Hits FROM C:\WINDOWS\system32\LogFiles\temp\*.log WHERE EXTRACT_FILENAME(cs-uri-stem) = 'default.aspx' AND sc-status = '200' GROUP BY c-ip Order by Hits DESC" -o:DataGrid

Another great way to analyse log files is the tool: Log Parser Studio. With this tool you can easy query loggings with a GUI:

2016-08-25 15_49_33-How To_ Move Music from iPod to PC in 5 Easy Steps

 

Remove Windows 2008 r2 WinSXS “Windows Update” files

copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe to %systemroot%\System32

copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui to %systemroot%\System32\en-Us

Run cmd > cleanmgr and remove all the nasty update files!

After I cleaned up the server I had to stop the windows installer service (trustedinstaller.exe) to remove the c:\windows\logs\cbs\CBS.log (6GB file) manually. Maybe a restart of the server do the same but I cannot test it on a production environment.

Have fun!

Source: https://support.appliedi.net/kb/a110/how-to-enable-the-disk-cleanup-tool-on-windows-server-2008-r2.aspx

Convert PFX to PEM and upload the certificate to Plesk

Export the Private Key:

# openssl pkcs12 -in filename.pfx -nocerts -out key.pem

Remove the password from the SSL certificate (unencrypted is needed for plesk):

# openssl rsa -in key.pem -out server.key

Export the certificate:

# openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem

Now upload the certificate:

certificates

And bind the certificate in your hosting settings:

SSL-PII

Windows update is looping forever

On my windows 2008 r2 server, Windows update was running forever πŸ™

Windows update - Fix - 2

I tried a lot of things but fixing the problem was really simple:

  1. Go to https://support.microsoft.com/en-us/kb/971058
  2. Download the fixit
  3. Run the fixit and follow the wizard

Then your problem will be fixed automatically πŸ™‚

Still problems? Try this post: http://superuser.com/questions/951960/windows-7-sp1-windows-update-stuck-checking-for-updates

Note: If you have a WSUS server and you still have problems to find windows updates you can try to temporary disable the WSUS client to change the registry key UseWUServer to dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]
"UseWUServer"=dword:00000000

Windows update - Fix

 

Find your fastest DNS server

There is a nice cross-platform open source tool to find out what the best DNS server is for your internet connection.

  1. Go to https://code.google.com/p/namebench/downloads/list
  2. Download the namebench tool
  3. Extract and start the tool
  4. Click on “Start Benchmark

2015-08-19 23_40_10-namebench

This benchmark takes some time. About +/- 15 minutes. Then you get the results in your browser:

DNS-Namebench1

DNS-Namebench2

201% faster name query performance!!! WOW!

When everything is setup you can check your DNS settings with a nice website: https://www.dnsleaktest.com/

2015_08_19_23_34_48_Store

To find the best DNS server for you start the tool at different times during the day.

Happy resolving πŸ™‚

Remove Spyware

First I had a problem with delta-homes.com spyware. When I remove that software a crappy mystartsearch.com browser hijacker came by… ARGGG!!!!

So removing the software is quite easy when you follow this staps

  1. Download superantispyware (free)
  2. Install superantispyware (select free editon)
  3. Run a quick scan
  4. Clean and reboot
  5. Run a full scan
  6. Clean and reboot
  7. Download and run ADWCleaner
  8. Scan and clean

AdwCleaner

Enjoy your adware free system πŸ™‚

Fix Intel SSD 320 problem on a Macbook

From one day to another my Intel 320 SSD was not visible anymore. So I download Ubuntu 14.04 boot it and start gparted.Β  Then I saw no SSD disk in my disk selection πŸ™

ubuntu-disk-missing

So I download the Intel firmware tool and boot it and then I get a BAD_CTX and a disk with 0GB πŸ™

bad_ctx

After some google’ing on the BAD_CTX I saw this was an known issue. The only way to fix this was completely secure erase your disk and so all your data on the disk is gone ARRRRGGGGG!!!!!!!!!!!!!!!!!!!!!!!!!!

I found a lot information how to secure erase the disk but finding some mac / apple specific articles was a lot more painful.

So I tried a lot of things and fixing the problem is quite easy if you know the steps. So I explain this for you so it cost you only one evening to fix this πŸ˜›

First go to https://partedmagic.com/ and buy and download parted magic ISO ($9). Now burn the parted magic ISO to a CD.

Then boot the parted magic. If you don’t know how to boot from a CD or USB with mac you must press the “option (alt) key” immediately after you press the power button and select the disk.

If parted magic is started, start secure erase and follow the wizard to accomplish this step. If you disk is frozen use the sleep key in the wizard to change the state to “not frozen”.

After the disk is completely erased shutdown the computer.

Now download the Intel SSD drive firmware update tool and burn it to a CD. Then boot the tool and update your disk firmware.

Then reinstall your OSX. For the people who use time machine is very easy to get the latest status back to your pc.

I know one thing for sure. This was my latest Intel SSD…

If I helped you please help me to supporting this blog without any advertising.

Some extra info:
CNET outdated article
Secure erase article from Parted Magic
Nice blog about this issue and fix it with a standard PC