+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
Home Access Plus+ Thread, Fun with FSRM Quotas & MyFiles in Projects:; UPDATE: This Problem is now solved! Thanks to moby for all the help. Solution is here: Click Me! Morning all, ...
  1. #1
    cmorgan's Avatar
    Join Date
    May 2012
    Location
    Torquay
    Posts
    41
    Thank Post
    4
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Fun with FSRM Quotas & MyFiles

    UPDATE: This Problem is now solved! Thanks to moby for all the help. Solution is here: Click Me!

    Morning all,

    Getting this error on the server after setting up FSRM quotas.

    Code:
    \\srv2k8ent\Users\cmorg\Cached
    
    System.Runtime.InteropServices.COMException (0x80045306): Exception from HRESULT: 0x80045306
       at Microsoft.Storage.FsrmQuotaManagerClass.GetQuota(String Path)
       at HAP.Data.Quota.WCFService.GetQuotaFromPath(String path)
    
    Exception from HRESULT: 0x80045306
    
       at Microsoft.Storage.FsrmQuotaManagerClass.GetQuota(String Path)
       at HAP.Data.Quota.WCFService.GetQuotaFromPath(String path)
    Also, on the MyFiles Livetile, it the space indicator is full while returning a value of -6200.00 +
    /screenshot
    Fun with FSRM Quotas & MyFiles-untitled.png

    Heres the JSON Debug
    Code:
    [{"Actions":1,"Icon":"..\/images\/icons\/netdrive.png","Name":"Central Resources","Path":"R\\","Space":-1},{"Actions":0,"Icon":"..\/images\/icons\/netdrive.png","Name":"Your Documents","Path":"T\\","Space":-6959.70},{"Actions":1,"Icon":"..\/images\/icons\/netdrive.png","Name":"Staff Only","Path":"U\\","Space":-1}]
    Last edited by cmorgan; 18th December 2012 at 03:24 PM.

  2. #2

    Join Date
    Sep 2009
    Posts
    130
    Thank Post
    0
    Thanked 4 Times in 4 Posts
    Rep Power
    10
    Hi,

    Are you using the latest quota service MSI x64 from codeplex?

    Also, rather than a drive letter, you need to ideally put the UNC path in hapconfig.xml, e.g.

    <mapping drive="H" name="Documents" enablereadto="All" enablewriteto="All" enablemove="False" usagemode="Quota">\\srvname\studenthome$\%username %</mapping>

    <quotaserver server="srv03" drive="H" fsrm="True">\\srvname\studenthome$\%username%</quotaserver>



    Moby

  3. #3
    cmorgan's Avatar
    Join Date
    May 2012
    Location
    Torquay
    Posts
    41
    Thank Post
    4
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Here's what I got going on...

    <mapping drive="T" name="Your Documents" enablereadto="Staff" enablewriteto="Staff" enablemove="True" usagemode="Quota">\\srv2k8ent\Users\%username%\Cac hed</mapping>

    <quotaserver server="srv2k8ent" drive="G" fsrm="true">\\srv2k8ent\Users\%username%</quotaserver>
    <quotaserver server="srv2k8ent" drive="G" fsrm="true">\\srv2k8ent\Users\{0}</quotaserver>
    <quotaserver server="srv2k8ent" drive="G" fsrm="true">\\srv2k8ent.Tast.com\Users\%username%</quotaserver>
    <quotaserver server="srv2k8ent" drive="G" fsrm="true">\\srv2k8ent.Tast.com\Users\{0}</quotaserver>

    Quick UPDATE:

    Also getting the occasional error (below) in the event logs when it displays the above error
    G:\cmorg\Cached

    System.Runtime.InteropServices.COMException (0x80045301): Exception from HRESULT: 0x80045301
    at Microsoft.Storage.FsrmQuotaManagerClass.GetQuota(S tring Path)
    at HAP.Data.Quota.WCFService.GetQuotaFromPath(String path)

    Exception from HRESULT: 0x80045301

    at Microsoft.Storage.FsrmQuotaManagerClass.GetQuota(S tring Path)
    at HAP.Data.Quota.WCFService.GetQuotaFromPath(String path)
    Last edited by cmorgan; 18th December 2012 at 10:36 AM.

  4. #4

    Join Date
    Sep 2009
    Posts
    130
    Thank Post
    0
    Thanked 4 Times in 4 Posts
    Rep Power
    10
    Jut checking... Is FSRM tools installed on the server itself hosting the FSRM quotas?

    Are FSRM quotas actually enabled and the old drive quotas removed?

  5. #5

    Join Date
    Sep 2009
    Posts
    130
    Thank Post
    0
    Thanked 4 Times in 4 Posts
    Rep Power
    10
    It appears error 0x80045301 indicates that there is no quota for the specified directory.

    FSRM may be enabled on the server, but no quota is set on the folder. Any quotas that appear to be in use are probably your old drive quotas. These have a tendancy to hang around.

    Regards
    Moby.

  6. #6
    cmorgan's Avatar
    Join Date
    May 2012
    Location
    Torquay
    Posts
    41
    Thank Post
    4
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Well as of this morning, I installed FSRM and made a new hard quota over the G drive with 500MB for everybody.

    if you mean, have I unchecked this?
    Fun with FSRM Quotas & MyFiles-untitled.png
    No... I have left it checked as not to slow everything down during the school day.

    Was that not what I was meant to do?

  7. #7

    Join Date
    Sep 2009
    Posts
    130
    Thank Post
    0
    Thanked 4 Times in 4 Posts
    Rep Power
    10
    The 0x80045301 definately means that the FSRM quota is not present/is not applied on the specified path. The old disk space quotas can certainly hang around alot. I believe tho you can safely uncheck the box during the day as there's no disk space re-calculation when taking off.

    Anyway, it might be an idea to create a new folder, apply a new FSRM quota and test operation on a single folder first - to prove that FSRM is indeed operating and that any disk space messages are not remnants of the old drive quotas.

    Regards

  8. #8
    cmorgan's Avatar
    Join Date
    May 2012
    Location
    Torquay
    Posts
    41
    Thank Post
    4
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Made a test share on the servers other hard disk, and applied a 100MB FSRM quota to it.

    Aaaaaand the results are in!
    Fun with FSRM Quotas & MyFiles-untitled.png

    Will add the test share to HAP to see if its working. Will report back in a few minutes

    UPDATE: Ok it works for HAP now.
    Disk quota is now turned off on the server....

    However (Got to spoil the fun...), my documents on HAP is still equalling a negative value.
    Behold the JSON Dump
    Actions
    0

    Icon
    "../images/icons/netdrive.png"

    Name
    "Your Documents"

    Path
    "T\"

    Space
    -7686.92
    UPDATE II:

    Moby it appears what you say may be the situation now. I can still see the old NTFS quotas in the Disk Properties -> Quotas list. Is there any way to let FSRM take the helm of responding to the quota service (that doesn't involve deleting everyone's documents)
    Last edited by cmorgan; 18th December 2012 at 01:29 PM.

  9. #9

    Join Date
    Sep 2009
    Posts
    130
    Thank Post
    0
    Thanked 4 Times in 4 Posts
    Rep Power
    10
    The code calls the FSRM API as long as the fsrm=true statement is in the config file. Any returns you are getting must be from the API. Are your drive letters matched btw?

  10. #10
    cmorgan's Avatar
    Join Date
    May 2012
    Location
    Torquay
    Posts
    41
    Thank Post
    4
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    On srv2k8ent,

    my test share is on drive F:\
    user documents are on drive G:\

    so in the config I have...
    <quotaserver server="srv2k8ent" drive="G" fsrm="True">\\srv2k8ent\Users\%username%</quotaserver>
    <quotaserver server="srv2k8ent" drive="F" fsrm="True">\\srv2k8ent\ConorsTestShare</quotaserver>

  11. #11

    Join Date
    Sep 2009
    Posts
    130
    Thank Post
    0
    Thanked 4 Times in 4 Posts
    Rep Power
    10
    I'd put fsrm="true" (note all lower case)... JIC

    Moby

  12. #12
    cmorgan's Avatar
    Join Date
    May 2012
    Location
    Torquay
    Posts
    41
    Thank Post
    4
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by mobybrick View Post
    I'd put fsrm="true" (note all lower case)... JIC

    Moby
    Changed & updated. No change unfortunately

  13. #13

    Join Date
    Sep 2009
    Posts
    130
    Thank Post
    0
    Thanked 4 Times in 4 Posts
    Rep Power
    10
    On your JSON screenshot you had drive 'T'

    Not sure what you've got, but the drive letter in the quota server statement is to match the drive letter in your mappings, not the drive letter on the source server...

    M

  14. #14
    cmorgan's Avatar
    Join Date
    May 2012
    Location
    Torquay
    Posts
    41
    Thank Post
    4
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by mobybrick View Post
    On your JSON screenshot you had drive 'T'

    Not sure what you've got, but the drive letter in the quota server statement is to match the drive letter in your mappings, not the drive letter on the source server...

    M
    Ah right ok, just updated this for the S (student document mapping) and T (staff document mapping). Same problem still (JSON Space equals negative <Insert High Number>.00).

    Had a look at the source code for the quota service to see if it was anything in there, but no luck (Partially due to no C# knowledge)

  15. #15

    Join Date
    Sep 2009
    Posts
    130
    Thank Post
    0
    Thanked 4 Times in 4 Posts
    Rep Power
    10
    The code is working here.

    Could you post your complete mappings and quotaserver section?

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. [Website] Fun with figures [ Lego ones ]
    By mattx in forum Jokes/Interweb Things
    Replies: 1
    Last Post: 12th June 2009, 12:33 PM
  2. [Video] Fun with non-Newtonian fluids
    By mattx in forum Jokes/Interweb Things
    Replies: 0
    Last Post: 15th April 2009, 10:09 AM
  3. How can I set the default for .fw3 files? (Fun With Texts)
    By sidewinder in forum Educational Software
    Replies: 2
    Last Post: 6th October 2006, 08:58 AM
  4. Fun with copyright
    By _Bob_ in forum General Chat
    Replies: 7
    Last Post: 30th October 2005, 12:18 AM
  5. Fun with EFS
    By RobC in forum Windows
    Replies: 6
    Last Post: 18th August 2005, 11:44 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •