[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How to I limit the maximum size of a folder?

Posted on 2008-10-03
8
Medium Priority
?
6,304 Views
Last Modified: 2008-10-10
I have \\server\temp Share stored on an NTFS volume on a Server 2008 member server in a domain.  I would like to limit the size of the temp folder to 2 GB, irregardless of what user(s) place files into this shared folder. I just want to contents of this dir/share not to exceed 2 GB.

I am familiar with Disk Quota's and FSRM, but don't see this as a solution as (best I can tell) Disk Quota's limit the amount of data a User can store, but do not limit the maximum size of a directory.

Thank you for your help.
0
Comment
Question by:RKGraves
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 14

Accepted Solution

by:
cuziyq earned 1000 total points
ID: 22637267
Unfortunately, there is no way to set up a quota that applies only to a specific folder.  At least, not with Microsoft's tools anyway.  There may be some 3rd party app that can do it, but I don't know of any off the top of my head.
0
 
LVL 18

Expert Comment

by:sk_raja_raja
ID: 22637271
If you have Server 2003 R2 then you will be able to limit the size of folders.  Here is a brief article on what R2 is all about - http://www.adminprep.com/articles/default.asp?action=show&articleid=74
I am not sure if this works with 2008
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 6

Expert Comment

by:DewFreak
ID: 22637333
0
 

Author Comment

by:RKGraves
ID: 22637548
Thank you everyone for your quick replies! I was looking for a Microsoft solution, not a 3rd-Party solution. In the past we had been creating a seperate volume of 2GB and mounting it as a Mount Point and sharing it.

I had read some articles which seemed to indicate FRSM could limit folder size. But based on your replies the confusion seems to rest with; FRSM can do Quota's at the Folder level (as opposed to pre-FRSM Quota's were by Volume), but only on a per-User basis.
0
 
LVL 56

Expert Comment

by:McKnife
ID: 22640816
Maybe the reason why MS has not implemented this is because this demand is very rare. Maybe you should try a combination of the following: use per-user-quota and set it to a certain amount for each user. In addition, use a scheduled tasks that sweeps away files of a certain age, for example files older than a week. This could be done by a powershell (server feature) script or with the help of the command line tool forfiles.exe which is included in server 2008.
0
 
LVL 4

Expert Comment

by:placebo69a
ID: 22641766
If you have any unpartitioned space left in one of your drives you can easily create a folder that has a maximum size restriction. This involves creating a new volume of the required maximum size and using SysInternals Junction (http://download.sysinternals.com/Files/Junction.zip or http://www.devhood.com/tools/tool_details.aspx?tool_id=852 and click the Junction.Zip link) to redirect the folder to the newly created volume. You should read these recommendations before you decide if you want to use this solution:http://support.microsoft.com/?kbid=205524.
After downloading the Junction.Zip file extract it anywhere you like and perform the following:
(This How-To assumes the folder that needs its size limited is C:\Example and that the drive letter Z: is available for use. You can change these values according to your setup)
Step 1: Create a new Partition of the desired size - If you want to limit the folder to 100MB create a 100MB partition. Assign the new Partition the drive letter Z: when prompted.
Step2: Go to Command Prompt and change to the folder where you extracted Junction. Execute the command: Junction.Exe C:\Example Z:\
Et voila! C:\Example is now limited to 100MB, no matter which user creates the files in it.
0
 

Author Comment

by:RKGraves
ID: 22642845
placebo69a and Others,

I appreciate everyone's feedback. We have been doing something like "placebo69a" described, except we are using Windows Mount Points. Server 2008 also has a tool MKLINK (make link) which lets you mount other shares into your existing directory structure. Very similar to how Linux/Unix mount & umount.

Using Mount Points is an OK solution, but requires a new volume each time you want to limit the size of a directory.

The focus of my question was to see if anyone knew how to use Microsofts File System Resource Manager (FSRM), or Folder Quota's to limit the size of a directory. In reading about FSRM it seemed like this might be an option. But from the feedback I am receiving I am concluding FSRM/Folder Quota's cannot do this.

Again, Thanks Everyone,
R.K.Graves
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question