Friday, 14 November 2014

Reset VSS Writers




VSS writers are application-specific components for Microsoft's Volume Shadow Copy Service, which ensure the consistency of application data when a shadow copy is created. That's quite useful for creating consistent backups of a system. However, some of these writers go into error states more or less frequently. And Microsoft did not deem it necessary to document how to reset writers without rebooting the entire system (or at least I didn't manage to find that piece of information).
Since this burnt me once too often, I started compiling a list of VSS writers and the services that need to be restarted to reset each of them. Some are rather obvious, others (System Writer for instance) not so much.
VSS Writer
Service Name
Service Display Name
ASR Writer
VSS
Volume Shadow Copy
BITS Writer
BITS
Background Intelligent Transfer Service
COM+ REGDB Writer
VSS
Volume Shadow Copy
DFS Replication service writer
DFSR
DFS Replication
DHCP Jet Writer
DHCPServer
DHCP Server
FRS Writer
NtFrs
File Replication
FSRM writer
srmsvc
File Server Resource Manager
IIS Config Writer
AppHostSvc
Application Host Helper Service
IIS Metabase Writer
IISADMIN
IIS Admin Service
Microsoft Exchange Writer
MSExchangeIS
Microsoft Exchange Information Store
Microsoft Hyper-V VSS Writer
vmms
Hyper-V Virtual Machine Management
NTDS
NTDS
Active Directory Domain Services
OSearch VSS Writer
OSearch
Office SharePoint Server Search
OSearch14 VSS Writer
OSearch14
SharePoint Server Search 14
Registry Writer
VSS
Volume Shadow Copy
Shadow Copy Optimization Writer
VSS
Volume Shadow Copy
SPSearch VSS Writer
SPSearch
Windows SharePoint Services Search
SPSearch4 VSS Writer
SPSearch4
SharePoint Foundation Search V4
SqlServerWriter
SQLWriter
SQL Server VSS Writer
System Writer
CryptSvc
Cryptographic Services
TermServLicensing
TermServLicensing
Remote Desktop Licensing
WINS Jet Writer
WINS
Windows Internet Name Service (WINS)
WMI Writer
Winmgmt
Windows Management Instrumentation
This list is far from complete. It merely contains those writers I already had to deal with and some contributions from fellow administrators.
You can use PowerShell for listing failed writers:
& vssadmin list writers | Select-String -Context 0,4 '^writer name:' | ? {
  $_.Context.PostContext[2].Trim() -ne "state: [1] stable" -or
  $_.Context.PostContext[3].Trim() -ne "last error: no error"
}
or the state of a particular writer:
$name = [Regex]::Escape('writer name')
& vssadmin list writers | Select-String -Context 0,4 "^writer name: .*$name"

Dos and don'ts for Diabetics





There are namely two types of diabetes ; Type 1 Diabetes ( Insulin dependent) and Type 2 Diabetes (Weight Management dependent).
Type 2 Diabetes is a dreaded medical condition described by elevated fasting sugar or post prandial sugar levels which could lead to secondary complications in other organs such as the heart, kidney, foot and eyes.
Listed below are few essential guidelines for Diabetics.
- Eating at regular intervals helps keep the sugar levels consistent and avoids hypoglycemia.
- Replacing simple carbohydrates such as (rice, white bread, white pasta, maida) with complex carbohydrates such as oats, bajra, jowar, ragi and wheat would help avoid rise in the sugar levels.
- Opt for a low-carb meal consisting of roti, vegetable, salad, egg whites or skim paneer instead of a full meal which includes roti, rice, dal, vegetable and salad at one time.
- It is advisable to eat either one portion of protein (skim milk products, chicken, fish, egg whites) and a portion of fibre (vegetables, fruits, salads) or Omega 3 fats (fish, flaxseeds, walnuts) in each meal to help accelerate metabolism and promote fat loss and thereby effective sugar control.
- It is important to incorporate exercise into daily lifestyle (5 days of walking for 45 minutes) to maintain sugar levels and induce fat loss and maintain levels.
- 1 tsp methi seeds, soaked okra water, 1 tsp cinnamon and 1 glass dudhi karela juice are few home remedies which are known to control diabetes.
- Chromium Picolinate is a mineral known to help maintain and over a long period of time; lower sugar levels in diabetics when consumed 15 mins before a carbohydrate loaded meal.
- Regular checks on the glucometer are most effective way to monitor the daily food intake and its effect on the sugar levels to determine the right food options for diabetics and the options to be restricted or minimised due to their effect on the sugar levels.
- Controlling or losing weight is the most effective and guaranteed way to manage diabetes.
- It is essential to maintain a low binge eating or food cheating record to 1- 2 times a week; be it rice, maida, potatoes.

To conclude, diabetes management through dietary intervention is the most effective way to help the body combat and control diabetes along with necessary medication. It is never too late to make the change.