You cannot create quotas on File Server Resource Manager (FSRM) in Windows Server 2003 R2

Author:

Shijaz Abdulla MVP

COMMUNITY SOLUTIONS CONTENT DISCLAIMER

MICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES.

SUMMARY

This article gives information on how to resolve problems with Windows Server 2003 R2 File Server Resource Manager.

SYMPTOMS

  • You have uninstalled File Server Resource Manager without removing the quotas and quota templates you have already created. You have then re-installed File Server Resource Manager on the same computer.
  • When you open the File Server Resource Manager console, you see there are no quotas defined, but when you try to create a new quota and apply it on a folder, you get the following error:
 
     Can't create quota in the given path as a quota already exists for that path.
     An unexpected error has occurred. Please check application event log for more information
 
  • The following events are logged in the Application Event Log
 
    EventID: 0
    Type: Error
    Source: FSRM
    User: N/A
    Description:
    An unexpected error occurred in the File Server Resource Manager MMC snap-in
    at Microsoft.Storage.SrmMmc.QuotaDataCache.Enumerate( RemoteManager remoteManager, SrmDataCacheEnumEventHandler EventHandler, Int32 BatchSize)
    at Microsoft.Storage.SrmMmc.QuotasDisplayArea.EnumerateItemsIntoListView()
    Exception from HRESULT: 0x80045316
    at Microsoft.Storage.ISrmQuotaManager.EnumQuotas(String strPath)
    at Microsoft.Storage.SrmMmc.QuotaDataCache.Enumerate(RemoteManager remoteManager, SrmDataCacheEnumEventHandler EventHandler, Int32 BatchSize)
 

    Event ID: 8197
    Source: SRMSVC
    Type: Error
    User: N/A
    Description: not available

CAUSE

When you define quotas, File Server Resource Manager (FSRM) stores information about these quotas in the quota.xmlquota.md, and databasefilescreen files in the \System Volume Information\SRM folder on the drive that the quotas were imposed initially. During a clean uninstallation of the FSRM, these files are removed. However, if the uninstallation was not completed successfully and you re-installed FSRM on the same computer, these files still remain and are not over-written by a subsequent re-installation of FSRM.

RESOLUTION

The resolution involves recreating the quota.xmlquota.md, and databasefilescreen files in the \System Volume Information\SRM folder on the drive that the quotas were imposed initially.
 
WARNING: You will lose all your quota definitions and quota template configuration when you follow this procedure. Perform these steps only if you wish to start configuring File Server Resource Manager from scratch.
 
The System Volume Information folder can be found on the root folder of any Windows volume. This is folder is critical for the functioning of the operating system, hence it is accessible only by the SYSTEM account. It is a hidden system folder, which can be made visible if you configure the Folder Options in Windows Explorer to Show hidden and system files.
 
Since only the SYSTEM account can access this folder, we will use a workaround to get to this folder. We will use the AT command to schedule a job to open the Command Prompt (cmd.exe). The AT command starts cmd.exe in the SYSTEM account context and you will be able to access the \System Volume Information\ folder.
 
  1. Open Command Prompt.
     
  2. Type the command:
    AT [time in hh:mm] /interactive cmd.exe

    where [time in hh:mm] is the next minute with respect to your system clock. For example, if the time now is 20:09, then the command should be
    AT 20:10 /interactive cmd.exe
     

  3. Wait for the next minute. In the above example, wait till 20:10. The Command Prompt window will appear. This window is running under the SYSTEM user context.
     
  4. Type each of the following commands in the Command Prompt window:
    CD \System Volume Information\SRM
    ATTRIB quota.xml -s -h
    ATTRIB quota.md -s -h
    ATTRIB databasefilescreen -s -h
    DEL quota.xml
    DEL quota.md
    DEL databasefilescreen
    exit
     

  5. Re-install File Server Resource Manager. The above files will be recreated. The previous quota settings will be lost and you can recreate your quotas.
Properties

Article ID: 555941 - Last Review: 14 Feb 2017 - Revision: 1

Microsoft Windows Server 2003, Standard Edition (32-bit x86), Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)

Feedback