Bash: Log File Archive Script


There are some logs files are in such format: 20120130-174201-130947.log. I created two bash scripts to archive them by year/month/day: The first one is based on the log file creation date, the other one is based on the time stamp within the file name. #Backup Script1: Use modification date of the file#!/bin/bash #Define the Log … Continue reading Bash: Log File Archive Script →

How to Manually Remove a Damaged Hyper-V Virtual Machine


If you see such errors in the Hyper-V event log, and fail to delete the damaged virtual machine in the Hyper-V manager. Just go to ‘C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines’ and delete the file which filename is  the same as the virtual machine ID. After that, the damage virtual machine should be gone in your Hyper-V manager. If … Continue reading How to Manually Remove a Damaged Hyper-V Virtual Machine →

Hyper-V: A device attached to the system is not functioning


We have a Windows 2008 Hyper-V cluster VM failed every night in the past week. And it gives me the error: 'VM-01' Microsoft Emulated IDE Controller (Instance ID {83F84444B-8DCA-4152-9EDA-2CA8B33034B8}): Failed to Power on with Error 'A device attached to the system is not functioning.' (0x8007001F). (Virtual machine ID 1241E22E-E750-44C7-91F7-7588C8FBB9AE) After a quick search, I found … Continue reading Hyper-V: A device attached to the system is not functioning →

List Running Processes Test Failed in Cluster Validation


If the Windows 2008 cluster validation failed to list the running process on some nodes, you can try to restart the process that has high handle counts. Use the PowerShell command to list the handlecounts in order - gwmi win32_process –computer localhost | sort handlecount | select name, handlecount In my example, the the CcmExec.exe … Continue reading List Running Processes Test Failed in Cluster Validation →