Exchange 2010: All db’s unmounted error -1032 file locked

A client had issues with their exchange server tonight…. All the mail DB’s were unmounted.

When I tried mounting the db’s exchange immediately shot back errors. I then tried running a soft recovery (http://msexchangeguru.com/2009/07/12/exchange-database-recovery-using-eseutil-commands/)of the exchange dbs as the logs were all ok, but I received a strange error from eseutil when I tried recovering: operation terminated with error -1032 file locked

I then stopped all exchange services to ensure exchange didn’t have a lock and retried still getting the same error. I then tried to write to the drive holding the logs and I was unable to write to it…. I then verified free space which was good, SAN for issues…it was OK. I then rebooted and retried thinking it was a fluke…no go. I rebooted into safe mode and ran:

diskpart

list volume

select volume 2

Ran the command:

attributes volume clear readonly

I did this on all volumes, made sure I could write to them all then rebooted and tested exchange satisfactory.